Fixed comment for safe primes required bit length

Safe primes bit length is n-1 for n-bit public key
This commit is contained in:
Piotr Dyraga committed 2018-08-08 11:28:25 +02:00
1 parent 12b3dadef7
commit 0d2a123af7
1 file changed
+1 -1
+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")
} }