Click or drag to resize
MimeKit

WindowsSecureMimeContextTryGetDigestAlgorithm Method

Attempts to map a Oid to a DigestAlgorithm.

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

Parameters

identifier  Oid
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 Oid to a DigestAlgorithm.
See Also