diff options
author | Niels Möller <nisse@lysator.liu.se> | 2014-09-22 13:47:43 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2014-09-22 13:47:43 +0200 |
commit | 0b511c919436d21d14280b2c6ed9f1131de71de4 (patch) | |
tree | ca022977e81b4757078ce29ca3da5a69f1ae9d7b /ecc-a-to-j.c | |
parent | a78c9459fda9204b870350a3e075cd78d448fca2 (diff) | |
download | nettle-0b511c919436d21d14280b2c6ed9f1131de71de4.tar.gz |
Use struct ecc_modulo for all mod and redc functions.
Diffstat (limited to 'ecc-a-to-j.c')
-rw-r--r-- | ecc-a-to-j.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ecc-a-to-j.c b/ecc-a-to-j.c index 7852e14a..ea0fa68c 100644 --- a/ecc-a-to-j.c +++ b/ecc-a-to-j.c @@ -47,10 +47,10 @@ ecc_a_to_j (const struct ecc_curve *ecc, mpn_copyd (r + ecc->p.size, p, 2*ecc->p.size); mpn_zero (r, ecc->p.size); - ecc->modp (ecc, r); + ecc->modp (&ecc->p, r); mpn_zero (r + ecc->p.size, ecc->p.size); - ecc->modp (ecc, r + ecc->p.size); + ecc->modp (&ecc->p, r + ecc->p.size); } else if (r != p) mpn_copyi (r, p, 2*ecc->p.size); |