summaryrefslogtreecommitdiff
path: root/curve25519-eh-to-x.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-09-22 20:58:12 +0200
committerNiels Möller <nisse@lysator.liu.se>2014-09-22 21:06:22 +0200
commitb524402cb9a4a8d2580eb47f0cf459e620b582b3 (patch)
treee3a98eb0fbd76e891fb6036618dc351a1b2ccfb5 /curve25519-eh-to-x.c
parentfeec2348921af323cf7d6d12488bc83d8b83252b (diff)
downloadnettle-b524402cb9a4a8d2580eb47f0cf459e620b582b3.tar.gz
Added invert function pointer to struct ecc_modulo.
Updated and renamed sec_modinv -> ecc_mod_inv, and deleted the ecc_modp_inv and ecc_modq_inv wrapper functions.
Diffstat (limited to 'curve25519-eh-to-x.c')
-rw-r--r--curve25519-eh-to-x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/curve25519-eh-to-x.c b/curve25519-eh-to-x.c
index 4d05a6bf..47f07129 100644
--- a/curve25519-eh-to-x.c
+++ b/curve25519-eh-to-x.c
@@ -66,7 +66,7 @@ curve25519_eh_to_x (mp_limb_t *xp, const mp_limb_t *p,
in this case. */
ecc_modp_sub (ecc, t0, wp, vp);
/* Needs 3*size scratch, for a total of 5*size */
- ecc_modp_inv (ecc, t1, t0, t2);
+ ecc->p.invert (&ecc->p, t1, t0, t2);
ecc_modp_add (ecc, t0, wp, vp);
ecc_modp_mul (ecc, t2, t0, t1);