summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2020-01-25 16:31:44 +0100
committerNiels Möller <nisse@lysator.liu.se>2020-01-25 16:31:44 +0100
commit7ee8b5bbeeab1f8121445f6d10e063e3c18f206b (patch)
tree9216fcb66d5915424134afbacc82ce10b856542e /examples
parentd1dbba1e7fcf4ad54e5d3435e381ae336c36cf2a (diff)
downloadnettle-7ee8b5bbeeab1f8121445f6d10e063e3c18f206b.tar.gz
hogweed-benchmark: Pass correct sizes to knuth_lfib_random.
Diffstat (limited to 'examples')
-rw-r--r--examples/hogweed-benchmark.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/hogweed-benchmark.c b/examples/hogweed-benchmark.c
index 11393df0..69315211 100644
--- a/examples/hogweed-benchmark.c
+++ b/examples/hogweed-benchmark.c
@@ -771,12 +771,12 @@ bench_curve_init (unsigned size)
case 255:
ctx->mul = curve25519_mul;
ctx->mul_g = curve25519_mul_g;
- knuth_lfib_random (&lfib, sizeof(CURVE25519_SIZE), ctx->s);
+ knuth_lfib_random (&lfib, CURVE25519_SIZE, ctx->s);
break;
case 448:
ctx->mul = curve448_mul;
ctx->mul_g = curve448_mul_g;
- knuth_lfib_random (&lfib, sizeof(CURVE448_SIZE), ctx->s);
+ knuth_lfib_random (&lfib, CURVE448_SIZE, ctx->s);
break;
default:
abort ();