|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectvotingSystem.Validator
This class provides the methods used for validation of Votes
Constructor Summary | |
Validator(ElectionProperties ep,
PublicKey pk)
Creates a Validator for the given ElectionProperties and PublicKey |
Method Summary | |
boolean |
checkBinaryVote(BinaryVote vote)
The code for checking if a BinaryVote is of the correct form. |
boolean |
checkMultipleBinaryVote(MultipleBinaryVotes mVotes)
The code for checking if the MultipleBinaryVotes are of the correct form. |
boolean |
checkMultipleVote(MultipleVotes mVotes)
The code for checking if MultipleVotes is of the correct form. |
boolean |
checkProof(Vote v)
The code for checking if a Vote is of the correct form. |
boolean |
checkShareDecryption(DecryptedShare ds)
This method verifies the zero-knowledge proof for the decrypted shares acquired from the decryption Servers |
java.math.BigInteger |
encryptCheck(java.math.BigInteger value,
java.math.BigInteger random)
Optimized encryption algorithm for encrypting a BigInteger with the given random value Mainly used when checking the zero-knowledge proofs. |
java.math.BigInteger |
encryptCheckUnOptimized(java.math.BigInteger value,
java.math.BigInteger random)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Validator(ElectionProperties ep, PublicKey pk)
ep
- The ElectionProperties used in the electionpk
- The PublicKey for the electionMethod Detail |
public boolean checkBinaryVote(BinaryVote vote)
vote
- The BinaryVote to be checked for correctness
public boolean checkMultipleBinaryVote(MultipleBinaryVotes mVotes)
mVotes
- The MultipleBinaryVotes-object to be checked for correctness
public boolean checkMultipleVote(MultipleVotes mVotes)
mVotes
- The MultipleVotes to be checked for correctness
public boolean checkProof(Vote v)
v
- The Vote to be checked for correctness
public java.math.BigInteger encryptCheckUnOptimized(java.math.BigInteger value, java.math.BigInteger random)
public java.math.BigInteger encryptCheck(java.math.BigInteger value, java.math.BigInteger random)
value
-
public boolean checkShareDecryption(DecryptedShare ds)
ds
- The DecryptedShare to be verified
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |