Merge pull request #6345 from kareem-wolfssl/zd16035

Fix getting key size in stm32_ecc_sign_hash_ex.
pull/6350/head
JacobBarthelmeh 2023-04-27 13:32:47 -06:00 committed by GitHub
commit 7b52913451
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1012,7 +1012,7 @@ int stm32_ecc_sign_hash_ex(const byte* hash, word32 hashlen, WC_RNG* rng,
mp_init(&gen_k);
mp_init(&order_mp);
size = mp_unsigned_bin_size(key->pubkey.x);
size = wc_ecc_size(key);
status = stm32_get_from_mp_int(Keybin, &key->k, size);
if (status != MP_OKAY)