votingSystem
Class KeyShare
java.lang.Object
votingSystem.KeyShare
- All Implemented Interfaces:
- java.io.Serializable
- public class KeyShare
- extends java.lang.Object
- implements java.io.Serializable
The class specifies the Data Structure for holding the KeyShares for the decryption Servers
- Author:
- Bent K. Onshus
- See Also:
- Serialized Form
Constructor Summary |
KeyShare(int id,
java.math.BigInteger v,
java.math.BigInteger vi,
java.math.BigInteger si,
java.math.BigInteger n,
int s)
Creates a new KeyShare |
Method Summary |
int |
getId()
|
java.math.BigInteger |
getN()
|
int |
getS()
|
java.math.BigInteger |
getSi()
|
java.math.BigInteger |
getV()
|
java.math.BigInteger |
getVi()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KeyShare
public KeyShare(int id,
java.math.BigInteger v,
java.math.BigInteger vi,
java.math.BigInteger si,
java.math.BigInteger n,
int s)
- Creates a new KeyShare
- Parameters:
v
- The public base for the verification keysvi
- The verification key for this Serversi
- The secret keyshare for this Servern
- The public value n = p*qs
- The public cryptosystem exponent s (n^s)
getN
public java.math.BigInteger getN()
getS
public int getS()
getSi
public java.math.BigInteger getSi()
getV
public java.math.BigInteger getV()
getVi
public java.math.BigInteger getVi()
getId
public int getId()