summaryrefslogtreecommitdiff
path: root/ecc-ecdsa-sign.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-ecdsa-sign.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-ecdsa-sign.c')
-rw-r--r--ecc-ecdsa-sign.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ecc-ecdsa-sign.c b/ecc-ecdsa-sign.c
index 61a75e54..de17ac4c 100644
--- a/ecc-ecdsa-sign.c
+++ b/ecc-ecdsa-sign.c
@@ -84,7 +84,7 @@ ecc_ecdsa_sign (const struct ecc_curve *ecc,
/* Invert k, uses 5 * ecc->p.size including scratch */
mpn_copyi (hp, kp, ecc->p.size);
- ecc_modq_inv (ecc, kinv, hp, tp);
+ ecc->q.invert (&ecc->q, kinv, hp, tp);
/* Process hash digest */
ecc_hash (ecc, hp, length, digest);