EncryptOptions
Defined in: packages/filecoin-encryption-envelope/src/aes-gcm.ts:35
Options for one whole-object AES-256-GCM encryption.
Properties
Section titled “Properties”appMetadata?
Section titled “appMetadata?”
optionalappMetadata?: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.
contentType?
Section titled “contentType?”
optionalcontentType?:string|number
Defined in: packages/filecoin-encryption-envelope/src/aes-gcm.ts:38
recipients?
Section titled “recipients?”
optionalrecipients?: readonlyA256KWRecipient[]
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.