Click or drag to resize
MimeKit

BouncyCastleSecureMimeContextTryGetEncryptionAlgorithm Method

Attempts to map a AlgorithmIdentifier to a EncryptionAlgorithm.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.10.0
Syntax
C#
protected static bool TryGetEncryptionAlgorithm(
	AlgorithmIdentifier identifier,
	out EncryptionAlgorithm algorithm
)

Parameters

identifier  AlgorithmIdentifier
The algorithm identifier.
algorithm  EncryptionAlgorithm
The encryption algorithm.

Return Value

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