diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libcrypto/bn/bn_mod_exp.c | 14 |
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 | ||
| 171 | static int | 171 | static int |
| 172 | run_bn_mod_exp_zero_tests(void) | 172 | test_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 | ||
| 401 | static int | 401 | static int |
| 402 | run_bn_mod_exp_tests(void) | 402 | test_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 | ||
| 522 | static int | 522 | static int |
| 523 | run_bn_mod_exp2_tests(void) | 523 | test_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; |
