diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 85acdf143575e0e8132be8564d78e1b2e614530e..663f98f5cb8e5133c979e3822f0fccb538b6f81f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,6 +18,7 @@ build/x86-64: make check -j4 tags: - shared + - linux except: - tags build/mini-gmp: @@ -28,6 +29,7 @@ build/mini-gmp: make check -j4 tags: - shared + - linux except: - tags build/c89: @@ -38,6 +40,7 @@ build/c89: make check -j4 tags: - shared + - linux except: - tags build/ndebug: @@ -48,6 +51,7 @@ build/ndebug: make check -j4 tags: - shared + - linux except: - tags build/ubsan: @@ -58,6 +62,7 @@ build/ubsan: --disable-documentation && make -j4 && make check -j4 tags: - shared + - linux except: - tags build/asan: @@ -68,6 +73,7 @@ build/asan: make -j4 && make check -j4 tags: - shared + - linux except: - tags build/static-analyzers: @@ -78,6 +84,7 @@ build/static-analyzers: - scan-build --status-bugs -o scan-build-lib make -j$(nproc) tags: - shared + - linux except: - tags artifacts: @@ -97,6 +104,7 @@ build/gnutls: make -j $(nproc) check tags: - shared + - linux except: - tags artifacts: @@ -122,6 +130,7 @@ Debian.cross.x86: make check -j4 tags: - shared + - linux except: - tags .Debian.cross.template: &Debian_cross_template @@ -143,6 +152,7 @@ Debian.cross.x86: - make -j$(nproc) check tags: - shared + - linux except: - tags Debian.cross.arm-linux-gnueabihf: diff --git a/ChangeLog b/ChangeLog index e2368f6bf36d5bce08bc17c823680e16ce0d5be2..fd004c668558d3d39c539a0fa932f9e6374deffb 100644 --- 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 diff --git a/examples/hogweed-benchmark.c b/examples/hogweed-benchmark.c index bceed77e55d976219c1a3c41a4eff87e754cf743..3d0080210f3b7d2a0c3a23ffb64949613cb00bbd 100644 --- a/examples/hogweed-benchmark.c +++ b/examples/hogweed-benchmark.c @@ -873,12 +873,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 ();