From: Niels Möller Date: Sat, 6 Nov 2021 15:30:50 +0000 (+0100) Subject: Merge branch 'secp256r1-mod' X-Git-Tag: nettle_3.8_release_20220602~84 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e519fbf8ffcc354389b0180389f4b7c07c692e70;p=thirdparty%2Fnettle.git Merge branch 'secp256r1-mod' --- e519fbf8ffcc354389b0180389f4b7c07c692e70 diff --cc ChangeLog index e1bc071a,d448aacb..02ffdc81 --- a/ChangeLog +++ b/ChangeLog @@@ -1,21 -1,11 +1,29 @@@ +2021-10-26 Niels Möller + + * ecc-mod-arith.c (ecc_mod_zero_p): New function. + * ecc-curve25519.c (ecc_curve25519_zero_p): Use it. + * ecc-curve448.c (ecc_curve448_zero_p): Deleted, usage replaced + with ecc_mod_zero_p. + * testsuite/ecc-modinv-test.c (mod_eq_p): Rewritten to use + ecc_mod_zero_p, and require that one input is canonically reduced. + (zero_p): Deleted, usage replaced with ecc_mod_zero_p. + +2021-10-23 Niels Möller + + * gmp-glue.c (sec_zero_p): New function. + * ecc-curve25519.c (ecc_curve25519_zero_p): Use it. + * ecc-curve448.c (ecc_curve448_zero_p): Use it. + * ecc-random.c (ecdsa_in_range): Use it. + (zero_p): Delete static function. + + 2021-10-22 Niels Möller + + * ecc-secp256r1.c: Rework ad-hoc reduction functions. In + particular, arranged to always use single-limb quotients, no q2 + quotient carry. + (ecc_secp256r1_modp): Reimplemented, closer to 2/1 division, + (ecc_secp256r1_modq): Reimplemented, closer to divappr2 division. + 2021-10-06 Niels Möller * testsuite/ecc-mod-test.c: Extend tests to give better coverage