Welcome to mirror list, hosted at ThFree Co, Russian Federation.

EncodableDigest.java « digests « crypto « bouncycastle « org « java « main « src « core - gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d79fece88a237b1f770d001fee8f2939e200c678 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package org.bouncycastle.crypto.digests;

/**
 *  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.
 */
public interface EncodableDigest
{
    /**
     * Return an encoded byte array for the digest's internal state
     *
     * @return an encoding of the digests internal state.
     */
    byte[] getEncodedState();
}