summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2014-09-22 14:41:33 +0200
committerNiels Möller <nisse@lysator.liu.se>2014-09-22 14:41:33 +0200
commit56079909294d1d5708e8959d219b23177e176ea6 (patch)
tree7ad3201542c76fe2aec1bf622a73d17ea6f4e4c8 /examples
parent46bfb297beb343b0b8dfbadf1dc8c28aa2fca69e (diff)
downloadnettle-56079909294d1d5708e8959d219b23177e176ea6.tar.gz
Moved mod and reduce function pointers to struct ecc_modulo.
Diffstat (limited to 'examples')
-rw-r--r--examples/ecc-benchmark.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/ecc-benchmark.c b/examples/ecc-benchmark.c
index e2b33c4a..f2d5c572 100644
--- a/examples/ecc-benchmark.c
+++ b/examples/ecc-benchmark.c
@@ -150,7 +150,7 @@ bench_modp (void *p)
{
struct ecc_ctx *ctx = (struct ecc_ctx *) p;
mpn_copyi (ctx->rp, ctx->ap, 2*ctx->ecc->p.size);
- ctx->ecc->modp (&ctx->ecc->p, ctx->rp);
+ ctx->ecc->p.mod (&ctx->ecc->p, ctx->rp);
}
static void
@@ -158,7 +158,7 @@ bench_reduce (void *p)
{
struct ecc_ctx *ctx = (struct ecc_ctx *) p;
mpn_copyi (ctx->rp, ctx->ap, 2*ctx->ecc->p.size);
- ctx->ecc->reduce (&ctx->ecc->p, ctx->rp);
+ ctx->ecc->p.reduce (&ctx->ecc->p, ctx->rp);
}
static void
@@ -166,7 +166,7 @@ bench_modq (void *p)
{
struct ecc_ctx *ctx = (struct ecc_ctx *) p;
mpn_copyi (ctx->rp, ctx->ap, 2*ctx->ecc->p.size);
- ctx->ecc->modq (&ctx->ecc->q, ctx->rp);
+ ctx->ecc->q.mod(&ctx->ecc->q, ctx->rp);
}
static void