diff options
author | Niels Möller <nisse@lysator.liu.se> | 2020-11-13 19:59:36 +0100 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2020-11-13 19:59:36 +0100 |
commit | d7a433dc591a8435defebbcdf85a98d4198f9dce (patch) | |
tree | 165f0c4eb502809a351f5c369a1f684e0e5e334d /ecc-secp256r1.c | |
parent | 8b37e1108875f92f31e0e1007a6392a0e8734b6b (diff) | |
download | nettle-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.c | 2 |
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, |