]> git.ipfire.org Git - thirdparty/openssl.git/commit
ossl_rsa_sp800_56b_check_public: Be more lenient with small keys
authorTomas Mraz <tomas@openssl.org>
Tue, 2 Mar 2021 10:33:48 +0000 (11:33 +0100)
committerTomas Mraz <tomas@openssl.org>
Wed, 3 Mar 2021 11:53:19 +0000 (12:53 +0100)
commitf21afe636067f9aa27cef94c31d8e32128da0ecb
tree45ff78d0e07d2b7dc8197fa16e5d6e34e4bc3c13
parent87994aa847f7c650cd3c06a2a4abdeee2ef71574
ossl_rsa_sp800_56b_check_public: Be more lenient with small keys

Fixes #13995

For small keys the MR test on the modulus can return
BN_PRIMETEST_COMPOSITE_WITH_FACTOR status although the modulus
is correct.

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14389)
crypto/rsa/rsa_sp800_56b_check.c