ECC key gen should call ECC check key.

This commit is contained in:
John Safranek
2021-03-04 13:19:02 -08:00
committed by Daniel Pouzzner
parent 1f67e4519c
commit e3b2be5ea3

View File

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