mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-11 17:38:53 +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