Removed deprecated GenerateSafePrimes function

The new function should be now called directly.
This commit is contained in:
Piotr Dyraga committed 2018-07-27 17:42:05 +02:00
1 parent 78ea6668f8
commit ca756b481b
5 files changed
+7 -56

No files matched your search

-10
View File
@@ -87,16 +87,6 @@ func GetEntireRQn(n int) map[int]bool {
return ret
}
func TestGenerateSafePrimes(t *testing.T) {
for i := 0; i < 10; i++ {
p, q, err := GenerateSafePrimes(20, rand.Reader)
if err != nil {
t.Error(err)
}
AreSafePrimes(p, q, 20, t)
}
}
func TestGetRandomGeneratorOfTheQuadraticResidue(t *testing.T) {
tooSmallPrime1, tooSmallPrime2 := b(347), b(359)
m := new(big.Int).Mul(tooSmallPrime1, tooSmallPrime2)