From b524402cb9a4a8d2580eb47f0cf459e620b582b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Mon, 22 Sep 2014 20:58:12 +0200 Subject: 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. --- ecc-eh-to-a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ecc-eh-to-a.c') diff --git a/ecc-eh-to-a.c b/ecc-eh-to-a.c index aed176c1..a0182308 100644 --- a/ecc-eh-to-a.c +++ b/ecc-eh-to-a.c @@ -65,7 +65,7 @@ ecc_eh_to_a (const struct ecc_curve *ecc, mpn_copyi (tp, zp, ecc->p.size); /* Needs 3*size scratch */ - ecc_modp_inv (ecc, izp, tp, tp + ecc->p.size); + ecc->p.invert (&ecc->p, izp, tp, tp + ecc->p.size); ecc_modp_mul (ecc, tp, xp, izp); cy = mpn_sub_n (r, tp, ecc->p.m, ecc->p.size); -- cgit v1.2.1