ECC key gen should call ECC check key.

This commit is contained in:
John Safranek
2021-03-04 13:19:02 -08:00
parent 5080b1d633
commit 6fa1fe5b8e

View File

@ -4658,6 +4658,8 @@ int wc_ecc_make_key_ex2(WC_RNG* rng, int keysize, ecc_key* key, int curve_id,
#endif #endif
#endif /* WOLFSSL_ATECC508A */ #endif /* WOLFSSL_ATECC508A */
if (err == MP_OKAY)
err = wc_ecc_check_key(key);
return err; return err;
} }