|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsoftware.auditor.CheckBallotDecryption
public class CheckBallotDecryption
checks: - all the voted balots have been transformed - all the challenges have been opened on the correct side - ballots were properly printed (commitments for the revealed page) - ballots were properly transformed (from P3 to D3 or from D3 to R) - commitments to D2 or D4 is valid algorithm: - read in memory MeetingOneIn.xml (constant and ElectionSpecification) - read in memory MeetingThreeIn.xml - optional [check that the ballots that use for voting are not in MeetingTwoOut.xml] - read in memory MeetingThreeOut.xml - read in memory MeetingFourIn.xml - optional [check that each challenge is for a valid did (is also in MeetingThreeOut.xml)] - read in memory MeetingFourOut.xml - check that all the requests have been opened on the correct side - check that all the transformation have been made corectly - go through each line of MeetingOneOut.xml (use sax) - if a row in P is found, check if it is MeetingThreeOut - check the commitment for p1 or p2 - if a row in D in found - check the commeiment for d2 or d4
| Constructor Summary | |
|---|---|
CheckBallotDecryption(java.lang.String meetingOneIn,
java.lang.String meetingThreeIn,
java.lang.String meetingThreeOut,
java.lang.String meetingFourIn,
java.lang.String meetingFourOut)
parses the five parameters and puts them into memory. |
|
| Method Summary | |
|---|---|
void |
check(java.lang.String meetingOneout)
First checks the transformations (d3=p3+d2 or r=d3+d4). |
static void |
main(java.lang.String[] args)
Debug method |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CheckBallotDecryption(java.lang.String meetingOneIn,
java.lang.String meetingThreeIn,
java.lang.String meetingThreeOut,
java.lang.String meetingFourIn,
java.lang.String meetingFourOut)
throws java.lang.Exception
meetingOneIn - meetingThreeIn - meetingThreeOut - meetingFourIn - meetingFourOut -
java.lang.Exception| Method Detail |
|---|
public void check(java.lang.String meetingOneout)
throws java.lang.Exception
meetingOneout -
java.lang.Exception - - if the auditor find an iregularity, or (null)
if one of the challenges is not opened
public static void main(java.lang.String[] args)
throws java.lang.Exception
args -
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||