Fix building FIPSv2 with WOLFSSL_ECDSA_SET_K defined.

pull/6012/head
Kareem 2023-01-25 14:49:05 -07:00
parent 214a6bd216
commit c9125f9685
1 changed files with 3 additions and 0 deletions

View File

@ -23441,7 +23441,10 @@ static int ecc_test_sign_vectors(WC_RNG* rng)
if (ret != 0) {
goto done;
}
#if (!defined(HAVE_FIPS) || (defined(HAVE_FIPS_VERSION) \
&& (HAVE_FIPS_VERSION > 2)))
wc_ecc_set_flags(key, WC_ECC_FLAG_DEC_SIGN);
#endif
ret = wc_ecc_sign_set_k(k, sizeof(k), key);
if (ret != 0) {