public interface HashFunction extends CloneableSerializable, Evaluator<byte[],byte[]>
Modifier and Type | Method and Description |
---|---|
byte[] |
evaluate(byte[] input,
byte[] seed)
Evaluates the input byte array with the given seed.
|
void |
evaluateInto(byte[] input,
byte[] output)
Evaluates the input into the given output
|
void |
evaluateInto(byte[] input,
byte[] output,
byte[] seed)
Evaluates the input into the given output
|
byte[] |
getDefaultSeed()
Gets the default seed for the hash function
|
int |
length()
Returns the number of bytes in the output hash code.
|
clone
byte[] evaluate(byte[] input, byte[] seed)
input
- Input array to hash into the outputseed
- Seed to offset the inputvoid evaluateInto(byte[] input, byte[] output)
input
- Input to compute the hash-function value ofoutput
- Output to put the hash-function intovoid evaluateInto(byte[] input, byte[] output, byte[] seed)
input
- Input to compute the hash-function value ofoutput
- Output to put the hash-function intoseed
- Seed to offset the hash code.int length()
byte[] getDefaultSeed()