summaryrefslogtreecommitdiff
path: root/ecc-eh-to-a.c
diff options
context:
space:
mode:
authorDmitry Baryshkov <dbaryshkov@gmail.com>2020-02-10 18:09:33 +0300
committerNiels Möller <nisse@lysator.liu.se>2020-02-15 10:33:28 +0100
commit93eb83f20d56ff25dd57f3fa4e810cdf8d488239 (patch)
tree681d695bc06140a488bb9247aaaa67264adfa7cf /ecc-eh-to-a.c
parentd7f2dae963d279782582d785c80ddef377dfe6dc (diff)
downloadnettle-93eb83f20d56ff25dd57f3fa4e810cdf8d488239.tar.gz
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 <dbaryshkov@gmail.com>
Diffstat (limited to 'ecc-eh-to-a.c')
-rw-r--r--ecc-eh-to-a.c4
1 files changed, 2 insertions, 2 deletions
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);
}