Hardcode numwords in vli_mmod
This commit is contained in:
parent
1b0875d863
commit
10349e4912
4 changed files with 7 additions and 5 deletions
|
@ -182,7 +182,7 @@ int uECC_sign(const uint8_t *private_key, const uint8_t *message_hash,
|
|||
}
|
||||
|
||||
// computing k as modular reduction of _random (see FIPS 186.4 B.5.1):
|
||||
uECC_vli_mmod(k, _random, curve->n, BITS_TO_WORDS(curve->num_n_bits));
|
||||
uECC_vli_mmod(k, _random, curve->n);
|
||||
|
||||
if (uECC_sign_with_k(private_key, message_hash, hash_size, k, signature,
|
||||
curve)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue