summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2022-07-13 06:38:02 +0000
committertb <>2022-07-13 06:38:02 +0000
commit0b515c38427ea4d29ad116277c104ea683c8e00a (patch)
tree157193b27f432b0f74c33b10294570b4dd5eb2ed /src
parent6ba6561c6850c3479935c786316735760dd89a5d (diff)
downloadopenbsd-0b515c38427ea4d29ad116277c104ea683c8e00a.tar.gz
openbsd-0b515c38427ea4d29ad116277c104ea683c8e00a.tar.bz2
openbsd-0b515c38427ea4d29ad116277c104ea683c8e00a.zip
Enable BPSW primality test.
ok jsing
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/bn/bn_prime.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libcrypto/bn/bn_prime.c b/src/lib/libcrypto/bn/bn_prime.c
index 0f3d85afb8..0b1d672fcf 100644
--- a/src/lib/libcrypto/bn/bn_prime.c
+++ b/src/lib/libcrypto/bn/bn_prime.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_prime.c,v 1.20 2022/07/13 06:36:08 tb Exp $ */ 1/* $OpenBSD: bn_prime.c,v 1.21 2022/07/13 06:38:02 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 *
@@ -255,6 +255,8 @@ BN_is_prime_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed, BN_GENCB *cb)
255 return BN_is_prime_fasttest_ex(a, checks, ctx_passed, 0, cb); 255 return BN_is_prime_fasttest_ex(a, checks, ctx_passed, 0, cb);
256} 256}
257 257
258#define LIBRESSL_HAS_BPSW
259
258int 260int
259BN_is_prime_fasttest_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed, 261BN_is_prime_fasttest_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed,
260 int do_trial_division, BN_GENCB *cb) 262 int do_trial_division, BN_GENCB *cb)