RSA: tweak to new validation method

This commit is contained in:
terrafrost 2021-04-03 16:33:23 -05:00
parent 7a5846ccee
commit 4a3e08c273

View File

@ -3119,7 +3119,7 @@ class Crypt_RSA
$em2 = $this->_emsa_pkcs1_v1_5_encode($m, $this->k);
$em3 = $this->_emsa_pkcs1_v1_5_encode_without_null($m, $this->k);
if ($em2 === false || $em3 === false) {
if ($em2 === false && $em3 === false) {
user_error('RSA modulus too short');
return false;
}