summaryrefslogtreecommitdiff
path: root/ecc-256.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-09-22 20:58:12 +0200
committerNiels Möller <nisse@lysator.liu.se>2014-09-22 21:06:22 +0200
commitb524402cb9a4a8d2580eb47f0cf459e620b582b3 (patch)
treee3a98eb0fbd76e891fb6036618dc351a1b2ccfb5 /ecc-256.c
parentfeec2348921af323cf7d6d12488bc83d8b83252b (diff)
downloadnettle-b524402cb9a4a8d2580eb47f0cf459e620b582b3.tar.gz
Added invert function pointer to struct ecc_modulo.
Updated and renamed sec_modinv -> ecc_mod_inv, and deleted the ecc_modp_inv and ecc_modq_inv wrapper functions.
Diffstat (limited to 'ecc-256.c')
-rw-r--r--ecc-256.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ecc-256.c b/ecc-256.c
index 259b9c9c..95b719ed 100644
--- a/ecc-256.c
+++ b/ecc-256.c
@@ -236,8 +236,11 @@ const struct ecc_curve nettle_secp_256r1 =
ecc_Bmodp,
ecc_Bmodp_shifted,
ecc_redc_ppm1,
+
+ ecc_pp1h,
ecc_256_modp,
USE_REDC ? ecc_256_redc : ecc_256_modp,
+ ecc_mod_inv,
},
{
256,
@@ -248,8 +251,11 @@ const struct ecc_curve nettle_secp_256r1 =
ecc_Bmodq,
ecc_Bmodq_shifted,
NULL,
+ ecc_qp1h,
+
ecc_256_modq,
ecc_256_modq,
+ ecc_mod_inv,
},
USE_REDC,
@@ -269,8 +275,6 @@ const struct ecc_curve nettle_secp_256r1 =
ecc_b,
ecc_g,
NULL,
- ecc_pp1h,
ecc_unit,
- ecc_qp1h,
ecc_table
};