From 7ee8b5bbeeab1f8121445f6d10e063e3c18f206b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Sat, 25 Jan 2020 16:31:44 +0100 Subject: hogweed-benchmark: Pass correct sizes to knuth_lfib_random. --- ChangeLog | 5 +++++ examples/hogweed-benchmark.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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 (); -- cgit v1.2.1 From 33d047b2fdf56207fa26a41c531eb7b3192ced53 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Sat, 25 Jan 2020 20:56:40 +0100 Subject: .gitlab-ci.yml: require linux systems for running CI Gitlab added windows shared runners and we should avoid running CI in this environment as it will immediatelly fail. Signed-off-by: Nikos Mavrogiannopoulos --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 85acdf14..663f98f5 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: -- cgit v1.2.1