T - the parameters type associated with the final implementation of this calculator.public abstract class FipsOutputMACCalculator<T> extends java.lang.Object implements 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.
|
abstract int |
getMAC(byte[] output,
int off)
Output the current MAC value for what has been written to the calculator's output stream.
|
abstract int |
getMACSize()
Return the size of the MAC produced by this calculator in bytes.
|
abstract UpdateOutputStream |
getMACStream()
Returns a stream that will accept data for the purpose of calculating
a MAC.
|
abstract T |
getParameters()
Return the parameters for this MAC calculator.
|
abstract void |
reset()
Reset the calculator back to its initial state.
|
public byte[] getMAC()
OutputMACCalculatorgetMAC in interface OutputMACCalculator<T>public abstract T getParameters()
OutputMACCalculatorgetParameters in interface OutputMACCalculator<T>public abstract int getMACSize()
OutputMACCalculatorgetMACSize in interface OutputMACCalculator<T>public abstract UpdateOutputStream getMACStream()
OutputMACCalculatorgetMACStream in interface OutputMACCalculator<T>public abstract int getMAC(byte[] output,
int off)
OutputMACCalculatorgetMAC in interface OutputMACCalculator<T>output - output array to write the MAC to.off - offset to start writing the MAC at.public abstract void reset()
OutputMACCalculatorreset in interface OutputMACCalculator<T>