summaryrefslogtreecommitdiff
path: root/ecc-192.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-09-23 14:04:25 +0200
committerNiels Möller <nisse@lysator.liu.se>2014-09-23 14:04:25 +0200
commit8b6cd994fe5a4d88a467fa93ab1596e1b445582a (patch)
treeac1beb8e28ae7aae35344312f6896777db8af06c /ecc-192.c
parentbf52911d41f394f69edd3ae8acf8d9d261e16d27 (diff)
downloadnettle-8b6cd994fe5a4d88a467fa93ab1596e1b445582a.tar.gz
curve25519: Use powering to compute modp inverses, 5.5 times faster than ecc_mod_inv.
Diffstat (limited to 'ecc-192.c')
-rw-r--r--ecc-192.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ecc-192.c b/ecc-192.c
index 6d4010f2..af31d376 100644
--- a/ecc-192.c
+++ b/ecc-192.c
@@ -117,6 +117,8 @@ const struct ecc_curve nettle_secp_192r1 =
ECC_LIMB_SIZE,
ECC_BMODP_SIZE,
ECC_REDC_SIZE,
+ ECC_MOD_INV_ITCH (ECC_LIMB_SIZE),
+
ecc_p,
ecc_Bmodp,
ecc_Bmodp_shifted,
@@ -132,6 +134,8 @@ const struct ecc_curve nettle_secp_192r1 =
ECC_LIMB_SIZE,
ECC_BMODQ_SIZE,
0,
+ ECC_MOD_INV_ITCH (ECC_LIMB_SIZE),
+
ecc_q,
ecc_Bmodq,
ecc_Bmodq_shifted,