提交 1041ab69 编写于 作者: A Andy Polyakov 提交者: Dr. Stephen Henson

e_aes_cbc_hmac_sha1.c: cleanse temporary copy of HMAC secret.

(cherry picked from commit 529d27ea472fc2c7ba9190a15a58cb84012d4ec6)
上级 9970308c
......@@ -473,6 +473,8 @@ static int aesni_cbc_hmac_sha1_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void
SHA1_Init(&key->tail);
SHA1_Update(&key->tail,hmac_key,sizeof(hmac_key));
OPENSSL_cleanse(hmac_key,sizeof(hmac_key));
return 1;
}
case EVP_CTRL_AEAD_TLS1_AAD:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册