summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2023-03-26 18:54:08 +0000
committertb <>2023-03-26 18:54:08 +0000
commitecb95313ad208b8dea7b0dc44931d666c7bdd0e5 (patch)
tree40fbc315e3b8ed7f993e490359ccd772353ddde9 /src
parent5842915a50f8217d841cdf480259d157ac95a0a2 (diff)
downloadopenbsd-ecb95313ad208b8dea7b0dc44931d666c7bdd0e5.tar.gz
openbsd-ecb95313ad208b8dea7b0dc44931d666c7bdd0e5.tar.bz2
openbsd-ecb95313ad208b8dea7b0dc44931d666c7bdd0e5.zip
Move the N_MOD_EXP_TESTS up to where it belongs
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/bn/bn_mod_exp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_mod_exp.c b/src/regress/lib/libcrypto/bn/bn_mod_exp.c
index 68e44cf9e7..6d25f11b55 100644
--- a/src/regress/lib/libcrypto/bn/bn_mod_exp.c
+++ b/src/regress/lib/libcrypto/bn/bn_mod_exp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_mod_exp.c,v 1.17 2023/03/26 18:46:23 tb Exp $ */ 1/* $OpenBSD: bn_mod_exp.c,v 1.18 2023/03/26 18:54:08 tb Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2022,2023 Theo Buehler <tb@openbsd.org> 4 * Copyright (c) 2022,2023 Theo Buehler <tb@openbsd.org>
@@ -24,6 +24,8 @@
24 24
25#include "bn_local.h" 25#include "bn_local.h"
26 26
27#define N_MOD_EXP_TESTS 400
28
27#define INIT_MOD_EXP_FN(f) { .name = #f, .mod_exp_fn = (f), } 29#define INIT_MOD_EXP_FN(f) { .name = #f, .mod_exp_fn = (f), }
28#define INIT_MOD_EXP_MONT_FN(f) { .name = #f, .mod_exp_mont_fn = (f), } 30#define INIT_MOD_EXP_MONT_FN(f) { .name = #f, .mod_exp_mont_fn = (f), }
29 31
@@ -196,8 +198,6 @@ run_bn_mod_exp_zero_tests(void)
196 return failed; 198 return failed;
197} 199}
198 200
199#define N_MOD_EXP_TESTS 400
200
201static const struct mod_exp_test { 201static const struct mod_exp_test {
202 const char *name; 202 const char *name;
203 int (*mod_exp_fn)(BIGNUM *, const BIGNUM *, const BIGNUM *, 203 int (*mod_exp_fn)(BIGNUM *, const BIGNUM *, const BIGNUM *,