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 /examples | |
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 'examples')
-rw-r--r-- | examples/ecc-benchmark.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ecc-benchmark.c b/examples/ecc-benchmark.c index c4bb7f51..0ecf3658 100644 --- a/examples/ecc-benchmark.c +++ b/examples/ecc-benchmark.c @@ -174,7 +174,7 @@ bench_modinv (void *p) { struct ecc_ctx *ctx = (struct ecc_ctx *) p; mpn_copyi (ctx->rp + ctx->ecc->p.size, ctx->ap, ctx->ecc->p.size); - ecc_modp_inv (ctx->ecc, ctx->rp, ctx->rp + ctx->ecc->p.size, ctx->tp); + ctx->ecc->p.invert (&ctx->ecc->p, ctx->rp, ctx->rp + ctx->ecc->p.size, ctx->tp); } #if !NETTLE_USE_MINI_GMP |