projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
hmac/hmac.c: fix sizeof typo in hmac_ctx_cleanup.
[openssl.git]
/
crypto
/
hmac
/
hmac.c
diff --git
a/crypto/hmac/hmac.c
b/crypto/hmac/hmac.c
index 848b5819472dc533b37246784ed46cd36c636106..da7f58688f1e3037f37ca2e49ba4347368da5448 100644
(file)
--- 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)