Documentation
¶
Overview ¶
Package integrity provides checksum and payload hash computation for snapshots.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeDescriptorChecksum ¶
func ComputeDescriptorChecksum(desc *model.Descriptor) (model.HashValue, error)
ComputeDescriptorChecksum computes SHA-256 checksum of the descriptor. Excludes: descriptor_checksum, integrity_state (per spec 04) Includes all other fields to ensure tamper detection.
func ComputePayloadRootHash ¶
ComputePayloadRootHash computes a deterministic hash of the entire payload tree. Algorithm: walk in byte-order sorted path order, compute per-entry hash, concatenate all lines, hash the result.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.