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

+2 -1
View File
@@ -4,6 +4,7 @@ import (
"crypto/rand"
"io"
"math/big"
"time"
)
// Generates a threshold Paillier key with an algorithm based on [DJN 10],
@@ -58,7 +59,7 @@ func GetThresholdKeyGenerator(nbits, TotalNumberOfDecryptionServers, Threshold i
}
func (tkg *ThresholdKeyGenerator) generateSafePrimes() (*big.Int, *big.Int, error) {
return GenerateSafePrimes(tkg.nbits, tkg.Random)
return GenerateSafePrime(tkg.nbits, 4, 120*time.Second, tkg.Random)
}
func (tkg *ThresholdKeyGenerator) initPandP1() error {