[openssl-commits] [openssl] OpenSSL_1_1_0-stable update
Richard Levitte
levitte at openssl.org
Fri Mar 3 09:52:14 UTC 2017
The branch OpenSSL_1_1_0-stable has been updated
via bf9ee8a810971b6bd7eb5fe84ac97a61514607d8 (commit)
from cc92ac759c5a8c7303f29a24327404f7804350b2 (commit)
- Log -----------------------------------------------------------------
commit bf9ee8a810971b6bd7eb5fe84ac97a61514607d8
Author: Richard Levitte <levitte at openssl.org>
Date: Wed Mar 1 10:48:34 2017 +0100
Don't use deprecated EVP_CIPHER_CTX_cleanup() internally
Use EVP_CIPHER_CTX_reset() instead
Reviewed-by: Matt Caswell <matt at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2812)
(cherry picked from commit 15d95dd7ea77e68bf9d8450e52230a6017735ec0)
-----------------------------------------------------------------------
Summary of changes:
crypto/cmac/cmac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/cmac/cmac.c b/crypto/cmac/cmac.c
index 0f4ca26..46e3cb7 100644
--- a/crypto/cmac/cmac.c
+++ b/crypto/cmac/cmac.c
@@ -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);
More information about the openssl-commits
mailing list