org.bouncycastle.crypto.digests

## Interface EncodableDigest

- All Superinterfaces:
    EncodableService
  All Known Subinterfaces:
    SavableDigest
  All Known Implementing Classes:
    CSHAKEDigest, KMAC, LongDigest, MD5Digest, SHA1Digest, SHA224Digest, SHA256Digest, SHA384Digest, SHA3Digest, SHA512Digest, SHA512tDigest, SHAKEDigest, TupleHash

      public interface EncodableDigest
      extends EncodableService

  Encodable digests allow you to download an encoded copy of their internal state. This is useful for the situation where you need to generate a signature on an external device and it allows for "sign with last round", so a copy of the internal state of the digest, plus the last few blocks of the message are all that needs to be sent, rather than the entire message.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `getEncodedState()` Return an encoded byte array for the digest's internal state

- - ### Method Detail

    - #### getEncodedState

          byte[] getEncodedState()

      Return an encoded byte array for the digest's internal state
      Specified by:
        `getEncodedState` in interface `EncodableService`
      Returns:
        an encoding of the digests internal state.