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_dh.c b/tinycrypt/ecc_dh.c index 52208ad..71c51f5 100644 --- a/tinycrypt/ecc_dh.c +++ b/tinycrypt/ecc_dh.c
@@ -123,7 +123,7 @@ } /* computing modular reduction of _random (see FIPS 186.4 B.4.1): */ - uECC_vli_mmod(_private, _random, curve->n, BITS_TO_WORDS(curve->num_n_bits)); + uECC_vli_mmod(_private, _random, curve->n); /* Computing public-key from private: */ if (EccPoint_compute_public_key(_public, _private, curve)) {