mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-01-26 00:28:27 +00:00
Tests/BigInteger: add unit test for abhishektaneja's sliding window fix
This commit is contained in:
parent
d74bfb73e4
commit
56acb6723c
@ -374,4 +374,15 @@ abstract class Unit_Math_BigInteger_TestCase extends PhpseclibTestCase
|
|||||||
$this->assertContains('[value] => 0x32', $str);
|
$this->assertContains('[value] => 0x32', $str);
|
||||||
return $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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user