diff options
author | Niels Möller <nisse@lysator.liu.se> | 2014-09-22 14:41:33 +0200 |
---|---|---|
committer | Niels Möller <nisse@lysator.liu.se> | 2014-09-22 14:41:33 +0200 |
commit | 56079909294d1d5708e8959d219b23177e176ea6 (patch) | |
tree | 7ad3201542c76fe2aec1bf622a73d17ea6f4e4c8 /examples | |
parent | 46bfb297beb343b0b8dfbadf1dc8c28aa2fca69e (diff) | |
download | nettle-56079909294d1d5708e8959d219b23177e176ea6.tar.gz |
Moved mod and reduce function pointers to struct ecc_modulo.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/ecc-benchmark.c | 6 |
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 |