-/* $OpenBSD: bn_mod_exp.c,v 1.29 2023/03/29 06:50:51 tb Exp $ */
+/* $OpenBSD: bn_mod_exp.c,v 1.30 2023/03/29 06:53:49 tb Exp $ */
/*
* Copyright (c) 2022,2023 Theo Buehler <tb@openbsd.org>
}
static int
-run_bn_mod_exp_zero_tests(void)
+test_bn_mod_exp_zero(void)
{
BN_CTX *ctx;
size_t i;
}
static int
-run_bn_mod_exp_tests(void)
+test_bn_mod_exp(void)
{
BIGNUM *a, *p, *m, *want;
BN_CTX *ctx;
}
static int
-run_bn_mod_exp2_tests(void)
+test_bn_mod_exp2(void)
{
BIGNUM *a, *p, *b, *q, *m, *want, *got;
BN_CTX *ctx;
{
int failed = 0;
- failed |= run_bn_mod_exp_zero_tests();
- failed |= run_bn_mod_exp_tests();
- failed |= run_bn_mod_exp2_tests();
+ failed |= test_bn_mod_exp_zero();
+ failed |= test_bn_mod_exp();
+ failed |= test_bn_mod_exp2();
failed |= test_bn_mod_exp2_mont_crash();
return failed;