1 package org.bouncycastle.crypto.digests; 2 3 /** 4 * Encodable digests allow you to download an encoded copy of their internal state. This is useful for the situation where 5 * you need to generate a signature on an external device and it allows for "sign with last round", so a copy of the 6 * internal state of the digest, plus the last few blocks of the message are all that needs to be sent, rather than the 7 * entire message. 8 */ 9 public interface EncodableDigest 10 { 11 /** 12 * Return an encoded byte array for the digest's internal state 13 * 14 * @return an encoding of the digests internal state. 15 */ getEncodedState()16 byte[] getEncodedState(); 17 } 18