summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2023-03-29 06:53:49 +0000
committertb <>2023-03-29 06:53:49 +0000
commitef44c81e7f79e3cd9191b53194e3ec55e38bc3d8 (patch)
tree6e88e9e7230d464ee0df52c47b76f01164775c3f /src
parentf926f76764e9ce8a5fd4c1f488b4fb531649ad56 (diff)
downloadopenbsd-ef44c81e7f79e3cd9191b53194e3ec55e38bc3d8.tar.gz
openbsd-ef44c81e7f79e3cd9191b53194e3ec55e38bc3d8.tar.bz2
openbsd-ef44c81e7f79e3cd9191b53194e3ec55e38bc3d8.zip
Use more consistent names for the main test functions
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/bn/bn_mod_exp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_mod_exp.c b/src/regress/lib/libcrypto/bn/bn_mod_exp.c
index 0d3767b07e..f5b8f7dab5 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.29 2023/03/29 06:50:51 tb Exp $ */ 1/* $OpenBSD: bn_mod_exp.c,v 1.30 2023/03/29 06:53:49 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>
@@ -169,7 +169,7 @@ bn_mod_exp_zero_word_test(BN_CTX *ctx)
169} 169}
170 170
171static int 171static int
172run_bn_mod_exp_zero_tests(void) 172test_bn_mod_exp_zero(void)
173{ 173{
174 BN_CTX *ctx; 174 BN_CTX *ctx;
175 size_t i; 175 size_t i;
@@ -399,7 +399,7 @@ bn_mod_exp_test(int reduce, BIGNUM *want, BIGNUM *a, BIGNUM *p, BIGNUM *m,
399} 399}
400 400
401static int 401static int
402run_bn_mod_exp_tests(void) 402test_bn_mod_exp(void)
403{ 403{
404 BIGNUM *a, *p, *m, *want; 404 BIGNUM *a, *p, *m, *want;
405 BN_CTX *ctx; 405 BN_CTX *ctx;
@@ -520,7 +520,7 @@ bn_mod_exp2_test(int reduce, BIGNUM *want, BIGNUM *got, BIGNUM *a, BIGNUM *p,
520} 520}
521 521
522static int 522static int
523run_bn_mod_exp2_tests(void) 523test_bn_mod_exp2(void)
524{ 524{
525 BIGNUM *a, *p, *b, *q, *m, *want, *got; 525 BIGNUM *a, *p, *b, *q, *m, *want, *got;
526 BN_CTX *ctx; 526 BN_CTX *ctx;
@@ -591,9 +591,9 @@ main(void)
591{ 591{
592 int failed = 0; 592 int failed = 0;
593 593
594 failed |= run_bn_mod_exp_zero_tests(); 594 failed |= test_bn_mod_exp_zero();
595 failed |= run_bn_mod_exp_tests(); 595 failed |= test_bn_mod_exp();
596 failed |= run_bn_mod_exp2_tests(); 596 failed |= test_bn_mod_exp2();
597 failed |= test_bn_mod_exp2_mont_crash(); 597 failed |= test_bn_mod_exp2_mont_crash();
598 598
599 return failed; 599 return failed;