Click or drag to resize
MimeKit

BouncyCastleSecureMimeContextDecryptTo Method

Decrypt the specified encryptedData to an output stream.

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

Parameters

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

Implements

ISecureMimeContextDecryptTo(Stream, Stream, CancellationToken)
Exceptions
ExceptionCondition
ArgumentNullException

encryptedData is .

-or-

decryptedData is .

OperationCanceledException The operation was canceled via the cancellation token.
CmsException An error occurred in the cryptographic message syntax subsystem.
Remarks
Decrypts the specified encryptedData to an output stream.
See Also