votingSystem
Class Decryption
java.lang.Object
votingSystem.Decryption
- public class Decryption
- extends java.lang.Object
Handles the decryption of ciphertexts in the Paillier cryptosystem. It is not used in the voting system,
as the voting system uses Threshold decryption with multicomputations done by the decryption servers.
- Author:
- Bent K. Onshus
Constructor Summary |
Decryption(int k,
int noOfVoters,
int s,
java.math.BigInteger g,
java.math.BigInteger p,
java.math.BigInteger q)
Constructs a decryptor with the given properties |
Method Summary |
java.math.BigInteger |
calculateL(java.math.BigInteger b)
|
java.math.BigInteger |
decryption(java.math.BigInteger c,
int s)
Decrypts the ciphertext c |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Decryption
public Decryption(int k,
int noOfVoters,
int s,
java.math.BigInteger g,
java.math.BigInteger p,
java.math.BigInteger q)
- Constructs a decryptor with the given properties
- Parameters:
k
- Security parameter (bitlength)noOfVoters
- ...s
- ...g
- A generatorp
- ...q
- ...
calculateL
public java.math.BigInteger calculateL(java.math.BigInteger b)
decryption
public java.math.BigInteger decryption(java.math.BigInteger c,
int s)
- Decrypts the ciphertext c
- Parameters:
c
- The ciphertexts
- ...
- Returns:
- The plaintext