|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectvotingSystem.HashFunction
This class implements the HashFunction used in the voting system. The standard choice of hash function in this system is the SHA-256 implementation available in the standard Java RE.
Constructor Summary | |
HashFunction(java.lang.String instance)
Constructs the hash function |
Method Summary | |
java.math.BigInteger |
generateHash(java.math.BigInteger[] values,
int t)
Generates a hash from the BigIntegers |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HashFunction(java.lang.String instance)
instance
- The type of hash function (i.e. SHA-1, SHA256, SHA512 etc..)Method Detail |
public java.math.BigInteger generateHash(java.math.BigInteger[] values, int t)
values
- An array containing the BigIntegers to be hashed
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |