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