Open Pgp ContextGet Digest Algorithm(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
The digest algorithm.
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
DigestAlgorithmThe digest algorithm.
Implements
ICryptographyContextGetDigestAlgorithm(String)Remarks
Maps the micalg parameter value string back to the appropriate DigestAlgorithm.
Exceptions
| ArgumentNullException | micalg is . |