Skip to main content

Module integrity

Module integrity 

Source
Expand description

Checksum verification (PRD §16).

A mismatch is a failure, never a warning: rget exits non-zero and the download is marked failed (PRD Invariant 5).

Structs§

Checksum

Enums§

Algorithm
Outcome

Functions§

hash_bytes
Hash a byte slice — used by tests and by mirror equivalence checks.
verify
Hash a file, reporting progress. Runs on a blocking thread: hashing a large file is CPU-bound and would otherwise stall the runtime.

Type Aliases§

SharedChecksum
Wrap in an Arc for sharing with the UI without cloning the digest.