Skip to content

Commit e29f5c6

Browse files
committed
added some short hand constants.
1 parent 2115e40 commit e29f5c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkix/src/main/java/org/bouncycastle/operator/DigestCalculator.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import java.io.OutputStream;
44

5+
import org.bouncycastle.asn1.nist.NISTObjectIdentifiers;
56
import org.bouncycastle.asn1.x509.AlgorithmIdentifier;
67

78
/**
@@ -10,6 +11,9 @@
1011
*/
1112
public interface DigestCalculator
1213
{
14+
static final AlgorithmIdentifier SHA_256 = new AlgorithmIdentifier(NISTObjectIdentifiers.id_sha256);
15+
static final AlgorithmIdentifier SHA_512 = new AlgorithmIdentifier(NISTObjectIdentifiers.id_sha512);
16+
1317
/**
1418
* Return the algorithm identifier representing the digest implemented by
1519
* this calculator.

0 commit comments

Comments
 (0)