summaryrefslogtreecommitdiff
path: root/lib/libcrypto/bn
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2022-07-13 06:38:03 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2022-07-13 06:38:03 +0000
commit2362b496ff336a899c563ce4748659e2d3afa010 (patch)
tree88f43d3b06f497b97aababd18e926a5606cfc4e2 /lib/libcrypto/bn
parent2e04dd93ec3bbe343b9cdd3a72f1c087019507bf (diff)
Enable BPSW primality test.
ok jsing
Diffstat (limited to 'lib/libcrypto/bn')
-rw-r--r--lib/libcrypto/bn/bn_prime.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libcrypto/bn/bn_prime.c b/lib/libcrypto/bn/bn_prime.c
index 0f3d85afb8a..0b1d672fcf6 100644
--- a/lib/libcrypto/bn/bn_prime.c
+++ b/lib/libcrypto/bn/bn_prime.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bn_prime.c,v 1.20 2022/07/13 06:36:08 tb Exp $ */
+/* $OpenBSD: bn_prime.c,v 1.21 2022/07/13 06:38:02 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -255,6 +255,8 @@ BN_is_prime_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed, BN_GENCB *cb)
return BN_is_prime_fasttest_ex(a, checks, ctx_passed, 0, cb);
}
+#define LIBRESSL_HAS_BPSW
+
int
BN_is_prime_fasttest_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed,
int do_trial_division, BN_GENCB *cb)