mirror of
https://github.com/danog/tgseclib.git
synced 2024-12-04 02:27:52 +01:00
RSA: adjustments for master branch
This commit is contained in:
parent
80e9d663cf
commit
fc2a7cef20
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user