Crate ctb_formats_checksum

Crate ctb_formats_checksum 

Source
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§

ChecksumDetection
Result of identifying a checksum digest or manifest format.
Sha256Stream
Streaming SHA-256 hasher for incremental hashing.

Enums§

StreamingHasher
Streaming hasher for incremental hashing across all supported algorithms.

Constants§

Sha256

Statics§

CSUM_AFTER_HELP
Global static help table for csum CLI command.

Traits§

HashFormatExt
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 s represents 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 data as a lowercase hex string.

Type Aliases§

HashAlgorithm
Supported hash algorithms (re-exported from core utilities).