lookupDigestMethod returns the digest method registered for algorithm.
(algorithm string)
| 97 | |
| 98 | // lookupDigestMethod returns the digest method registered for algorithm. |
| 99 | func lookupDigestMethod(algorithm string) (DigestMethod, bool) { |
| 100 | registryMu.RLock() |
| 101 | defer registryMu.RUnlock() |
| 102 | dm, ok := digestMethods[algorithm] |
| 103 | return dm, ok |
| 104 | } |
| 105 | |
| 106 | // BlockCipher implements a cipher with a fixed size key like AES or 3DES. |
| 107 | type BlockCipher interface { |