diff --git a/tools/keytools/keygen.c b/tools/keytools/keygen.c index 45cca9fb4..9ebdc12a0 100644 --- a/tools/keytools/keygen.c +++ b/tools/keytools/keygen.c @@ -403,6 +403,8 @@ static void keygen_ecc(const char *priv_fname, uint16_t ecc_key_size, uint8_t k_buffer[2 * MAX_ECC_KEY_SIZE]; FILE *fpriv; + wc_ecc_init(&k); + if (wc_ecc_make_key(&rng, ecc_key_size, &k) != 0) { fprintf(stderr, "Unable to create ecc key\n"); exit(1); diff --git a/tools/keytools/user_settings.h b/tools/keytools/user_settings.h index 4e4e6c852..00ac6a192 100644 --- a/tools/keytools/user_settings.h +++ b/tools/keytools/user_settings.h @@ -33,7 +33,7 @@ #define WOLFCRYPT_ONLY /* Math */ -#if 1 +#if 0 #define USE_FAST_MATH #define FP_MAX_BITS (4096 * 2) #else