G parameter removed from ThresholdKey

G _MUST_ be always n+1 to make the threshold encryption algorithm safe. We assume G=n+1 both for standard and threshold version.
This commit is contained in:
Piotr Dyraga committed 2018-05-30 14:48:15 +02:00
1 parent e10b02e420
commit e25bc358e8
5 files changed
+4 -5

No files matched your search

-2
View File
@@ -14,7 +14,6 @@ type ThresholdKey struct {
Threshold int
V *big.Int
Vi []*big.Int
G *big.Int // usually G is set to N+1
}
// returns the value of (4*delta**2)** -1 mod n
@@ -165,7 +164,6 @@ func (this *ThresholdPrivateKey) GetThresholdKey() *ThresholdKey {
ret.V = new(big.Int).Add(this.V, big.NewInt(0))
ret.Vi = this.copyVi()
ret.N = new(big.Int).Add(this.N, big.NewInt(0))
ret.G = new(big.Int).Add(this.N, big.NewInt(1))
return ret
}