diff --git a/thresholdkey_generator.go b/thresholdkey_generator.go index 755745d..96948a0 100644 --- a/thresholdkey_generator.go +++ b/thresholdkey_generator.go @@ -59,7 +59,9 @@ func GetThresholdKeyGenerator(nbits, TotalNumberOfDecryptionServers, Threshold i } func (tkg *ThresholdKeyGenerator) generateSafePrimes() (*big.Int, *big.Int, error) { - return GenerateSafePrime(tkg.nbits, 4, 120*time.Second, tkg.Random) + concurrencyLevel := 4 + timeout := 120 * time.Second + return GenerateSafePrime(tkg.nbits, concurrencyLevel, timeout, tkg.Random) } func (tkg *ThresholdKeyGenerator) initPandP1() error {