BouncyCastleSecureMimeContextTryGetEncryptionAlgorithm Method

Attempts to map a AlgorithmIdentifier to a EncryptionAlgorithm.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
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, .

Remarks

Attempts to map a AlgorithmIdentifier to a EncryptionAlgorithm.

Exceptions

ArgumentNullException identifier is .

See Also