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()
OutputDigestCalculator
getDigest
in interface OutputDigestCalculator<T>
public abstract T getParameters()
OutputDigestCalculator
getParameters
in interface OutputDigestCalculator<T>
public abstract int getDigestSize()
OutputDigestCalculator
getDigestSize
in interface OutputDigestCalculator<T>
public abstract int getDigestBlockSize()
OutputDigestCalculator
getDigestBlockSize
in interface OutputDigestCalculator<T>
public abstract UpdateOutputStream getDigestStream()
OutputDigestCalculator
getDigestStream
in interface OutputDigestCalculator<T>
public abstract int getDigest(byte[] output, int offSet)
OutputDigestCalculator
getDigest
in interface OutputDigestCalculator<T>
output
- output array to write the digest to.offSet
- offset to start writing the digest at..public abstract void reset()
OutputDigestCalculator
reset
in interface OutputDigestCalculator<T>
public abstract FipsOutputDigestCalculator<T> clone() throws java.lang.CloneNotSupportedException
OutputDigestCalculator
clone
in interface OutputDigestCalculator<T>
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- if cloning is not possible.