mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
Don't use deprecated EVP_CIPHER_CTX_cleanup() internally
Use EVP_CIPHER_CTX_reset() instead Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2812)
This commit is contained in:
parent
2f0ca54c32
commit
15d95dd7ea
@ -60,7 +60,7 @@ CMAC_CTX *CMAC_CTX_new(void)
|
||||
|
||||
void CMAC_CTX_cleanup(CMAC_CTX *ctx)
|
||||
{
|
||||
EVP_CIPHER_CTX_cleanup(ctx->cctx);
|
||||
EVP_CIPHER_CTX_reset(ctx->cctx);
|
||||
OPENSSL_cleanse(ctx->tbl, EVP_MAX_BLOCK_LENGTH);
|
||||
OPENSSL_cleanse(ctx->k1, EVP_MAX_BLOCK_LENGTH);
|
||||
OPENSSL_cleanse(ctx->k2, EVP_MAX_BLOCK_LENGTH);
|
||||
|
Loading…
Reference in New Issue
Block a user