Skip to content

Commit 8d2c9cd

Browse files
committed
Added SavableDigest
1 parent afbb78a commit 8d2c9cd

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package org.bouncycastle.crypto;
2+
3+
import org.bouncycastle.crypto.digests.EncodableDigest;
4+
import org.bouncycastle.util.Memoable;
5+
6+
/**
7+
* Extended digest which provides the ability to store state and
8+
* provide an encoding.
9+
*/
10+
public interface SavableDigest
11+
extends ExtendedDigest, EncodableDigest, Memoable
12+
{
13+
}

core/src/main/java/org/bouncycastle/crypto/digests/SHA256Digest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import org.bouncycastle.crypto.CryptoServiceProperties;
55
import org.bouncycastle.crypto.CryptoServicePurpose;
66
import org.bouncycastle.crypto.CryptoServicesRegistrar;
7+
import org.bouncycastle.crypto.SavableDigest;
78
import org.bouncycastle.util.Memoable;
89
import org.bouncycastle.util.Pack;
910

@@ -21,7 +22,7 @@
2122
*/
2223
public class SHA256Digest
2324
extends GeneralDigest
24-
implements EncodableDigest
25+
implements SavableDigest
2526
{
2627
private static final int DIGEST_LENGTH = 32;
2728

0 commit comments

Comments
 (0)