Click or drag to resize
MimeKit

SecureMimeContextDecryptTo Method

Decrypts the specified encryptedData to an output stream.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public abstract void DecryptTo(
	Stream encryptedData,
	Stream decryptedData,
	CancellationToken cancellationToken = default
)

Parameters

encryptedData  Stream
The encrypted data.
decryptedData  Stream
The stream to write the decrypted data to.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Implements

ISecureMimeContextDecryptTo(Stream, Stream, CancellationToken)
Exceptions
ExceptionCondition
ArgumentNullException

encryptedData is null.

-or-

decryptedData is null.

OperationCanceledException The operation was cancelled via the cancellation token.
Remarks
Decrypts the specified encryptedData to an output stream.
See Also