diff options
author | Niels Möller <nisse@lysator.liu.se> | 2022-08-16 19:47:20 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2022-08-16 19:47:20 +0200 |
commit | 62c74f1f489debc8a633f33e7b4872fb54a46000 (patch) | |
tree | 004675fc0be1db2e72a938bf855b18c27ec234b9 /ChangeLog | |
parent | ff55a587fc8d7d571a0718191d3caab800b345ba (diff) | |
download | nettle-62c74f1f489debc8a633f33e7b4872fb54a46000.tar.gz |
Reduce output range of ecc_mod_sub.
* ecc-mod-arith.c (ecc_mod_sub): Ensure that if inputs are in the
range 0 <= a, b < 2m, then output is in the same range.
* eccdata.c (output_curve): New outputs ecc_Bm2p and ecc_Bm2q.
* ecc-internal.h (struct ecc_modulo): New member Bm2m (B^size -
2m), needed by ecc_mod_sub. Update all curves.
* testsuite/ecc-mod-arith-test.c: New tests for ecc_mod_add and
ecc_mod_sub.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,5 +1,13 @@ 2022-08-16 Niels Möller <nisse@lysator.liu.se> + * ecc-mod-arith.c (ecc_mod_sub): Ensure that if inputs are in the + range 0 <= a, b < 2m, then output is in the same range. + * eccdata.c (output_curve): New outputs ecc_Bm2p and ecc_Bm2q. + * ecc-internal.h (struct ecc_modulo): New member Bm2m (B^size - + 2m), needed by ecc_mod_sub. Update all curves. + * testsuite/ecc-mod-arith-test.c: New tests for ecc_mod_add and + ecc_mod_sub. + * eccdata.c (output_modulo): Output the limb size, delete return value. (output_curve): Update calls to output_modulo, other minor cleanup. |