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:
5 files changed
+4
-5
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user