diff options
author | Niels Möller <nisse@lysator.liu.se> | 2014-09-23 14:04:25 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2014-09-23 14:04:25 +0200 |
commit | 8b6cd994fe5a4d88a467fa93ab1596e1b445582a (patch) | |
tree | ac1beb8e28ae7aae35344312f6896777db8af06c /ecc-192.c | |
parent | bf52911d41f394f69edd3ae8acf8d9d261e16d27 (diff) | |
download | nettle-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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, |