Secure Mime ContextGet Digest Algorithm Method
Get the digest algorithm from the micalg parameter value in a multipart/signed part.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
The digest algorithm.
ICryptographyContextGetDigestAlgorithm(String)
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public override DigestAlgorithm GetDigestAlgorithm(
string micalg
)Parameters
- micalg String
- The micalg parameter value.
Return Value
DigestAlgorithmThe digest algorithm.
Implements
ICryptographyContextGetDigestAlgorithm(String)ICryptographyContextGetDigestAlgorithm(String)
Remarks
Maps the micalg parameter value string back to the appropriate DigestAlgorithm.
Maps the micalg parameter value string back to the appropriate DigestAlgorithm
| Algorithm | Name |
|---|---|
| MD2 | md2 |
| MD4 | md4 |
| MD5 | md5 |
| Sha1 | sha-1 |
| Sha224 | sha-224 |
| Sha256 | sha-256 |
| Sha384 | sha-384 |
| Sha512 | sha-512 |
| Tiger192 | tiger-192 |
| RipeMD160 | ripemd160 |
| Haval5160 | haval-5-160 |
Exceptions
| ArgumentNullException | micalg is . |