Windows Secure Mime ContextTry Get Digest Algorithm Method
Attempt to map a Oid
to a DigestAlgorithm.
Definition
Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
if the algorithm identifier was successfully mapped; otherwise, .
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
Booleanif the algorithm identifier was successfully mapped; otherwise, .
Remarks
Attempts to map a Oid
to a DigestAlgorithm.
Exceptions
| ArgumentNullException | identifier is . |