# DecryptOptions

Defined in: [packages/filecoin-encryption-envelope/src/aes-gcm-stream.ts:226](https://github.com/FilOzone/synapse-sdk/blob/278badff6cfc813e6315d00c56f4a5f23c80f883/packages/filecoin-encryption-envelope/src/aes-gcm-stream.ts#L226)

Options for [decrypt](/reference/filecoin-encryption-envelope/functions/decrypt/) and [decryptWith](/reference/filecoin-encryption-envelope/functions/decryptwith/).

## Properties

### signal?

> `optional` **signal?**: [`AbortSignal`](https://developer.mozilla.org/docs/Web/API/AbortSignal)

Defined in: [packages/filecoin-encryption-envelope/src/aes-gcm-stream.ts:238](https://github.com/FilOzone/synapse-sdk/blob/278badff6cfc813e6315d00c56f4a5f23c80f883/packages/filecoin-encryption-envelope/src/aes-gcm-stream.ts#L238)

Optional cancellation signal. Aborting it errors both sides of the
returned pair with the exact `signal.reason`, unblocking pending writes
and reads, and aborts the `AbortSignal` passed to a `KeyResolver` or
`Unwrapper`.

While the stream is unsettled, the listener on `signal` keeps the stream
reachable so pending reads and `writer.closed` remain abortable. When
reusing a long-lived signal, consume or explicitly cancel/abort unused
streams (or use an operation-scoped signal).