T
- the parameters type for the XOF calculator.public interface OutputXOFCalculator<T>
Modifier and Type | Method and Description |
---|---|
int |
getFunctionOutput(byte[] output,
int off,
int outLen)
Output the function output for what has been written to the calculator's output stream.
|
byte[] |
getFunctionOutput(int outLen)
Return the outLen bytes of function output for what has been written to the calculator's output stream.
|
UpdateOutputStream |
getFunctionStream()
Returns a stream that will accept data for the purpose of calculating
a MAC.
|
T |
getParameters()
Return the parameters for this MAC calculator.
|
void |
reset()
Reset the calculator back to its initial state.
|
T getParameters()
UpdateOutputStream getFunctionStream()
byte[] getFunctionOutput(int outLen)
outLen
- the number of output bytes requested.int getFunctionOutput(byte[] output, int off, int outLen)
output
- output array to write the output bytes to.off
- offset to start writing the bytes at.outLen
- the number of output bytes requested.void reset()