T
- the parameters type for the MAC calculator.public interface OutputMACCalculator<T>
Modifier and Type | Method and Description |
---|---|
byte[] |
getMAC()
Return the MAC calculated on what has been written to the calculator's output stream.
|
int |
getMAC(byte[] output,
int off)
Output the current MAC value for what has been written to the calculator's output stream.
|
int |
getMACSize()
Return the size of the MAC produced by this calculator in bytes.
|
UpdateOutputStream |
getMACStream()
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()
int getMACSize()
UpdateOutputStream getMACStream()
byte[] getMAC()
int getMAC(byte[] output, int off)
output
- output array to write the MAC to.off
- offset to start writing the MAC at.void reset()