Custom wrapper for openssl