Merge branch '3.0'

This commit is contained in:
terrafrost 2023-06-25 10:03:23 -05:00
commit 656a46ae12

View File

@ -616,6 +616,11 @@ abstract class Engine implements \JsonSerializable
return $this->normalize($temp->powModInner($e, $n));
}
if ($this->compare($n) > 0) {
list(, $temp) = $this->divide($n);
return $temp->powModInner($e, $n);
}
return $this->powModInner($e, $n);
}