Skip to content

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.

ParameterType
encodedUint8Array
cekInputUint8Array

Promise<Uint8Array<ArrayBufferLike>>