Click or drag to resize
MimeKit

SecureMimeContextGetDigestAlgorithmName Method

Get the string name of the digest algorithm for use with the micalg parameter of a multipart/signed part.

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

Parameters

micalg  DigestAlgorithm
The digest algorithm.

Return Value

String
The micalg value.

Implements

ICryptographyContextGetDigestAlgorithmName(DigestAlgorithm)
ICryptographyContextGetDigestAlgorithmName(DigestAlgorithm)
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionmicalg is out of range.
NotSupportedException The specified DigestAlgorithm is not supported by this context.
Remarks

Maps the DigestAlgorithm to the appropriate string identifier as used by the micalg parameter value of a multipart/signed Content-Type header. For example:

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