commit | 10349e49128d8b25bf6e8315f345aba94db1b943 | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com> | Mon Nov 04 14:57:53 2019 +0100 |
committer | Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com> | Mon Nov 04 15:53:19 2019 +0100 |
tree | 9153bfc13cc6153bba60c6329c014f34a6083c8e | |
parent | 1b0875d8635c5ae674c0b6a646026823d6eed07c [diff] [blame] |
Hardcode numwords in vli_mmod
diff --git a/tinycrypt/ecc_dsa.c b/tinycrypt/ecc_dsa.c index 77e3efe..ca07eb1 100644 --- a/tinycrypt/ecc_dsa.c +++ b/tinycrypt/ecc_dsa.c
@@ -182,7 +182,7 @@ } // 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)) {