T - the parameters type associated with the final implementation of this calculator.public abstract class FipsOutputDigestCalculator<T> extends java.lang.Object implements OutputDigestCalculator<T>
| Modifier and Type | Method and Description |
|---|---|
abstract FipsOutputDigestCalculator<T> |
clone()
Return a clone of this calculator.
|
byte[] |
getDigest()
Return the digest calculated on what has been written to the calculator's output stream.
|
abstract int |
getDigest(byte[] output,
int offSet)
Output the current digest value for what has been written to the calculator's output stream.
|
abstract int |
getDigestBlockSize()
Return the size, in bytes, of the internal block used by the digest in this calculator.
|
abstract int |
getDigestSize()
Return the size of the digest produced by this calculator in bytes.
|
abstract UpdateOutputStream |
getDigestStream()
Returns a stream that will accept data for the purpose of calculating
a digest.
|
abstract T |
getParameters()
Return the parameters for this digest calculator.
|
abstract void |
reset()
Reset the calculator back to its initial state.
|
public final byte[] getDigest()
OutputDigestCalculatorgetDigest in interface OutputDigestCalculator<T>public abstract T getParameters()
OutputDigestCalculatorgetParameters in interface OutputDigestCalculator<T>public abstract int getDigestSize()
OutputDigestCalculatorgetDigestSize in interface OutputDigestCalculator<T>public abstract int getDigestBlockSize()
OutputDigestCalculatorgetDigestBlockSize in interface OutputDigestCalculator<T>public abstract UpdateOutputStream getDigestStream()
OutputDigestCalculatorgetDigestStream in interface OutputDigestCalculator<T>public abstract int getDigest(byte[] output,
int offSet)
OutputDigestCalculatorgetDigest in interface OutputDigestCalculator<T>output - output array to write the digest to.offSet - offset to start writing the digest at..public abstract void reset()
OutputDigestCalculatorreset in interface OutputDigestCalculator<T>public abstract FipsOutputDigestCalculator<T> clone() throws java.lang.CloneNotSupportedException
OutputDigestCalculatorclone in interface OutputDigestCalculator<T>clone in class java.lang.Objectjava.lang.CloneNotSupportedException - if cloning is not possible.