mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-27 03:42:40 +00:00
add test for prime field with prime numbers
This commit is contained in:
parent
ce753669bc
commit
cd4c30e6d0
@ -21,6 +21,17 @@ class PrimeFieldTest extends PhpseclibTestCase
|
||||
echo $num2->squareRoot();
|
||||
}
|
||||
|
||||
public function testPrimeFieldWithPrimeNumbers()
|
||||
{
|
||||
$a = new BigInteger('65', 10);
|
||||
$p = new BigInteger('127', 10);
|
||||
|
||||
$num = new PrimeField($p);
|
||||
$num2 = $num->newInteger($a);
|
||||
|
||||
echo $num2->squareRoot();
|
||||
}
|
||||
|
||||
/**
|
||||
* @group github1929
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user