summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/modes/gcm128.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/modes/gcm128.c')
-rw-r--r--src/lib/libcrypto/modes/gcm128.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/modes/gcm128.c b/src/lib/libcrypto/modes/gcm128.c
index e1dc2b0f47..52de084318 100644
--- a/src/lib/libcrypto/modes/gcm128.c
+++ b/src/lib/libcrypto/modes/gcm128.c
@@ -1540,7 +1540,7 @@ GCM128_CONTEXT *CRYPTO_gcm128_new(void *key, block128_f block)
1540{ 1540{
1541 GCM128_CONTEXT *ret; 1541 GCM128_CONTEXT *ret;
1542 1542
1543 if ((ret = (GCM128_CONTEXT *)OPENSSL_malloc(sizeof(GCM128_CONTEXT)))) 1543 if ((ret = (GCM128_CONTEXT *)malloc(sizeof(GCM128_CONTEXT))))
1544 CRYPTO_gcm128_init(ret,key,block); 1544 CRYPTO_gcm128_init(ret,key,block);
1545 1545
1546 return ret; 1546 return ret;
@@ -1550,7 +1550,7 @@ void CRYPTO_gcm128_release(GCM128_CONTEXT *ctx)
1550{ 1550{
1551 if (ctx) { 1551 if (ctx) {
1552 OPENSSL_cleanse(ctx,sizeof(*ctx)); 1552 OPENSSL_cleanse(ctx,sizeof(*ctx));
1553 OPENSSL_free(ctx); 1553 free(ctx);
1554 } 1554 }
1555} 1555}
1556 1556