1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-12-04 10:38:19 +01:00

RSA: adjustments for master branch

This commit is contained in:
terrafrost 2016-06-04 23:46:40 -05:00
parent 80e9d663cf
commit fc2a7cef20

View File

@ -1341,11 +1341,11 @@ class RSA
{ {
switch (true) { switch (true) {
case empty($this->primes): case empty($this->primes):
case $this->primes[1]->equals($this->zero): case $this->primes[1]->equals(self::$zero):
case empty($this->coefficients): case empty($this->coefficients):
case $this->coefficients[2]->equals($this->zero): case $this->coefficients[2]->equals(self::$zero):
case empty($this->exponents): case empty($this->exponents):
case $this->exponents[1]->equals($this->zero): case $this->exponents[1]->equals(self::$zero):
return $x->modPow($this->exponent, $this->modulus); return $x->modPow($this->exponent, $this->modulus);
} }