mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-02-04 12:58:28 +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);
|
$em2 = $this->_emsa_pkcs1_v1_5_encode($m, $this->k);
|
||||||
$em3 = $this->_emsa_pkcs1_v1_5_encode_without_null($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');
|
user_error('RSA modulus too short');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user