Skip to main content

Module hash

Module hash 

Source
Expand description

Shared hash-encoding helpers used across the workspace.

Functions§

hash_reader
Stream reader through SHA-256 in 64 KiB chunks and return the lower-case hex digest. This is the shared primitive behind every Cabin file / archive integrity check; callers own opening the file and mapping any std::io::Error into their crate’s own error type (and re-attaching path context).
hex_digest
Lower-case hex encoding of a digest (or any byte slice).