summaryrefslogtreecommitdiff
path: root/ecc-secp256r1.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2020-11-13 19:59:36 +0100
committerNiels Möller <nisse@lysator.liu.se>2020-11-13 19:59:36 +0100
commitd7a433dc591a8435defebbcdf85a98d4198f9dce (patch)
tree165f0c4eb502809a351f5c369a1f684e0e5e334d /ecc-secp256r1.c
parent8b37e1108875f92f31e0e1007a6392a0e8734b6b (diff)
downloadnettle-d7a433dc591a8435defebbcdf85a98d4198f9dce.tar.gz
Generalize ECC_J_TO_A_ITCH.
* ecc-internal.h (ECC_J_TO_A_ITCH): Generalize, and take invert itch as an argument, similarly to ECC_EH_TO_A_ITCH. Updated all secp and gost curve definitions to use it.
Diffstat (limited to 'ecc-secp256r1.c')
-rw-r--r--ecc-secp256r1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ecc-secp256r1.c b/ecc-secp256r1.c
index d813da5d..9bdd0077 100644
--- a/ecc-secp256r1.c
+++ b/ecc-secp256r1.c
@@ -345,7 +345,7 @@ const struct ecc_curve _nettle_secp_256r1 =
ECC_DUP_JJ_ITCH (ECC_LIMB_SIZE),
ECC_MUL_A_ITCH (ECC_LIMB_SIZE),
ECC_MUL_G_ITCH (ECC_LIMB_SIZE),
- 2*ECC_LIMB_SIZE + ECC_SECP256R1_INV_ITCH,
+ ECC_J_TO_A_ITCH(ECC_LIMB_SIZE, ECC_SECP256R1_INV_ITCH),
ecc_add_jja,
ecc_add_jjj,