decrypt
decrypt(
encoded,cek):Promise<Uint8Array<ArrayBufferLike>>
Defined in: packages/filecoin-encryption-envelope/src/aes-gcm.ts:162
Authenticate and decrypt a complete scheme-1 FEE object with a supplied CEK.
Both COSE_Encrypt0 and COSE_Encrypt are accepted. The envelope tag selects
the AAD context; recipient records are validated by the COSE decoder but do
not participate when the caller supplies the CEK directly. Borrows its
inputs: callers must not modify encoded or cek until the promise settles.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
encoded | Uint8Array |
cek | Uint8Array |
Returns
Section titled “Returns”Promise<Uint8Array<ArrayBufferLike>>