Clear ctx in wolfSSL_EVP_DigestInit

pull/8046/head
Eric Blankenhorn 2024-10-07 14:20:50 -05:00
parent c230e10f4a
commit cd5ddeb1c5
1 changed files with 2 additions and 0 deletions

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