Skip to content

Commit 9d78fb9

Browse files
committed
WOLFSSL_RSA_PUBLIC_ONLY in sp_c32.c
1 parent 3753f69 commit 9d78fb9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

wolfcrypt/src/sp_c32.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7680,7 +7680,7 @@ static void sp_3072_to_bin_112(sp_digit* r, byte* a)
76807680
}
76817681
}
76827682

7683-
#if (defined(WOLFSSL_HAVE_SP_RSA) && !defined(WOLFSSL_RSA_PUBLIC_ONLY)) || defined(WOLFSSL_HAVE_SP_DH)
7683+
#if defined(WOLFSSL_HAVE_SP_RSA) || defined(WOLFSSL_HAVE_SP_DH)
76847684
/* Normalize the values in each word to 28 bits.
76857685
*
76867686
* a Array of sp_digit to normalize.
@@ -7707,7 +7707,7 @@ static void sp_3072_norm_56(sp_digit* a)
77077707
a[55] += a[54] >> 28; a[54] &= 0xfffffff;
77087708
}
77097709

7710-
#endif /* (WOLFSSL_HAVE_SP_RSA && !WOLFSSL_RSA_PUBLIC_ONLY) || WOLFSSL_HAVE_SP_DH */
7710+
#endif /* WOLFSSL_HAVE_SP_RSA || WOLFSSL_HAVE_SP_DH */
77117711
/* Normalize the values in each word to 28 bits.
77127712
*
77137713
* a Array of sp_digit to normalize.
@@ -14531,7 +14531,7 @@ static void sp_4096_to_bin_162(sp_digit* r, byte* a)
1453114531
}
1453214532
}
1453314533

14534-
#if (defined(WOLFSSL_HAVE_SP_RSA) && !defined(WOLFSSL_RSA_PUBLIC_ONLY)) || defined(WOLFSSL_HAVE_SP_DH)
14534+
#if defined(WOLFSSL_HAVE_SP_RSA) || defined(WOLFSSL_HAVE_SP_DH)
1453514535
#if defined(WOLFSSL_HAVE_SP_RSA) && !defined(SP_RSA_PRIVATE_EXP_D)
1453614536
/* Normalize the values in each word to 26 bits.
1453714537
*
@@ -14553,7 +14553,7 @@ static void sp_4096_norm_81(sp_digit* a)
1455314553
}
1455414554

1455514555
#endif /* WOLFSSL_HAVE_SP_RSA & !SP_RSA_PRIVATE_EXP_D */
14556-
#endif /* (WOLFSSL_HAVE_SP_RSA && !WOLFSSL_RSA_PUBLIC_ONLY) || WOLFSSL_HAVE_SP_DH */
14556+
#endif /* WOLFSSL_HAVE_SP_RSA || WOLFSSL_HAVE_SP_DH */
1455714557
/* Normalize the values in each word to 26 bits.
1455814558
*
1455914559
* a Array of sp_digit to normalize.

0 commit comments

Comments
 (0)