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