[openssl-commits] [openssl] master update
Andy Polyakov
appro at openssl.org
Thu Jun 9 19:23:10 UTC 2016
The branch master has been updated
via 85cbc182dab1409b98a14c5a891d1219617bd458 (commit)
from 5c753de668322bf9903a49ba713b2cbc62667571 (commit)
- Log -----------------------------------------------------------------
commit 85cbc182dab1409b98a14c5a891d1219617bd458
Author: Andy Polyakov <appro at openssl.org>
Date: Wed Jun 8 20:38:12 2016 +0200
hmac/hmac.c: fix sizeof typo in hmac_ctx_cleanup.
Reviewed-by: Matt Caswell <matt at openssl.org>
-----------------------------------------------------------------------
Summary of changes:
crypto/hmac/hmac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/hmac/hmac.c b/crypto/hmac/hmac.c
index 848b581..da7f586 100644
--- a/crypto/hmac/hmac.c
+++ b/crypto/hmac/hmac.c
@@ -141,7 +141,7 @@ static void hmac_ctx_cleanup(HMAC_CTX *ctx)
EVP_MD_CTX_reset(ctx->md_ctx);
ctx->md = NULL;
ctx->key_length = 0;
- memset(ctx->key, 0, sizeof(HMAC_MAX_MD_CBLOCK));
+ OPENSSL_cleanse(ctx->key, sizeof(ctx->key));
}
void HMAC_CTX_free(HMAC_CTX *ctx)
More information about the openssl-commits
mailing list