mirror of
https://github.com/danog/phpseclib.git
synced 2024-12-03 10:08:04 +01:00
RSA: reset variables if bad key was loaded
This commit is contained in:
parent
f089aa4eb9
commit
a451dd69f8
@ -1661,6 +1661,15 @@ class Crypt_RSA
|
||||
}
|
||||
|
||||
if ($components === false) {
|
||||
$this->comment = null;
|
||||
$this->modulus = null;
|
||||
$this->k = null;
|
||||
$this->exponent = null;
|
||||
$this->primes = null;
|
||||
$this->exponents = null;
|
||||
$this->coefficients = null;
|
||||
$this->publicExponent = null;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user