![]() | Multipart |
public static Task<MultipartEncrypted> EncryptAsync( OpenPgpContext ctx, EncryptionAlgorithm algorithm, IEnumerable<PgpPublicKey> recipients, MimeEntity entity, CancellationToken cancellationToken = default )
Exception | Condition |
---|---|
ArgumentNullException | ctx is . -or- recipients is . -or- entity is . |
ArgumentException | One or more of the recipient keys cannot be used for encrypting. |
NotSupportedException | The specified encryption algorithm is not supported. |
ObjectDisposedException | entity has been disposed. |
OperationCanceledException | The operation was canceled via the cancellation token. |