Click or drag to resize
MimeKit

SecureMimeContextGetDigestAlgorithm Method

Get the digest algorithm from the micalg parameter value in a multipart/signed part.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public override DigestAlgorithm GetDigestAlgorithm(
	string micalg
)

Parameters

micalg  String
The micalg parameter value.

Return Value

DigestAlgorithm
The digest algorithm.
Exceptions
ExceptionCondition
ArgumentNullExceptionmicalg is null.
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
See Also