1 package org.bouncycastle.operator;
2 
3 import org.bouncycastle.asn1.ASN1ObjectIdentifier;
4 import org.bouncycastle.asn1.x509.AlgorithmIdentifier;
5 
6 public interface DigestAlgorithmIdentifierFinder
7 {
8     /**
9      * Find the digest algorithm identifier that matches with
10      * the passed in signature algorithm identifier.
11      *
12      * @param sigAlgId the signature algorithm of interest.
13      * @return an algorithm identifier for the corresponding digest.
14      */
find(AlgorithmIdentifier sigAlgId)15     AlgorithmIdentifier find(AlgorithmIdentifier sigAlgId);
16 
17     /**
18      * Find the algorithm identifier that matches with
19      * the passed in digest name.
20      *
21      * @param digestOid the name of the digest algorithm of interest.
22      * @return an algorithm identifier for the digest signature.
23      */
find(ASN1ObjectIdentifier digestOid)24     AlgorithmIdentifier find(ASN1ObjectIdentifier digestOid);
25 
26     /**
27      * Find the algorithm identifier that matches with
28      * the passed in digest name.
29      *
30      * @param digAlgName the name of the digest algorithm of interest.
31      * @return an algorithm identifier for the digest signature.
32      */
find(String digAlgName)33     AlgorithmIdentifier find(String digAlgName);
34 }