Skip to content

EncryptOptions

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

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

optional appMetadata?: AppMetadata

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

Authenticated application metadata carried without interpretation.


cek: Uint8Array

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

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:38


optional recipients?: readonly A256KWRecipient[]

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

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