diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2014-06-15 15:41:26 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2014-06-15 15:41:26 +0000 |
commit | 6cb005bb98154d6307cf0e81b500fd43541a88cb (patch) | |
tree | 5b20ebb60462a554bbb0b774e789eed08417ff4f /lib/libcrypto | |
parent | 98c6b199b7d81819090c872d0b36924343d107f4 (diff) |
Add missing OPENSSL_cleanse() in aead_aes_gcm_cleanup().
ok beck@ miod@
Diffstat (limited to 'lib/libcrypto')
-rw-r--r-- | lib/libcrypto/evp/e_aes.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libcrypto/evp/e_aes.c b/lib/libcrypto/evp/e_aes.c index 07b3469f427..8ee93c4bbd1 100644 --- a/lib/libcrypto/evp/e_aes.c +++ b/lib/libcrypto/evp/e_aes.c @@ -1,4 +1,4 @@ -/* $OpenBSD: e_aes.c,v 1.20 2014/06/15 15:39:43 jsing Exp $ */ +/* $OpenBSD: e_aes.c,v 1.21 2014/06/15 15:41:25 jsing Exp $ */ /* ==================================================================== * Copyright (c) 2001-2011 The OpenSSL Project. All rights reserved. * @@ -1323,6 +1323,7 @@ aead_aes_gcm_cleanup(EVP_AEAD_CTX *ctx) { struct aead_aes_gcm_ctx *gcm_ctx = ctx->aead_state; + OPENSSL_cleanse(gcm_ctx, sizeof(*gcm_ctx)); free(gcm_ctx); } |