From 93eb83f20d56ff25dd57f3fa4e810cdf8d488239 Mon Sep 17 00:00:00 2001 From: Dmitry Baryshkov Date: Mon, 10 Feb 2020 18:09:33 +0300 Subject: ecc: remove ecc_modp_foo/ecc_modq_foo macros To make ecc functions usage more obvious remove ecc_modp_foo() and ecc_modq_foo() wrapper macros. Signed-off-by: Dmitry Baryshkov --- ecc-eh-to-a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ecc-eh-to-a.c') diff --git a/ecc-eh-to-a.c b/ecc-eh-to-a.c index 89d2b6e3..869e8ad5 100644 --- a/ecc-eh-to-a.c +++ b/ecc-eh-to-a.c @@ -61,11 +61,11 @@ ecc_eh_to_a (const struct ecc_curve *ecc, /* Needs 2*size + scratch for the invert call. */ ecc->p.invert (&ecc->p, izp, zp, tp + ecc->p.size); - ecc_modp_mul (ecc, tp, xp, izp); + ecc_mod_mul (&ecc->p, tp, xp, izp); cy = mpn_sub_n (r, tp, ecc->p.m, ecc->p.size); cnd_copy (cy, r, tp, ecc->p.size); - ecc_modp_mul (ecc, tp, yp, izp); + ecc_mod_mul (&ecc->p, tp, yp, izp); cy = mpn_sub_n (r + ecc->p.size, tp, ecc->p.m, ecc->p.size); cnd_copy (cy, r + ecc->p.size, tp, ecc->p.size); } -- cgit v1.2.1