Skip to content

Commit

Permalink
Merge pull request #6505 from SparkiDev/alt_ecc_cryptocb
Browse files Browse the repository at this point in the history
ECC, ALT_ECC_SIZE, CryptoCB: ensure err is 0 in _ecc_make_key_ex
  • Loading branch information
dgarske authored Jun 21, 2023
2 parents 70c3e84 + 0db49ef commit 0e2c32f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wolfcrypt/src/ecc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5612,6 +5612,7 @@ static int _ecc_make_key_ex(WC_RNG* rng, int keysize, ecc_key* key,
#ifndef ALT_ECC_SIZE
err = mp_init(key->k);
#else
err = 0;
key->k = (mp_int*)key->ka;
alt_fp_init(key->k);
#endif
Expand Down

0 comments on commit 0e2c32f

Please sign in to comment.