diff --git a/tests/Unit/Math/BigInteger/TestCase.php b/tests/Unit/Math/BigInteger/TestCase.php index b42c0ca6..d5a6b75b 100644 --- a/tests/Unit/Math/BigInteger/TestCase.php +++ b/tests/Unit/Math/BigInteger/TestCase.php @@ -374,4 +374,15 @@ abstract class Unit_Math_BigInteger_TestCase extends PhpseclibTestCase $this->assertContains('[value] => 0x32', $str); return $str; } + + /** + * @group github954 + */ + public function testSlidingWindow() + { + $e = $this->getInstance(str_repeat('1', 1794), 2); + $x = $this->getInstance(1); + $n = $this->getInstance(2); + $x->powMod($e, $n); + } }