Pass a public key bit length when creating a threshold key generator #11

Merged
pdyraga merged 16 commits from master into master 2018-08-10 06:50:47 -04:00
Showing only changes of commit 0d2a123af7 - Show all commits
+1 -1
View File
@@ -64,7 +64,7 @@ func GetThresholdKeyGenerator(
return nil, errors.New("Public key bit length must be an even number") return nil, errors.New("Public key bit length must be an even number")
} }
if publicKeyBitLength < 18 { if publicKeyBitLength < 18 {
// We need to find two n-bit safe primes, P and Q which are not equal. // We need to find two n-1-bit safe primes, P and Q which are not equal.
// This is not possible for n<18. // This is not possible for n<18.
return nil, errors.New("Public key bit length must be at least 18 bits") return nil, errors.New("Public key bit length must be at least 18 bits")
} }