DecryptOptions
Defined in: packages/filecoin-encryption-envelope/src/aes-gcm-stream.ts:226
Options for decrypt and decryptWith.
Properties
Section titled “Properties”signal?
Section titled “signal?”
optionalsignal?:AbortSignal
Defined in: packages/filecoin-encryption-envelope/src/aes-gcm-stream.ts:238
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).