Expand description
Shared hash-encoding helpers used across the workspace.
Functions§
- hash_
reader - Stream
readerthrough 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 anystd::io::Errorinto their crate’s own error type (and re-attaching path context). - hex_
digest - Lower-case hex encoding of a digest (or any byte slice).