Click or drag to resize
MimeKit

OpenPgpContextGetDigestAlgorithmName 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)
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionmicalg is out of range.
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
MD5pgp-md5
Sha1pgp-sha1
RipeMD160pgp-ripemd160
MD2pgp-md2
Tiger192pgp-tiger192
Haval5160pgp-haval-5-160
Sha256pgp-sha256
Sha384pgp-sha384
Sha512pgp-sha512
Sha224pgp-sha224
See Also