T
- the parameters type for the digest calculator.public interface OutputDigestCalculator<T>
extends java.lang.Cloneable
Modifier and Type | Method and Description |
---|---|
OutputDigestCalculator<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.
|
int |
getDigest(byte[] output,
int off)
Output the current digest value for what has been written to the calculator's output stream.
|
int |
getDigestBlockSize()
Return the size, in bytes, of the internal block used by the digest in this calculator.
|
int |
getDigestSize()
Return the size of the digest produced by this calculator in bytes.
|
UpdateOutputStream |
getDigestStream()
Returns a stream that will accept data for the purpose of calculating
a digest.
|
T |
getParameters()
Return the parameters for this digest calculator.
|
void |
reset()
Reset the calculator back to its initial state.
|
T getParameters()
int getDigestSize()
int getDigestBlockSize()
UpdateOutputStream getDigestStream()
byte[] getDigest()
int getDigest(byte[] output, int off)
output
- output array to write the digest to.off
- offset to start writing the digest at..void reset()
OutputDigestCalculator<T> clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
- if cloning is not possible.