Expand description
Provides hashing algorithms including xxHash and SHA-256.
Modules§
- cli
- CLI execution helpers for checksum computations.
- fnv
- Fowler-Noll-Vo (FNV-0, FNV-1, FNV-1a) hash functions computed from scratch.
- xxhash
- Thin wrapper around the xxHash fast non-cryptographic hash algorithms.
Structs§
- Checksum
Detection - Result of identifying a checksum digest or manifest format.
- Sha256
Stream - Streaming SHA-256 hasher for incremental hashing.
Enums§
- Streaming
Hasher - Streaming hasher for incremental hashing across all supported algorithms.
Constants§
Statics§
- CSUM_
AFTER_ HELP - Global static help table for
csumCLI command.
Traits§
- Hash
Format Ext - Extension trait for format metadata on [
SupportedHashFormat].
Functions§
- csum_
help_ table - Generates a help table of supported hash algorithms and their aliases.
- detect_
checksum - Detects whether
srepresents a standalone cryptographic/non-cryptographic hex digest or a checksum manifest file/line. - hash
- Computes the hash of the given data using the specified algorithm.
- hash_
hex - Computes the hash of the given data using the specified algorithm and
returns the result formatted as a hex string, optionally prefixed with
0x. - sha256
- Computes the SHA-256 hash of
data. - sha256_
hex - Computes the SHA-256 hash of
dataas a lowercase hex string.
Type Aliases§
- Hash
Algorithm - Supported hash algorithms (re-exported from core utilities).