OpenPgpContextGetDigestAlgorithm(String) 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)

Remarks

Maps the micalg parameter value string back to the appropriate DigestAlgorithm.

Exceptions

ArgumentNullException micalg is .

See Also