Click or drag to resize
MimeKit

OpenPgpContextGetDigestAlgorithm(HashAlgorithmTag) Method

Gets the equivalent DigestAlgorithm for the specified HashAlgorithmTag.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public static DigestAlgorithm GetDigestAlgorithm(
	HashAlgorithmTag hashAlgorithm
)

Parameters

hashAlgorithm  HashAlgorithmTag
The hash algorithm.

Return Value

DigestAlgorithm
The digest algorithm.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionhashAlgorithm is out of range.
NotSupportedExceptionhashAlgorithm does not have an equivalent DigestAlgorithm value.
Remarks
Gets the equivalent DigestAlgorithm for the specified HashAlgorithmTag.
See Also