decrypt
decrypt(
encoded,cekInput):Promise<Uint8Array<ArrayBufferLike>>
Defined in: packages/filecoin-encryption-envelope/src/aes-gcm.ts:175
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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
encoded | Uint8Array |
cekInput | Uint8Array |
Returns
Section titled “Returns”Promise<Uint8Array<ArrayBufferLike>>