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()
OutputMACCalculator
getMAC
in interface OutputMACCalculator<T>
public abstract T getParameters()
OutputMACCalculator
getParameters
in interface OutputMACCalculator<T>
public abstract int getMACSize()
OutputMACCalculator
getMACSize
in interface OutputMACCalculator<T>
public abstract UpdateOutputStream getMACStream()
OutputMACCalculator
getMACStream
in interface OutputMACCalculator<T>
public abstract int getMAC(byte[] output, int off)
OutputMACCalculator
getMAC
in interface OutputMACCalculator<T>
output
- output array to write the MAC to.off
- offset to start writing the MAC at.public abstract void reset()
OutputMACCalculator
reset
in interface OutputMACCalculator<T>