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.7.1
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
true if the algorithm identifier was successfully mapped; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionidentifier is null.
Remarks
Attempts to map a AlgorithmIdentifier to a EncryptionAlgorithm.
See Also