From 964c4fc58537632b10ec8c435c3b851ef63746b9 Mon Sep 17 00:00:00 2001 From: tb Date: Wed, 13 Jul 2022 06:38:02 +0000 Subject: [PATCH] Enable BPSW primality test. ok jsing --- lib/libcrypto/bn/bn_prime.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.20.1