diff options
| author | tb <> | 2025-01-22 10:12:28 +0000 |
|---|---|---|
| committer | tb <> | 2025-01-22 10:12:28 +0000 |
| commit | 106854c89cabd2c199d4b9a9a9420298f2e36ab2 (patch) | |
| tree | 349767049bf9fdbe4cf2db5fe1f2b9cf3e0b66a6 | |
| parent | cf4e92c24aed14f7d79286679af5bc35b2578741 (diff) | |
| download | openbsd-106854c89cabd2c199d4b9a9a9420298f2e36ab2.tar.gz openbsd-106854c89cabd2c199d4b9a9a9420298f2e36ab2.tar.bz2 openbsd-106854c89cabd2c199d4b9a9a9420298f2e36ab2.zip | |
Adjust for BN_div_recp() -> BN_div_reciprocal()
| -rw-r--r-- | src/regress/lib/libcrypto/bn/bn_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_test.c b/src/regress/lib/libcrypto/bn/bn_test.c index d3fe485ec8..aeb2134c4b 100644 --- a/src/regress/lib/libcrypto/bn/bn_test.c +++ b/src/regress/lib/libcrypto/bn/bn_test.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: bn_test.c,v 1.20 2025/01/21 15:45:13 tb Exp $ */ | 1 | /* $OpenBSD: bn_test.c,v 1.21 2025/01/22 10:12:28 tb Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -224,7 +224,7 @@ main(int argc, char *argv[]) | |||
| 224 | goto err; | 224 | goto err; |
| 225 | (void)BIO_flush(out); | 225 | (void)BIO_flush(out); |
| 226 | 226 | ||
| 227 | message(out, "BN_div_recp"); | 227 | message(out, "BN_div_reciprocal"); |
| 228 | if (!test_div_recp(out, ctx)) | 228 | if (!test_div_recp(out, ctx)) |
| 229 | goto err; | 229 | goto err; |
| 230 | (void)BIO_flush(out); | 230 | (void)BIO_flush(out); |
| @@ -593,7 +593,7 @@ test_div_recp(BIO *bp, BN_CTX *ctx) | |||
| 593 | BN_set_negative(b, rand_neg()); | 593 | BN_set_negative(b, rand_neg()); |
| 594 | BN_RECP_CTX_free(recp); | 594 | BN_RECP_CTX_free(recp); |
| 595 | CHECK_GOTO(recp = BN_RECP_CTX_create(b)); | 595 | CHECK_GOTO(recp = BN_RECP_CTX_create(b)); |
| 596 | CHECK_GOTO(BN_div_recp(d, c, a, recp, ctx)); | 596 | CHECK_GOTO(BN_div_reciprocal(d, c, a, recp, ctx)); |
| 597 | if (bp != NULL) { | 597 | if (bp != NULL) { |
| 598 | if (!results) { | 598 | if (!results) { |
| 599 | CHECK_GOTO(BN_print(bp, a)); | 599 | CHECK_GOTO(BN_print(bp, a)); |
