Fixes for RSA with no RNG

This commit is contained in:
David Garske
2026-01-20 10:21:12 -08:00
parent c8867d8c52
commit 91d9389b9f

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;
}