1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-11-30 04:39:02 +01:00

RSA: reset variables if bad key was loaded

This commit is contained in:
terrafrost 2017-05-29 06:31:54 -05:00
parent f089aa4eb9
commit a451dd69f8

View File

@ -1661,6 +1661,15 @@ class Crypt_RSA
} }
if ($components === false) { 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; return false;
} }