diff options
author | Niels Möller <nisse@lysator.liu.se> | 2014-09-23 13:14:02 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2014-09-23 13:14:02 +0200 |
commit | a3328c58174827dbec966748a074db439d8e151a (patch) | |
tree | b7a724adcbd13eabf2c79cbfbc81b9378ba7e14f /ecc-eh-to-a.c | |
parent | 64b9a7f8b361db607a64fd1366dc74f1b73da1e9 (diff) | |
download | nettle-a3328c58174827dbec966748a074db439d8e151a.tar.gz |
ecc_mod_inv interface and allocation changes.
Diffstat (limited to 'ecc-eh-to-a.c')
-rw-r--r-- | ecc-eh-to-a.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ecc-eh-to-a.c b/ecc-eh-to-a.c index a0182308..4cfcad3b 100644 --- a/ecc-eh-to-a.c +++ b/ecc-eh-to-a.c @@ -63,9 +63,8 @@ ecc_eh_to_a (const struct ecc_curve *ecc, mp_limb_t cy; - mpn_copyi (tp, zp, ecc->p.size); - /* Needs 3*size scratch */ - ecc->p.invert (&ecc->p, izp, tp, tp + ecc->p.size); + /* Needs 2*size scratch */ + ecc->p.invert (&ecc->p, izp, zp, tp + ecc->p.size); ecc_modp_mul (ecc, tp, xp, izp); cy = mpn_sub_n (r, tp, ecc->p.m, ecc->p.size); |