Merge pull request #3454 from SparkiDev/sp_def_fix

SP C64/32: Fix define check
This commit is contained in:
David Garske
2020-11-02 17:07:56 -08:00
committed by GitHub
2 changed files with 6 additions and 6 deletions

View File

@@ -2472,7 +2472,7 @@ static void sp_2048_mont_reduce_90(sp_digit* a, const sp_digit* m, sp_digit mp)
sp_2048_norm_90(a + 90);
#ifdef WOLFSSL_SP_DH
#ifdef WOLFSSL_HAVE_SP_DH
if (mp != 1) {
for (i=0; i<89; i++) {
mu = (a[i] * mp) & 0x7fffff;
@@ -6341,7 +6341,7 @@ static void sp_3072_mont_reduce_134(sp_digit* a, const sp_digit* m, sp_digit mp)
sp_3072_norm_134(a + 134);
#ifdef WOLFSSL_SP_DH
#ifdef WOLFSSL_HAVE_SP_DH
if (mp != 1) {
for (i=0; i<133; i++) {
mu = (a[i] * mp) & 0x7fffff;
@@ -10392,7 +10392,7 @@ static void sp_4096_mont_reduce_196(sp_digit* a, const sp_digit* m, sp_digit mp)
sp_4096_norm_196(a + 196);
#ifdef WOLFSSL_SP_DH
#ifdef WOLFSSL_HAVE_SP_DH
if (mp != 1) {
for (i=0; i<195; i++) {
mu = (a[i] * mp) & 0x1fffff;

View File

@@ -2141,7 +2141,7 @@ static void sp_2048_mont_reduce_36(sp_digit* a, const sp_digit* m, sp_digit mp)
sp_2048_norm_36(a + 36);
#ifdef WOLFSSL_SP_DH
#ifdef WOLFSSL_HAVE_SP_DH
if (mp != 1) {
for (i=0; i<35; i++) {
mu = (a[i] * mp) & 0x1ffffffffffffffL;
@@ -6329,7 +6329,7 @@ static void sp_3072_mont_reduce_54(sp_digit* a, const sp_digit* m, sp_digit mp)
sp_3072_norm_54(a + 54);
#ifdef WOLFSSL_SP_DH
#ifdef WOLFSSL_HAVE_SP_DH
if (mp != 1) {
for (i=0; i<53; i++) {
mu = (a[i] * mp) & 0x1ffffffffffffffL;
@@ -10627,7 +10627,7 @@ static void sp_4096_mont_reduce_78(sp_digit* a, const sp_digit* m, sp_digit mp)
sp_4096_norm_78(a + 78);
#ifdef WOLFSSL_SP_DH
#ifdef WOLFSSL_HAVE_SP_DH
if (mp != 1) {
for (i=0; i<77; i++) {
mu = (a[i] * mp) & 0x1fffffffffffffL;