]> git.ipfire.org Git - thirdparty/nettle.git/commit
New functions ecc_mod_mul_canonical and ecc_mod_sqr_canonical.
authorNiels Möller <nisse@lysator.liu.se>
Thu, 11 Mar 2021 18:37:41 +0000 (19:37 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Wed, 17 Mar 2021 09:17:58 +0000 (10:17 +0100)
commita63893791280d441c713293491da97c79c0950fe
tree39fae68efb9296875aea36740594724626681ca3
parentc9d9c66b8ed111ab9ebd39440ec3f8d8d91734bd
New functions ecc_mod_mul_canonical and ecc_mod_sqr_canonical.

* ecc-mod-arith.c (ecc_mod_mul_canonical, ecc_mod_sqr_canonical):
New functions.
* ecc-internal.h: Declare and document new functions.
* curve448-eh-to-x.c (curve448_eh_to_x): Use ecc_mod_sqr_canonical.
* curve25519-eh-to-x.c (curve25519_eh_to_x): Use ecc_mod_mul_canonical.
* ecc-eh-to-a.c (ecc_eh_to_a): Likewise.
* ecc-j-to-a.c (ecc_j_to_a): Likewise.
* ecc-mul-m.c (ecc_mul_m): Likewise.

(cherry picked from commit 2bf497ba4d6acc6f352bca015837fad33008565c)
ChangeLog
curve25519-eh-to-x.c
curve448-eh-to-x.c
ecc-eh-to-a.c
ecc-internal.h
ecc-j-to-a.c
ecc-mod-arith.c
ecc-mul-m.c