From 36cb5e348d824df8ed9edb1e2bd7283c66390243 Mon Sep 17 00:00:00 2001 From: tb Date: Sun, 26 Mar 2023 18:54:08 +0000 Subject: [PATCH] Move the N_MOD_EXP_TESTS up to where it belongs --- regress/lib/libcrypto/bn/bn_mod_exp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/regress/lib/libcrypto/bn/bn_mod_exp.c b/regress/lib/libcrypto/bn/bn_mod_exp.c index 68e44cf9e7e..6d25f11b555 100644 --- a/regress/lib/libcrypto/bn/bn_mod_exp.c +++ b/regress/lib/libcrypto/bn/bn_mod_exp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_mod_exp.c,v 1.17 2023/03/26 18:46:23 tb Exp $ */ +/* $OpenBSD: bn_mod_exp.c,v 1.18 2023/03/26 18:54:08 tb Exp $ */ /* * Copyright (c) 2022,2023 Theo Buehler @@ -24,6 +24,8 @@ #include "bn_local.h" +#define N_MOD_EXP_TESTS 400 + #define INIT_MOD_EXP_FN(f) { .name = #f, .mod_exp_fn = (f), } #define INIT_MOD_EXP_MONT_FN(f) { .name = #f, .mod_exp_mont_fn = (f), } @@ -196,8 +198,6 @@ run_bn_mod_exp_zero_tests(void) return failed; } -#define N_MOD_EXP_TESTS 400 - static const struct mod_exp_test { const char *name; int (*mod_exp_fn)(BIGNUM *, const BIGNUM *, const BIGNUM *, -- 2.20.1