public class HashIntoZnAdditiveGroup extends java.lang.Object implements HashIntoGroup
Zn.HashIntoZn| Modifier and Type | Field and Description |
|---|---|
protected RingGroup |
structure
The target additive group.
|
protected HashIntoZn |
znHash
The
HashIntoZn underlying this hash. |
| Constructor and Description |
|---|
HashIntoZnAdditiveGroup(java.math.BigInteger n)
Initializes this hash to the
Zn based on the given n. |
HashIntoZnAdditiveGroup(HashIntoZn hashIntoZn)
Initializes this hash based on an existing
HashIntoZn. |
HashIntoZnAdditiveGroup(Representation repr)
Recreates hash function from representation.
|
HashIntoZnAdditiveGroup(Zn ring)
Initializes this hash to the additive subgroup of the given
Zn. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Representation |
getRepresentation()
The representation of this object.
|
RingGroup.RingGroupElement |
hash(byte[] x)
Hashes a byte array into the structure.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waithash, hashprotected HashIntoZn znHash
HashIntoZn underlying this hash.protected RingGroup structure
public HashIntoZnAdditiveGroup(java.math.BigInteger n)
Zn based on the given n.public HashIntoZnAdditiveGroup(Zn ring)
Zn.public HashIntoZnAdditiveGroup(Representation repr)
public HashIntoZnAdditiveGroup(HashIntoZn hashIntoZn)
HashIntoZn.public RingGroup.RingGroupElement hash(byte[] x)
HashIntoStructurehash in interface HashIntoGrouphash in interface HashIntoStructurex - a sequence of bytes to hashpublic Representation getRepresentation()
RepresentableReprUtilgetRepresentation in interface RepresentableRepresentationpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object