WindowsSecureMimeContextDecryptTo Method

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 void DecryptTo(
	Stream encryptedData,
	Stream decryptedData,
	CancellationToken cancellationToken = default
)

Parameters

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

Implements

ISecureMimeContextDecryptTo(Stream, Stream, CancellationToken)

Remarks

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