summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2022-08-16 19:47:20 +0200
committerNiels Möller <nisse@lysator.liu.se>2022-08-16 19:47:20 +0200
commit62c74f1f489debc8a633f33e7b4872fb54a46000 (patch)
tree004675fc0be1db2e72a938bf855b18c27ec234b9 /ChangeLog
parentff55a587fc8d7d571a0718191d3caab800b345ba (diff)
downloadnettle-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--ChangeLog8
1 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 15ad3384..083d443a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.