mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-06-03 09:00:52 +00:00
RSA: tweak to new validation method
This commit is contained in:
parent
7a5846ccee
commit
4a3e08c273
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user