commit | 356d8594d7dbfbbf8ee564c3fcb5be5ef9b7399f | [log] [tgz] |
---|---|---|
author | Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com> | Thu Nov 21 10:23:05 2019 +0100 |
committer | Manuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com> | Tue Nov 26 12:52:57 2019 +0100 |
tree | acae95019de4a3fb78d31c5f08a24f45755fe904 | |
parent | 4d8777cbb6e640d258c5bd812161f4602544f391 [diff] [blame] |
Move n from struct curve to its own constant
diff --git a/tinycrypt/ecc_dh.c b/tinycrypt/ecc_dh.c index 5c5bc13..fc429fe 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); + uECC_vli_mmod(_private, _random, curve_n); /* Computing public-key from private: */ if (EccPoint_compute_public_key(_public, _private, curve)) {