public interface HashFunction extends StandaloneRepresentable
| Modifier and Type | Method and Description |
|---|---|
int |
getOutputLength()
Returns the output-length of the
HashFunction in bytes. |
byte[] |
hash(byte[] bytes)
Hashes a byte array using the hash function.
|
default byte[] |
hash(java.lang.String string)
Hashes a
String using the hash function. |
default byte[] |
hash(UniqueByteRepresentable ubr)
Hashes a
UniqueByteRepresentable using the hash function. |
getRepresentationint getOutputLength()
HashFunction in bytes.default byte[] hash(UniqueByteRepresentable ubr)
UniqueByteRepresentable using the hash function.ubr - the UBR to hashbyte[] hash(byte[] bytes)
bytes - the bytes to hashdefault byte[] hash(java.lang.String string)
String using the hash function.string - the string to hash