votingSystem
Class KeyShare

java.lang.Object
  extended byvotingSystem.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
 

Constructor Detail

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 keys
vi - The verification key for this Server
si - The secret keyshare for this Server
n - The public value n = p*q
s - The public cryptosystem exponent s (n^s)
Method Detail

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()