Merge pull request #9689 from dgarske/rsa_no_rng

Fixes for RSA with no RNG
This commit is contained in:
Daniel Pouzzner
2026-01-21 11:13:03 -06:00
committed by GitHub

View File

@@ -3886,7 +3886,7 @@ int wc_RsaSSL_VerifyInline(byte* in, word32 inLen, byte** out, RsaKey* key)
{
WC_RNG* rng;
int ret;
#ifdef WC_RSA_BLINDING
#if defined(WC_RSA_BLINDING) && !defined(WC_NO_RNG)
if (key == NULL) {
return BAD_FUNC_ARG;
}
@@ -3997,7 +3997,7 @@ int wc_RsaPSS_VerifyInline_ex(byte* in, word32 inLen, byte** out,
{
WC_RNG* rng;
int ret;
#ifdef WC_RSA_BLINDING
#if defined(WC_RSA_BLINDING) && !defined(WC_NO_RNG)
if (key == NULL) {
return BAD_FUNC_ARG;
}
@@ -4055,7 +4055,7 @@ int wc_RsaPSS_Verify_ex(const byte* in, word32 inLen, byte* out, word32 outLen,
{
WC_RNG* rng;
int ret;
#ifdef WC_RSA_BLINDING
#if defined(WC_RSA_BLINDING) && !defined(WC_NO_RNG)
if (key == NULL) {
return BAD_FUNC_ARG;
}