summaryrefslogtreecommitdiff
path: root/ecc-521.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-09-22 13:47:43 +0200
committerNiels Möller <nisse@lysator.liu.se>2014-09-22 13:47:43 +0200
commit0b511c919436d21d14280b2c6ed9f1131de71de4 (patch)
treeca022977e81b4757078ce29ca3da5a69f1ae9d7b /ecc-521.c
parenta78c9459fda9204b870350a3e075cd78d448fca2 (diff)
downloadnettle-0b511c919436d21d14280b2c6ed9f1131de71de4.tar.gz
Use struct ecc_modulo for all mod and redc functions.
Diffstat (limited to 'ecc-521.c')
-rw-r--r--ecc-521.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ecc-521.c b/ecc-521.c
index c3fed94f..505f6e25 100644
--- a/ecc-521.c
+++ b/ecc-521.c
@@ -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,