diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libcrypto/bn/bn_mod_exp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_mod_exp.c b/src/regress/lib/libcrypto/bn/bn_mod_exp.c index 6d25f11b55..002649fd60 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.18 2023/03/26 18:54:08 tb Exp $ */ | 1 | /* $OpenBSD: bn_mod_exp.c,v 1.19 2023/03/26 18:57:04 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> |
| @@ -280,8 +280,8 @@ generate_test_triple(int reduce, BIGNUM *a, BIGNUM *p, BIGNUM *m, BN_CTX *ctx) | |||
| 280 | } | 280 | } |
| 281 | 281 | ||
| 282 | static void | 282 | static void |
| 283 | dump_results(const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, | 283 | dump_exp_results(const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, |
| 284 | const BIGNUM *got, const BIGNUM *want, const char *name) | 284 | const BIGNUM *want, const BIGNUM *got, const char *name) |
| 285 | { | 285 | { |
| 286 | printf("BN_mod_exp_simple() and %s() disagree", name); | 286 | printf("BN_mod_exp_simple() and %s() disagree", name); |
| 287 | 287 | ||
| @@ -321,7 +321,7 @@ test_mod_exp(const BIGNUM *want, const BIGNUM *a, const BIGNUM *p, | |||
| 321 | errx(1, "%s() failed", test->name); | 321 | errx(1, "%s() failed", test->name); |
| 322 | 322 | ||
| 323 | if (BN_cmp(want, got) != 0) { | 323 | if (BN_cmp(want, got) != 0) { |
| 324 | dump_results(a, p, m, want, got, test->name); | 324 | dump_exp_results(a, p, m, want, got, test->name); |
| 325 | goto err; | 325 | goto err; |
| 326 | } | 326 | } |
| 327 | 327 | ||
