Pass in correct hash type to wolfSSL_RSA_verify_ex.

This commit is contained in:
Kareem
2025-05-01 14:54:56 -07:00
parent 9587b7b12e
commit aad15b27a2

View File

@ -3436,7 +3436,7 @@ int wolfSSL_EVP_PKEY_verify(WOLFSSL_EVP_PKEY_CTX *ctx, const unsigned char *sig,
switch (ctx->pkey->type) {
#if !defined(NO_RSA)
case WC_EVP_PKEY_RSA:
return wolfSSL_RSA_verify_ex(WC_HASH_TYPE_NONE, tbs,
return wolfSSL_RSA_verify_ex(wolfSSL_EVP_MD_type(ctx->md), tbs,
(unsigned int)tbslen, sig, (unsigned int)siglen, ctx->pkey->rsa,
ctx->padding);
#endif /* NO_RSA */