From e726ad489b924977a0592336cb4592fe87ff92be Mon Sep 17 00:00:00 2001 From: Piotr Dyraga Date: Wed, 8 Aug 2018 13:19:20 +0200 Subject: [PATCH] PublicKeyBitLength made an exported value just like all the others --- thresholdkey_generator.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/thresholdkey_generator.go b/thresholdkey_generator.go index 5c98755..1b095e7 100644 --- a/thresholdkey_generator.go +++ b/thresholdkey_generator.go @@ -20,7 +20,7 @@ import ( // with Applications to Electronic Voting // Aarhus University, Dept. of Computer Science, BRICS type ThresholdKeyGenerator struct { - publicKeyBitLength int + PublicKeyBitLength int TotalNumberOfDecryptionServers int Threshold int Random io.Reader @@ -70,7 +70,7 @@ func GetThresholdKeyGenerator( } return &ThresholdKeyGenerator{ - publicKeyBitLength: publicKeyBitLength, + PublicKeyBitLength: publicKeyBitLength, TotalNumberOfDecryptionServers: totalNumberOfDecryptionServers, Threshold: threshold, Random: random, @@ -80,7 +80,7 @@ func GetThresholdKeyGenerator( func (tkg *ThresholdKeyGenerator) generateSafePrimes() (*big.Int, *big.Int, error) { concurrencyLevel := 4 timeout := 120 * time.Second - safePrimeBitLength := tkg.publicKeyBitLength / 2 + safePrimeBitLength := tkg.PublicKeyBitLength / 2 return GenerateSafePrime(safePrimeBitLength, concurrencyLevel, timeout, tkg.Random) }