Browse Source

Merge pull request #1702 from ejohnstown/fips-ecc

FIPS build and ECC fixes
David Garske 6 years ago
parent
commit
59f241e510
2 changed files with 2 additions and 2 deletions
  1. 1 1
      fips-check.sh
  2. 1 1
      wolfcrypt/src/ecc.c

+ 1 - 1
fips-check.sh

@@ -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

+ 1 - 1
wolfcrypt/src/ecc.c

@@ -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,