diff options
author | Niels Möller <nisse@lysator.liu.se> | 2014-09-22 20:58:12 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2014-09-22 21:06:22 +0200 |
commit | b524402cb9a4a8d2580eb47f0cf459e620b582b3 (patch) | |
tree | e3a98eb0fbd76e891fb6036618dc351a1b2ccfb5 /ecc-256.c | |
parent | feec2348921af323cf7d6d12488bc83d8b83252b (diff) | |
download | nettle-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.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 }; |