Click or drag to resize
MimeKit

BouncyCastleSecureMimeContextDecryptAsync Method

Asynchronously decrypt the specified encryptedData.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public override Task<MimeEntity> DecryptAsync(
	Stream encryptedData,
	CancellationToken cancellationToken = default
)

Parameters

encryptedData  Stream
The encrypted data.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

TaskMimeEntity
The decrypted MimeEntity.
Exceptions
ExceptionCondition
ArgumentNullExceptionencryptedData is null.
OperationCanceledException The operation was canceled via the cancellation token.
CmsException An error occurred in the cryptographic message syntax subsystem.
Remarks
Asynchronously decrypts the specified encryptedData.
See Also