summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/cmac/cmac.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/cmac/cmac.c')
-rw-r--r--src/lib/libcrypto/cmac/cmac.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/cmac/cmac.c b/src/lib/libcrypto/cmac/cmac.c
index f92a7bb143..81188c8f5a 100644
--- a/src/lib/libcrypto/cmac/cmac.c
+++ b/src/lib/libcrypto/cmac/cmac.c
@@ -93,7 +93,7 @@ static void make_kn(unsigned char *k1, unsigned char *l, int bl)
93CMAC_CTX *CMAC_CTX_new(void) 93CMAC_CTX *CMAC_CTX_new(void)
94 { 94 {
95 CMAC_CTX *ctx; 95 CMAC_CTX *ctx;
96 ctx = OPENSSL_malloc(sizeof(CMAC_CTX)); 96 ctx = malloc(sizeof(CMAC_CTX));
97 if (!ctx) 97 if (!ctx)
98 return NULL; 98 return NULL;
99 EVP_CIPHER_CTX_init(&ctx->cctx); 99 EVP_CIPHER_CTX_init(&ctx->cctx);
@@ -119,7 +119,7 @@ EVP_CIPHER_CTX *CMAC_CTX_get0_cipher_ctx(CMAC_CTX *ctx)
119void CMAC_CTX_free(CMAC_CTX *ctx) 119void CMAC_CTX_free(CMAC_CTX *ctx)
120 { 120 {
121 CMAC_CTX_cleanup(ctx); 121 CMAC_CTX_cleanup(ctx);
122 OPENSSL_free(ctx); 122 free(ctx);
123 } 123 }
124 124
125int CMAC_CTX_copy(CMAC_CTX *out, const CMAC_CTX *in) 125int CMAC_CTX_copy(CMAC_CTX *out, const CMAC_CTX *in)