Skip to content

Commit a6326bd

Browse files
authored
Merge pull request #7183 from SparkiDev/regression_fixes_9
Regression testing fixes
2 parents 60de159 + 13591dc commit a6326bd

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

src/internal.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26623,6 +26623,8 @@ static int ParseCipherList(Suites* suites,
2662326623
suites->setSuites = 1;
2662426624
}
2662526625

26626+
(void)privateKeySz;
26627+
2662626628
return ret;
2662726629
}
2662826630

wolfcrypt/src/sp_int.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5408,7 +5408,8 @@ int sp_cmp_mag(const sp_int* a, const sp_int* b)
54085408

54095409
#if defined(WOLFSSL_SP_MATH_ALL) || defined(HAVE_ECC) || !defined(NO_DSA) || \
54105410
defined(OPENSSL_EXTRA) || !defined(NO_DH) || \
5411-
(!defined(NO_RSA) && !defined(WOLFSSL_RSA_VERIFY_ONLY))
5411+
(!defined(NO_RSA) && (!defined(WOLFSSL_RSA_VERIFY_ONLY) || \
5412+
defined(WOLFSSL_KEY_GEN)))
54125413
/* Compare two multi-precision numbers.
54135414
*
54145415
* Assumes a and b are not NULL.
@@ -19260,7 +19261,7 @@ int sp_prime_is_prime_ex(const sp_int* a, int trials, int* result, WC_RNG* rng)
1926019261
}
1926119262
#endif /* WOLFSSL_SP_PRIME_GEN */
1926219263

19263-
#if !defined(NO_RSA) || defined(WOLFSSL_KEY_GEN)
19264+
#if !defined(NO_RSA) && defined(WOLFSSL_KEY_GEN)
1926419265

1926519266
/* Calculates the Greatest Common Denominator (GCD) of a and b into r.
1926619267
*
@@ -19428,7 +19429,7 @@ int sp_gcd(const sp_int* a, const sp_int* b, sp_int* r)
1942819429
return err;
1942919430
}
1943019431

19431-
#endif /* WOLFSSL_SP_MATH_ALL && !NO_RSA && WOLFSSL_KEY_GEN */
19432+
#endif /* !NO_RSA && WOLFSSL_KEY_GEN */
1943219433

1943319434
#if !defined(NO_RSA) && defined(WOLFSSL_KEY_GEN) && \
1943419435
(!defined(WC_RSA_BLINDING) || defined(HAVE_FIPS) || defined(HAVE_SELFTEST))
@@ -19554,7 +19555,8 @@ int sp_lcm(const sp_int* a, const sp_int* b, sp_int* r)
1955419555
return err;
1955519556
}
1955619557

19557-
#endif /* WOLFSSL_SP_MATH_ALL && !NO_RSA && WOLFSSL_KEY_GEN */
19558+
#endif /* !NO_RSA && WOLFSSL_KEY_GEN && (!WC_RSA_BLINDING || HAVE_FIPS ||
19559+
* HAVE_SELFTEST) */
1955819560

1955919561
/* Returns the run time settings.
1956019562
*

0 commit comments

Comments
 (0)