- All Superinterfaces:
Digest
- All Known Subinterfaces:
Xof
- All Known Implementing Classes:
KeccakDigest, LongDigest, SHA3Digest, SHA512Digest, SHAKEDigest
Extended interface for message digests with additional functionality. Extends the basic Digest interface with byte length information.
Method Summary
All MethodsModifier and TypeMethodDescriptionintReturn the size in bytes of the internal buffer the digest applies it's compression function to.Methods inherited from interface Digest
doFinal, getAlgorithmName, getDigestSize, reset, update, updateModifier and TypeMethodDescriptionintdoFinal(byte[] out, int outOff) close the digest, producing the final digest value.return the algorithm nameintreturn the size, in bytes, of the digest produced by this message digest.voidreset()reset the digest back to it's initial state.voidupdate(byte in) update the message digest with a single byte.voidupdate(byte[] in, int inOff, int len) update the message digest with a block of bytes.
Method Details
getByteLength
int getByteLength()Return the size in bytes of the internal buffer the digest applies it's compression function to.- Returns:
- byte length of the digests internal buffer.