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-521.c | |
parent | a78c9459fda9204b870350a3e075cd78d448fca2 (diff) | |
download | nettle-0b511c919436d21d14280b2c6ed9f1131de71de4.tar.gz |
Use struct ecc_modulo for all mod and redc functions.
Diffstat (limited to 'ecc-521.c')
-rw-r--r-- | ecc-521.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -57,7 +57,7 @@ ecc_521_modp (const struct ecc_curve *ecc, mp_limb_t *rp); /* Result may be *slightly* larger than 2^521 */ static void -ecc_521_modp (const struct ecc_curve *ecc UNUSED, mp_limb_t *rp) +ecc_521_modp (const struct ecc_modulo *m UNUSED, mp_limb_t *rp) { /* FIXME: Should use mpn_addlsh_n_ip1 */ mp_limb_t hi; @@ -110,7 +110,7 @@ const struct ecc_curve nettle_secp_521r1 = ecc_521_modp, ECC_REDC_SIZE > 0 ? ecc_pp1_redc : NULL, ecc_521_modp, - ecc_generic_modq, + ecc_mod, ecc_add_jjj, ecc_mul_a, |