Skip to main content

Module integrity

Module integrity 

Source
Expand description

Integrity primitives.

Two digests with two distinct roles, per the architecture:

  • CRC32C (Castagnoli) guards physical framing and header bytes. It is a corruption detector, not a security boundary.
  • SHA-256 is the durable archival identity of the whole reconstructed source. Byte comparison remains the court authority during development; the digest is the fast, portable receipt.

Structs§

Sha256Hasher
A streaming SHA-256 hasher that hides the dependency’s concrete type.

Functions§

crc32c
CRC-32C (Castagnoli), reflected, init/xorout 0xFFFFFFFF.
sha256
SHA-256 of a byte slice.
to_hex
Lower-case hex encoding (no external dependency).