Open |
public Task<ApplicationPgpSignature> SignAsync( PgpSecretKey signer, DigestAlgorithm digestAlgo, Stream content, CancellationToken cancellationToken = default )
| Exception | Condition |
|---|---|
| ArgumentNullException | signer is . -or- content is . |
| ArgumentException | signer cannot be used for signing. |
| ArgumentOutOfRangeException | The digestAlgo was out of range. |
| NotSupportedException | The digestAlgo is not supported. |
| OperationCanceledException | The user chose to cancel the password prompt. -or- The operation was canceled via the cancellation token. |
| UnauthorizedAccessException | 3 bad attempts were made to unlock the secret key. |