mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
tests: fix preprocessor test for gcd/lcm
Fixes `--enable-valgrind --enable-fpecc --enable-ecc` build
This commit is contained in:
@ -32644,8 +32644,8 @@ static int mp_test_prime(mp_int* a, WC_RNG* rng)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(WOLFSSL_SP_MATH_ALL) || (defined(WOLFSSL_SP_MATH) && \
|
||||
defined(WOLFSSL_HAVE_SP_DH) || (defined(HAVE_ECC) && defined(FP_ECC)))
|
||||
#if defined(WOLFSSL_SP_MATH_ALL) || defined(WOLFSSL_SP_MATH) || \
|
||||
defined(WOLFSSL_KEY_GEN)
|
||||
static int mp_test_lcm_gcd(mp_int* a, mp_int* b, mp_int* r, mp_int* exp,
|
||||
WC_RNG* rng)
|
||||
{
|
||||
@ -33381,7 +33381,7 @@ WOLFSSL_TEST_SUBROUTINE int mp_test(void)
|
||||
return ret;
|
||||
#endif
|
||||
#if defined(WOLFSSL_SP_MATH_ALL) || (defined(WOLFSSL_SP_MATH) && \
|
||||
defined(WOLFSSL_HAVE_SP_DH) || (defined(HAVE_ECC) && defined(FP_ECC)))
|
||||
defined(WOLFSSL_HAVE_SP_DH)) || defined(WOLFSSL_KEY_GEN)
|
||||
if ((ret = mp_test_lcm_gcd(&a, &b, &r1, &r2, &rng)) != 0)
|
||||
return ret;
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user