Improve FIPS RSA keygen performance.
authorslontis <shane.lontis@oracle.com>
Wed, 2 Nov 2022 03:20:55 +0000 (13:20 +1000)
committerTomas Mraz <tomas@openssl.org>
Wed, 23 Nov 2022 07:27:08 +0000 (08:27 +0100)
commitd2f6e66d2837bff1f5f7636bb2118e3a45c9df61
treeca662a6ab4bcd034f9b81f811b2f237bee7ccfa1
parentf5e602b5500cc736fe774b114dc66180341a5ce7
Improve FIPS RSA keygen performance.

Reduce the Miller Rabin counts to the values specified by FIPS 186-5.
The old code was using a fixed value of 64.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19579)
crypto/bn/bn_prime.c
crypto/bn/bn_rsa_fips186_4.c
include/crypto/bn.h