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 4a72901a33..dd6d91e880 100644
--- a/src/lib/libcrypto/modes/gcm128.c
+++ b/src/lib/libcrypto/modes/gcm128.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: gcm128.c,v 1.12 2015/02/10 09:46:30 miod Exp $ */ 1/* $OpenBSD: gcm128.c,v 1.13 2015/09/10 15:56:25 jsing Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 2010 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 2010 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -1533,7 +1533,7 @@ GCM128_CONTEXT *CRYPTO_gcm128_new(void *key, block128_f block)
1533void CRYPTO_gcm128_release(GCM128_CONTEXT *ctx) 1533void CRYPTO_gcm128_release(GCM128_CONTEXT *ctx)
1534{ 1534{
1535 if (ctx) { 1535 if (ctx) {
1536 OPENSSL_cleanse(ctx,sizeof(*ctx)); 1536 explicit_bzero(ctx,sizeof(*ctx));
1537 free(ctx); 1537 free(ctx);
1538 } 1538 }
1539} 1539}