SecureMimeContextGetDigestAlgorithm 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
C#
public override DigestAlgorithm GetDigestAlgorithm(
	string micalg
)

Parameters

micalg  String
The micalg parameter value.

Return Value

DigestAlgorithm
The 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

AlgorithmName
MD2md2
MD4md4
MD5md5
Sha1sha-1
Sha224sha-224
Sha256sha-256
Sha384sha-384
Sha512sha-512
Tiger192tiger-192
RipeMD160ripemd160
Haval5160haval-5-160

Exceptions

ArgumentNullException micalg is .

See Also