|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectds.Server
This is the class for decryption servers with the main functions for checking proofs on votes as well as share-decrypting votes.
Constructor Summary | |
Server(int id,
KeyShare ks,
ElectionProperties ep,
java.util.Random r,
PublicKey pk)
Constructs a DecryptionServer to decrypt the results using the servers secret KeyShare |
|
Server(int id,
KeyShare ks,
ElectionProperties ep,
java.util.Random r,
PublicKey pk,
BulletinBoard bb)
Constructs a DecryptionServer to decrypt the results using the servers secret KeyShare |
Method Summary | |
void |
postShare()
Initiates the process of share decrypting the results of the election. |
DecryptedShare |
shareDecrypt(BinaryVote[] votes)
The method for decrypting the results of the election with the secret KeyShare |
DecryptedShare[] |
shareDecrypt(MultipleBinaryVotes[] votes)
The method for decrypting the results of the election with the secret KeyShare |
DecryptedShare[] |
shareDecrypt(MultipleVotes[] votes)
The method for decrypting the results of the election with the secret KeyShare |
DecryptedShare |
shareDecrypt(Vote[] votes)
The method for decrypting the results of the election with the secret KeyShare |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Server(int id, KeyShare ks, ElectionProperties ep, java.util.Random r, PublicKey pk, BulletinBoard bb)
id
- The DecryptionServer idks
- The secret KeyShareep
- The ElectionProperties for this electionr
- The random-number generatorpk
- The PublicKey for the electionpublic Server(int id, KeyShare ks, ElectionProperties ep, java.util.Random r, PublicKey pk)
id
- The DecryptionServer idks
- The secret KeyShareep
- The ElectionProperties for this electionr
- The random-number generatorpk
- The PublicKey for the electionMethod Detail |
public void postShare() throws java.rmi.RemoteException, NoValidVotesException
java.rmi.RemoteException
NoValidVotesException
public DecryptedShare[] shareDecrypt(MultipleVotes[] votes) throws NoValidVotesException
votes
- The votes from the election
NoValidVotesException
public DecryptedShare shareDecrypt(Vote[] votes) throws NoValidVotesException
votes
- The votes from the election
NoValidVotesException
public DecryptedShare[] shareDecrypt(MultipleBinaryVotes[] votes) throws NoValidVotesException
votes
- The votes from the election
NoValidVotesException
public DecryptedShare shareDecrypt(BinaryVote[] votes) throws NoValidVotesException
votes
- The votes from the election
NoValidVotesException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |