From cd5ddeb1c5fb9ede18f80d485eea98a1cae7d112 Mon Sep 17 00:00:00 2001 From: Eric Blankenhorn Date: Mon, 7 Oct 2024 14:20:50 -0500 Subject: [PATCH] Clear ctx in wolfSSL_EVP_DigestInit --- wolfcrypt/src/evp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wolfcrypt/src/evp.c b/wolfcrypt/src/evp.c index 9a7ed5f9b..231222404 100644 --- a/wolfcrypt/src/evp.c +++ b/wolfcrypt/src/evp.c @@ -10505,6 +10505,8 @@ int wolfSSL_EVP_MD_type(const WOLFSSL_EVP_MD* type) return WOLFSSL_FAILURE; } + wolfSSL_EVP_MD_CTX_init(ctx); + /* Set to 0 if no match */ ctx->macType = EvpMd2MacType(md); if (md == NULL) {