Click or drag to resize
MimeKit

OpenPgpContextGetHashAlgorithm Method

Gets the equivalent HashAlgorithmTag for the specified DigestAlgorithm.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public static HashAlgorithmTag GetHashAlgorithm(
	DigestAlgorithm digestAlgo
)

Parameters

digestAlgo  DigestAlgorithm
The digest algorithm.

Return Value

HashAlgorithmTag
The hash algorithm.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptiondigestAlgo is out of range.
NotSupportedExceptiondigestAlgo is not a supported digest algorithm.
Remarks
Maps a DigestAlgorithm to the equivalent HashAlgorithmTag.
See Also