diff options
author | Andy Polyakov <appro@openssl.org> | 2016-06-09 21:54:19 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2016-06-12 13:47:32 +0200 |
commit | 4f0b6e6775e4bd08cb2fc89a2f32c84c441f290d (patch) | |
tree | 4bde88616f9d84cad7210d1427a3d548f7275e16 | |
parent | e6f65f769d87846bdc5b58ef8d2ef4074044022d (diff) | |
download | openssl-4f0b6e6775e4bd08cb2fc89a2f32c84c441f290d.tar.gz |
hmac/hmac.c: switch to OPENSSL_cleanse.
Reviewed-by: Rich Salz <rsalz@openssl.org>
-rw-r--r-- | crypto/hmac/hmac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/hmac/hmac.c b/crypto/hmac/hmac.c index 51a0a3efcd..213504e85f 100644 --- a/crypto/hmac/hmac.c +++ b/crypto/hmac/hmac.c @@ -234,7 +234,7 @@ void HMAC_CTX_cleanup(HMAC_CTX *ctx) EVP_MD_CTX_cleanup(&ctx->i_ctx); EVP_MD_CTX_cleanup(&ctx->o_ctx); EVP_MD_CTX_cleanup(&ctx->md_ctx); - memset(ctx, 0, sizeof *ctx); + OPENSSL_cleanse(ctx, sizeof *ctx); } unsigned char *HMAC(const EVP_MD *evp_md, const void *key, int key_len, |