public class SHA512HashFunction
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
algorithm
The hash algorithms used by this hash function.
|
| Constructor and Description |
|---|
SHA512HashFunction() |
SHA512HashFunction(Representation repr) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getOutputLength()
Returns the output-length of the
HashFunction in bytes. |
Representation |
getRepresentation()
The representation of this object.
|
byte[] |
hash(byte[] bytes)
Applies this hash function to the given
byte[]. |
byte[] |
hash(UniqueByteRepresentable ubr)
Applies this hash function to the given
UniqueByteRepresentable. |
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waithashprotected final java.lang.String algorithm
public SHA512HashFunction(Representation repr)
public SHA512HashFunction()
public int getOutputLength()
HashFunctionHashFunction in bytes.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic byte[] hash(UniqueByteRepresentable ubr)
UniqueByteRepresentable.hash in interface HashFunctionubr - the UniqueByteRepresentable to hash.byte[]public Representation getRepresentation()
RepresentableReprUtilgetRepresentation in interface RepresentableRepresentationpublic byte[] hash(byte[] bytes)
byte[].hash in interface HashFunctionbytes - the byte[] to hash.byte[]