Skip to content

Commit 7b52913

Browse files
Merge pull request #6345 from kareem-wolfssl/zd16035
Fix getting key size in stm32_ecc_sign_hash_ex.
2 parents bbad646 + e7e2713 commit 7b52913

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/port/st/stm32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ int stm32_ecc_sign_hash_ex(const byte* hash, word32 hashlen, WC_RNG* rng,
10121012
mp_init(&gen_k);
10131013
mp_init(&order_mp);
10141014

1015-
size = mp_unsigned_bin_size(key->pubkey.x);
1015+
size = wc_ecc_size(key);
10161016

10171017
status = stm32_get_from_mp_int(Keybin, &key->k, size);
10181018
if (status != MP_OKAY)

0 commit comments

Comments
 (0)