Skip to content

EncryptOptions

Defined in: packages/filecoin-encryption-envelope/src/aes-gcm.ts:32

Options for one whole-object AES-256-GCM encryption.

optional appMetadata?: AppMetadata

Defined in: packages/filecoin-encryption-envelope/src/aes-gcm.ts:37

Authenticated application metadata carried without interpretation.


cek: Uint8Array

Defined in: packages/filecoin-encryption-envelope/src/aes-gcm.ts:34

Exactly 32 bytes and not all-zero. The caller owns its lifecycle and reuse policy.


optional contentType?: string | number

Defined in: packages/filecoin-encryption-envelope/src/aes-gcm.ts:35


optional recipients?: readonly A256KWRecipient[]

Defined in: packages/filecoin-encryption-envelope/src/aes-gcm.ts:42

Wrap the CEK for each recipient and write COSE_Encrypt (tag 96). Omit for COSE_Encrypt0 (tag 16); an empty array is rejected.