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-internal.h | |
parent | 64b9a7f8b361db607a64fd1366dc74f1b73da1e9 (diff) | |
download | nettle-a3328c58174827dbec966748a074db439d8e151a.tar.gz |
ecc_mod_inv interface and allocation changes.
Diffstat (limited to 'ecc-internal.h')
-rw-r--r-- | ecc-internal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ecc-internal.h b/ecc-internal.h index b96751f8..fe9acfb3 100644 --- a/ecc-internal.h +++ b/ecc-internal.h @@ -80,7 +80,7 @@ struct ecc_modulo; typedef void ecc_mod_func (const struct ecc_modulo *m, mp_limb_t *rp); typedef void ecc_mod_inv_func (const struct ecc_modulo *m, - mp_limb_t *vp, mp_limb_t *ap, + mp_limb_t *vp, const mp_limb_t *ap, mp_limb_t *scratch); typedef void ecc_add_func (const struct ecc_curve *ecc, @@ -263,7 +263,7 @@ curve25519_eh_to_x (mp_limb_t *xp, const mp_limb_t *p, mp_limb_t *scratch); /* Current scratch needs: */ -#define ECC_MODINV_ITCH(size) (3*(size)) +#define ECC_MOD_INV_ITCH(size) (2*(size)) #define ECC_J_TO_A_ITCH(size) (5*(size)) #define ECC_EH_TO_A_ITCH(size) (4*(size)) #define ECC_DUP_JJ_ITCH(size) (5*(size)) |