We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2115e40 commit e29f5c6Copy full SHA for e29f5c6
pkix/src/main/java/org/bouncycastle/operator/DigestCalculator.java
@@ -2,6 +2,7 @@
2
3
import java.io.OutputStream;
4
5
+import org.bouncycastle.asn1.nist.NISTObjectIdentifiers;
6
import org.bouncycastle.asn1.x509.AlgorithmIdentifier;
7
8
/**
@@ -10,6 +11,9 @@
10
11
*/
12
public interface DigestCalculator
13
{
14
+ static final AlgorithmIdentifier SHA_256 = new AlgorithmIdentifier(NISTObjectIdentifiers.id_sha256);
15
+ static final AlgorithmIdentifier SHA_512 = new AlgorithmIdentifier(NISTObjectIdentifiers.id_sha512);
16
+
17
18
* Return the algorithm identifier representing the digest implemented by
19
* this calculator.
0 commit comments