Click or drag to resize
MimeKit

WindowsSecureMimeContextDecrypt Method

Decrypt the encrypted data.

Namespace: MimeKit.Cryptography
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public override MimeEntity Decrypt(
	Stream encryptedData,
	CancellationToken cancellationToken = default
)

Parameters

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

Return Value

MimeEntity
The decrypted MimeEntity.

Implements

ICryptographyContextDecrypt(Stream, CancellationToken)
Exceptions
ExceptionCondition
ArgumentNullExceptionencryptedData is null.
OperationCanceledException The operation was cancelled via the cancellation token.
CryptographicException An error occurred in the cryptographic message syntax subsystem.
Remarks
Decrypt the encrypted data.
See Also