summaryrefslogtreecommitdiff
path: root/ecc-gostdsa-sign.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-gostdsa-sign.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-gostdsa-sign.c')
-rw-r--r--ecc-gostdsa-sign.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ecc-gostdsa-sign.c b/ecc-gostdsa-sign.c
index 00eeef81..a12eb2af 100644
--- a/ecc-gostdsa-sign.c
+++ b/ecc-gostdsa-sign.c
@@ -84,9 +84,9 @@ ecc_gostdsa_sign (const struct ecc_curve *ecc,
if (mpn_zero_p (hp, ecc->p.size))
mpn_add_1 (hp, hp, ecc->p.size, 1);
- ecc_modq_mul (ecc, tp, rp, zp);
- ecc_modq_mul (ecc, t2p, kp, hp);
- ecc_modq_add (ecc, sp, tp, t2p);
+ ecc_mod_mul (&ecc->q, tp, rp, zp);
+ ecc_mod_mul (&ecc->q, t2p, kp, hp);
+ ecc_mod_add (&ecc->q, sp, tp, t2p);
/* Also reduce mod ecc->q. It should already be < 2*ecc->q,
* so one subtraction should suffice. */