From: Niels Möller Date: Sat, 25 Jan 2020 15:31:44 +0000 (+0100) Subject: hogweed-benchmark: Pass correct sizes to knuth_lfib_random. X-Git-Tag: nettle_3.6rc1~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ee8b5bbeeab1f8121445f6d10e063e3c18f206b;p=thirdparty%2Fnettle.git hogweed-benchmark: Pass correct sizes to knuth_lfib_random. --- diff --git a/ChangeLog b/ChangeLog index e2368f6b..fd004c66 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2020-01-25 Niels Möller + + * examples/hogweed-benchmark.c (bench_curve_init): Pass correct + sizes to knuth_lfib_random. Patch contributed by Dmitry Baryshkov. + 2020-01-15 Niels Möller * Makefile.in: Replace suffix rules by pattern rules. Move .asm 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 ();