add test for prime field with prime numbers

This commit is contained in:
terrafrost 2023-11-01 19:27:15 -05:00
parent ce753669bc
commit cd4c30e6d0
1 changed files with 11 additions and 0 deletions

View File

@ -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
*/