Merge pull request #8046 from embhorn/zd18758

Clear ctx in wolfSSL_EVP_DigestInit
This commit is contained in:
Juliusz Sosinowicz
2024-10-14 14:35:20 +02:00
committed by GitHub

View File

@ -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) {