diff options
author | tb <> | 2023-03-26 18:57:04 +0000 |
---|---|---|
committer | tb <> | 2023-03-26 18:57:04 +0000 |
commit | 4cc794820ea2378bfb73df0627c0bbb0cf94aa3d (patch) | |
tree | 83a0d8e1816001120c2aa642b93fcd0751597b23 /src | |
parent | ecb95313ad208b8dea7b0dc44931d666c7bdd0e5 (diff) | |
download | openbsd-4cc794820ea2378bfb73df0627c0bbb0cf94aa3d.tar.gz openbsd-4cc794820ea2378bfb73df0627c0bbb0cf94aa3d.tar.bz2 openbsd-4cc794820ea2378bfb73df0627c0bbb0cf94aa3d.zip |
Rename dump_results() into dump_exp_results()
This prepares for consistency with an upcoming diff. While here fix an
argument order bug.
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 | ||