]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
hogweed-benchmark: Pass correct sizes to knuth_lfib_random.
authorNiels Möller <nisse@lysator.liu.se>
Sat, 25 Jan 2020 15:31:44 +0000 (16:31 +0100)
committerNiels Möller <nisse@lysator.liu.se>
Sat, 25 Jan 2020 15:31:44 +0000 (16:31 +0100)
ChangeLog
examples/hogweed-benchmark.c

index e2368f6bf36d5bce08bc17c823680e16ce0d5be2..fd004c668558d3d39c539a0fa932f9e6374deffb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-01-25  Niels Möller  <nisse@lysator.liu.se>
+
+       * 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  <nisse@lysator.liu.se>
 
        * Makefile.in: Replace suffix rules by pattern rules. Move .asm
index 11393df04c81c4f8ab2a39ac427321f3bf7379a8..69315211a0ccc37ad86dbfbbe778ecd4bfddbbaf 100644 (file)
@@ -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 ();