Merge pull request #6012 from kareem-wolfssl/zd15524

Fix building FIPSv2 with WOLFSSL_ECDSA_SET_K defined.
This commit is contained in:
David Garske
2023-01-25 18:59:38 -08:00
committed by GitHub

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) {