|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object part4.DLH
A class that implements the Discrete Log Hash Function.
Constructor Summary | |
DLH(java.math.BigInteger p,
java.math.BigInteger a,
java.math.BigInteger b)
A constructor that instantiates an object with prime p and
generators a & b . |
Method Summary | |
java.math.BigInteger |
h(java.math.BigInteger x1,
java.math.BigInteger x2)
A method that implements the hash function h . |
java.math.BigInteger |
hash(java.lang.String str)
A method that implements the function to hash a string to a big integer value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DLH(java.math.BigInteger p, java.math.BigInteger a, java.math.BigInteger b) throws java.lang.Exception
p
and
generators a
& b
.
java.lang.Exception
Method Detail |
public java.math.BigInteger h(java.math.BigInteger x1, java.math.BigInteger x2) throws java.lang.Exception
h
.
java.lang.Exception
public java.math.BigInteger hash(java.lang.String str) throws java.lang.Exception
hash
in interface HashFunction
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |