mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
add macro guard around test case
This commit is contained in:
@ -20874,6 +20874,7 @@ done:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef WOLFSSL_PUBLIC_MP
|
||||||
/* KAT from RFC6979 */
|
/* KAT from RFC6979 */
|
||||||
static int ecc384_test_deterministic_k(WC_RNG* rng)
|
static int ecc384_test_deterministic_k(WC_RNG* rng)
|
||||||
{
|
{
|
||||||
@ -20944,6 +20945,7 @@ done:
|
|||||||
wc_ecc_free(&key);
|
wc_ecc_free(&key);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
#endif /* WOLFSSL_PUBLIC_MP */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -23883,11 +23885,13 @@ WOLFSSL_TEST_SUBROUTINE int ecc_test(void)
|
|||||||
printf("ecc_test_deterministic_k failed! %d\n", ret);
|
printf("ecc_test_deterministic_k failed! %d\n", ret);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
#ifdef WOLFSSL_PUBLIC_MP
|
||||||
ret = ecc384_test_deterministic_k(&rng);
|
ret = ecc384_test_deterministic_k(&rng);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
printf("ecc384_test_deterministic_k failed! %d\n", ret);
|
printf("ecc384_test_deterministic_k failed! %d\n", ret);
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_ECC_SIGN) && defined(WOLFSSL_ECDSA_SET_K)
|
#if defined(HAVE_ECC_SIGN) && defined(WOLFSSL_ECDSA_SET_K)
|
||||||
|
Reference in New Issue
Block a user