wrapper for openssl