Multipart |
public static MultipartSigned Create( OpenPgpContext ctx, PgpSecretKey signer, DigestAlgorithm digestAlgo, MimeEntity entity, CancellationToken cancellationToken = default )
Exception | Condition |
---|---|
ArgumentNullException | ctx is null. -or- signer is null. -or- entity is null. |
ArgumentException | signer cannot be used for signing. |
ArgumentOutOfRangeException | The digestAlgo was out of range. |
NotSupportedException | The digestAlgo is not supported. |
ObjectDisposedException | entity has been disposed. |
OperationCanceledException | The operation was canceled via the cancellation token. |
PgpException | An error occurred in the OpenPGP subsystem. |