using Org.BouncyCastle.Asn1; using Org.BouncyCastle.Asn1.X509; namespace Org.BouncyCastle.Operators.Utilities { /// /// Base interface for a finder of digest algorithm identifiers used with signatures. /// public interface IDigestAlgorithmFinder { /// /// Find the digest algorithm identifier that matches with the passed in signature algorithm identifier. /// /// the signature algorithm of interest. /// an algorithm identifier for the corresponding digest. AlgorithmIdentifier Find(AlgorithmIdentifier signatureAlgorithm); /// /// Find the digest algorithm identifier that matches with the passed in digest name. /// /// the OID of the digest algorithm of interest. /// an algorithm identifier for the digest signature. AlgorithmIdentifier Find(DerObjectIdentifier digestOid); /// /// Find the digest algorithm identifier that matches with the passed in digest name. /// /// the name of the digest algorithm of interest. /// an algorithm identifier for the digest signature. AlgorithmIdentifier Find(string digestName); } }