Click or drag to resize
MimeKit

BouncyCastleSecureMimeContextTryGetDigestAlgorithm Method

Attempts to map a AlgorithmIdentifier to a DigestAlgorithm.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
protected static bool TryGetDigestAlgorithm(
	AlgorithmIdentifier identifier,
	out DigestAlgorithm algorithm
)

Parameters

identifier  AlgorithmIdentifier
The algorithm identifier.
algorithm  DigestAlgorithm
The encryption algorithm.

Return Value

Boolean
true if the algorithm identifier was successfully mapped; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionidentifier is null.
Remarks
Attempts to map a AlgorithmIdentifier to a DigestAlgorithm.
See Also