WindowsSecureMimeContextDecrypt Method

Decrypt the encrypted data.

Definition

Namespace: MimeKit.Cryptography
Assembly: MimeKit.Cryptography (in MimeKit.Cryptography.dll) Version: 5.0.0
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)

Remarks

Decrypts the encrypted data.

Exceptions

ArgumentNullException encryptedData is .
OperationCanceledException The operation was cancelled via the cancellation token.
CryptographicException An error occurred in the cryptographic message syntax subsystem.

See Also