diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2020-02-10 18:09:33 +0300 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2020-02-15 10:33:28 +0100 |
commit | 93eb83f20d56ff25dd57f3fa4e810cdf8d488239 (patch) | |
tree | 681d695bc06140a488bb9247aaaa67264adfa7cf /ecc-ecdsa-verify.c | |
parent | d7f2dae963d279782582d785c80ddef377dfe6dc (diff) | |
download | nettle-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-ecdsa-verify.c')
-rw-r--r-- | ecc-ecdsa-verify.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ecc-ecdsa-verify.c b/ecc-ecdsa-verify.c index d7f5b684..6f9fb5d9 100644 --- a/ecc-ecdsa-verify.c +++ b/ecc-ecdsa-verify.c @@ -112,10 +112,10 @@ ecc_ecdsa_verify (const struct ecc_curve *ecc, /* u1 = h / s, P1 = u1 * G */ ecc_hash (&ecc->q, hp, length, digest); - ecc_modq_mul (ecc, u1, hp, sinv); + ecc_mod_mul (&ecc->q, u1, hp, sinv); /* u2 = r / s, P2 = u2 * Y */ - ecc_modq_mul (ecc, u2, rp, sinv); + ecc_mod_mul (&ecc->q, u2, rp, sinv); /* Total storage: 5*ecc->p.size + ecc->mul_itch */ ecc->mul (ecc, P2, u2, pp, u2 + ecc->p.size); |