An openssl method encapsule