Skip to main content

Module reader

Module reader 

Source
Expand description

CommitReader: encapsulates the commit→metadata→shard key derivation chain.

Makes it structurally impossible to use the wrong key for metadata/shard decryption. Replaces the manual decrypt_commitderive_scoped_keydecrypt_blob_*_key_fallback pattern.

§Security

CommitReader holds the per-commit content key. Methods use the content key for metadata/shard decryption. Wrapped shard keys are unwrapped with the content key or ancestor keys.

Structs§

CommitReader
Encapsulates the key derivation chain for reading a commit’s objects.

Functions§

decrypt_object
Decrypt a blob with VD01 envelope format.
decrypt_object_parse
Decrypt a blob and parse a CBOR-encoded type with VD01 envelope format.
decrypt_object_raw
Decrypt a blob to raw bytes with VD01 envelope format.
decrypt_shard_data
Decrypt a shard blob with wrapped key support.