Custom wrapper for OpenSSL