@@ -6140,6 +6140,7 @@ int sp_RsaPublic_2048(const byte* in, word32 inLen, const mp_int* em,
61406140}
61416141
61426142#ifndef WOLFSSL_RSA_PUBLIC_ONLY
6143+ #if !defined(SP_RSA_PRIVATE_EXP_D) && !defined(RSA_LOW_MEM)
61436144#ifdef WOLFSSL_SP_SMALL
61446145/* Conditionally add a and b using the mask m.
61456146 * m is -1 to add and 0 when not.
@@ -6175,7 +6176,9 @@ static sp_digit sp_2048_cond_add_16(sp_digit* r, const sp_digit* a, const sp_dig
61756176 return c;
61766177}
61776178#endif /* WOLFSSL_SP_SMALL */
6179+ #endif /* !SP_RSA_PRIVATE_EXP_D && !RSA_LOW_MEM */
61786180
6181+ #endif /* !SP_RSA_PRIVATE_EXP_D && !RSA_LOW_MEM */
61796182/* RSA private key operation.
61806183 *
61816184 * in Array of bytes representing the number to exponentiate, base.
@@ -15515,6 +15518,7 @@ int sp_RsaPublic_3072(const byte* in, word32 inLen, const mp_int* em,
1551515518}
1551615519
1551715520#ifndef WOLFSSL_RSA_PUBLIC_ONLY
15521+ #if !defined(SP_RSA_PRIVATE_EXP_D) && !defined(RSA_LOW_MEM)
1551815522#ifdef WOLFSSL_SP_SMALL
1551915523/* Conditionally add a and b using the mask m.
1552015524 * m is -1 to add and 0 when not.
@@ -15550,7 +15554,9 @@ static sp_digit sp_3072_cond_add_24(sp_digit* r, const sp_digit* a, const sp_dig
1555015554 return c;
1555115555}
1555215556#endif /* WOLFSSL_SP_SMALL */
15557+ #endif /* !SP_RSA_PRIVATE_EXP_D && !RSA_LOW_MEM */
1555315558
15559+ #endif /* !SP_RSA_PRIVATE_EXP_D && !RSA_LOW_MEM */
1555415560/* RSA private key operation.
1555515561 *
1555615562 * in Array of bytes representing the number to exponentiate, base.
@@ -20524,6 +20530,7 @@ int sp_RsaPublic_4096(const byte* in, word32 inLen, const mp_int* em,
2052420530}
2052520531
2052620532#ifndef WOLFSSL_RSA_PUBLIC_ONLY
20533+ #if !defined(SP_RSA_PRIVATE_EXP_D) && !defined(RSA_LOW_MEM)
2052720534#ifdef WOLFSSL_SP_SMALL
2052820535/* Conditionally add a and b using the mask m.
2052920536 * m is -1 to add and 0 when not.
@@ -20559,7 +20566,9 @@ static sp_digit sp_4096_cond_add_32(sp_digit* r, const sp_digit* a, const sp_dig
2055920566 return c;
2056020567}
2056120568#endif /* WOLFSSL_SP_SMALL */
20569+ #endif /* !SP_RSA_PRIVATE_EXP_D && !RSA_LOW_MEM */
2056220570
20571+ #endif /* !SP_RSA_PRIVATE_EXP_D && !RSA_LOW_MEM */
2056320572/* RSA private key operation.
2056420573 *
2056520574 * in Array of bytes representing the number to exponentiate, base.
0 commit comments