Skip to content

Commit cc7897b

Browse files
authored
Merge pull request #9689 from dgarske/rsa_no_rng
Fixes for RSA with no RNG
2 parents 98dbc56 + 91d9389 commit cc7897b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

wolfcrypt/src/rsa.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3886,7 +3886,7 @@ int wc_RsaSSL_VerifyInline(byte* in, word32 inLen, byte** out, RsaKey* key)
38863886
{
38873887
WC_RNG* rng;
38883888
int ret;
3889-
#ifdef WC_RSA_BLINDING
3889+
#if defined(WC_RSA_BLINDING) && !defined(WC_NO_RNG)
38903890
if (key == NULL) {
38913891
return BAD_FUNC_ARG;
38923892
}
@@ -3997,7 +3997,7 @@ int wc_RsaPSS_VerifyInline_ex(byte* in, word32 inLen, byte** out,
39973997
{
39983998
WC_RNG* rng;
39993999
int ret;
4000-
#ifdef WC_RSA_BLINDING
4000+
#if defined(WC_RSA_BLINDING) && !defined(WC_NO_RNG)
40014001
if (key == NULL) {
40024002
return BAD_FUNC_ARG;
40034003
}
@@ -4055,7 +4055,7 @@ int wc_RsaPSS_Verify_ex(const byte* in, word32 inLen, byte* out, word32 outLen,
40554055
{
40564056
WC_RNG* rng;
40574057
int ret;
4058-
#ifdef WC_RSA_BLINDING
4058+
#if defined(WC_RSA_BLINDING) && !defined(WC_NO_RNG)
40594059
if (key == NULL) {
40604060
return BAD_FUNC_ARG;
40614061
}

0 commit comments

Comments
 (0)