All Superinterfaces:
Digest
All Known Subinterfaces:
Xof
All Known Implementing Classes:
KeccakDigest, LongDigest, SHA3Digest, SHA512Digest, SHAKEDigest

public interface ExtendedDigest extends Digest
Extended interface for message digests with additional functionality. Extends the basic Digest interface with byte length information.
  • Method Summary

    All Methods
    Modifier and Type
    Method
    Description
    int
    Return 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, update
    Modifier and Type
    Method
    Description
    int
    doFinal(byte[] out, int outOff)
    close the digest, producing the final digest value.
    return the algorithm name
    int
    return the size, in bytes, of the digest produced by this message digest.
    void
    reset the digest back to it's initial state.
    void
    update(byte in)
    update the message digest with a single byte.
    void
    update(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.