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

Tests/BigInteger: add unit test for abhishektaneja's sliding window fix

This commit is contained in:
terrafrost 2016-03-19 12:06:12 -05:00
parent d74bfb73e4
commit 56acb6723c

View File

@ -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);
}
}