7 #include <openssl/opensslv.h>
9 #if defined(LIBRESSL_VERSION_NUMBER) || (OPENSSL_VERSION_NUMBER < 0x10100000L)
18 inline EVP_MD_CTX* EVP_MD_CTX_new() {
19 return (EVP_MD_CTX_create());
24 inline void EVP_MD_CTX_free(EVP_MD_CTX* ctx) {
25 EVP_MD_CTX_destroy(ctx);
34 inline HMAC_CTX* HMAC_CTX_new() {
35 HMAC_CTX* ctx =
static_cast<HMAC_CTX*
>(OPENSSL_malloc(
sizeof(HMAC_CTX)));
44 inline void HMAC_CTX_free(HMAC_CTX* ctx) {
46 HMAC_CTX_cleanup(ctx);