FIPS build and ECC fixes

1. The fips-check script was missing the ecc file when building the FIPSv2 test directory. The correct file was sent in for testing.
2. When building with ECC import validation enabled, one usage of the ALLOC_CURVE_SPECS macro had an extra parameter. (copy-and-paste error)
This commit is contained in:
John Safranek
2018-07-19 10:02:14 -07:00
parent 70dfb9af72
commit c9434c5ad8
2 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ linuxv2)
CRYPT_VERSION=$LINUXV2_CRYPT_VERSION
CRYPT_INC_PATH=wolfssl/wolfcrypt
CRYPT_SRC_PATH=wolfcrypt/src
WC_MODS+=( cmac dh )
WC_MODS+=( cmac dh ecc )
FIPS_SRCS+=( wolfcrypt_first.c wolfcrypt_last.c )
FIPS_INCS=( fips.h )
FIPS_OPTION=v2

View File

@ -6039,7 +6039,7 @@ static int ecc_check_privkey_gen_helper(ecc_key* key)
err = BAD_COND_E;
#else
ALLOC_CURVE_SPECS(curve, 2);
ALLOC_CURVE_SPECS(2);
/* load curve info */
err = wc_ecc_curve_load(key->dp, &curve,