WindowsSecureMimeContextDecryptToAsync Method

Asynchronously decrypt the specified encryptedData to an output stream.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
C#
public override Task DecryptToAsync(
	Stream encryptedData,
	Stream decryptedData,
	CancellationToken cancellationToken = default
)

Parameters

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

Return Value

Task
An asynchronous task context.

Implements

ISecureMimeContextDecryptToAsync(Stream, Stream, CancellationToken)

Remarks

Asynchronously decrypts the specified encryptedData to an output stream.

Exceptions

ArgumentNullException

encryptedData is .

-or-

decryptedData is .

OperationCanceledException The operation was canceled via the cancellation token.
CryptographicException An error occurred in the cryptographic message syntax subsystem.

See Also