WindowsSecureMimeContextTryGetDigestAlgorithm Method

Attempt to map a Oid to a DigestAlgorithm.

Definition

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

Parameters

identifier  Oid
The algorithm identifier.
algorithm  DigestAlgorithm
The encryption algorithm.

Return Value

Boolean
if the algorithm identifier was successfully mapped; otherwise, .

Remarks

Attempts to map a Oid to a DigestAlgorithm.

Exceptions

ArgumentNullException identifier is .

See Also