Merge pull request #8046 from embhorn/zd18758

Clear ctx in wolfSSL_EVP_DigestInit
pull/8072/head
Juliusz Sosinowicz 2024-10-14 14:35:20 +02:00 committed by GitHub
commit 743a78dc85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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) {