Inline use of bn_is_prime_bpsw()
authortb <tb@openbsd.org>
Wed, 9 Nov 2022 15:33:13 +0000 (15:33 +0000)
committertb <tb@openbsd.org>
Wed, 9 Nov 2022 15:33:13 +0000 (15:33 +0000)
commit9d12f35a9cad122e1ee7c99d39fa7ae994fa6808
tree9bf01d6a4ff57aa3a017f33c8b095ecb0b78b523
parent6a3bf7043f0edbf6d44c7fde8734daf51b969401
Inline use of bn_is_prime_bpsw()

Instead of using the BN_is_prime_fasttime_ex() API, use a direct call to
bn_is_prime_bpsw(). This increases readability and simplifies error
handling. Also put a division by two to the natural place now that we no
longer need to do Miller-Rabin rounds.

ok beck jsing
lib/libcrypto/bn/bn_prime.c