diff options
author | tb <> | 2025-01-22 13:02:14 +0000 |
---|---|---|
committer | tb <> | 2025-01-22 13:02:14 +0000 |
commit | 0a4ee5c314422e44e0e2971f7d4af7a05ecb124a (patch) | |
tree | 0ed4f4a73a200ad55466b48210d5f818131a0904 /src | |
parent | 8494c52aa61387f1eac0ec4ede91ed28dfd4ad81 (diff) | |
download | openbsd-0a4ee5c314422e44e0e2971f7d4af7a05ecb124a.tar.gz openbsd-0a4ee5c314422e44e0e2971f7d4af7a05ecb124a.tar.bz2 openbsd-0a4ee5c314422e44e0e2971f7d4af7a05ecb124a.zip |
bn_test: remove random negative dance for bn_div_reciprocal()
Diffstat (limited to 'src')
-rw-r--r-- | src/regress/lib/libcrypto/bn/bn_test.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/regress/lib/libcrypto/bn/bn_test.c b/src/regress/lib/libcrypto/bn/bn_test.c index aeb2134c4b..4aeb3ee284 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.21 2025/01/22 10:12:28 tb Exp $ */ | 1 | /* $OpenBSD: bn_test.c,v 1.22 2025/01/22 13:02:14 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 | * |
@@ -589,8 +589,6 @@ test_div_recp(BIO *bp, BN_CTX *ctx) | |||
589 | CHECK_GOTO(BN_add_word(a, i)); | 589 | CHECK_GOTO(BN_add_word(a, i)); |
590 | } else | 590 | } else |
591 | CHECK_GOTO(BN_bntest_rand(b, 50 + 3 * (i - num1), 0, 0)); | 591 | CHECK_GOTO(BN_bntest_rand(b, 50 + 3 * (i - num1), 0, 0)); |
592 | BN_set_negative(a, rand_neg()); | ||
593 | BN_set_negative(b, rand_neg()); | ||
594 | BN_RECP_CTX_free(recp); | 592 | BN_RECP_CTX_free(recp); |
595 | CHECK_GOTO(recp = BN_RECP_CTX_create(b)); | 593 | CHECK_GOTO(recp = BN_RECP_CTX_create(b)); |
596 | CHECK_GOTO(BN_div_reciprocal(d, c, a, recp, ctx)); | 594 | CHECK_GOTO(BN_div_reciprocal(d, c, a, recp, ctx)); |