Expand description
Fast hashing using BLAKE3.
This module provides:
- Simple one-shot hashing
- Incremental hashing for large files
- Keyed hashing for MACs
- Parallel chunk hashing
Structs§
- Chunk
Hash Result - Result of chunk hashing.
- Chunk
Hasher - Hash multiple chunks and return individual hashes plus root hash.
- Hash
Result - Result of hashing with metadata.
- Incremental
Hasher - Incremental hasher for streaming large data.
Constants§
- HASH_
BUFFER_ SIZE - Default buffer size for incremental hashing (64 KB).
Functions§
- hash
- Compute BLAKE3 hash of data.
- hash_
chunked - Hash content in chunks from a reader.
- hash_
multi - Compute BLAKE3 hash of multiple data chunks.
- hash_
reader - Hash a reader (file, network stream, etc.) incrementally.
- keyed_
hash - Compute keyed BLAKE3 hash (for MAC).
- verify_
hash - Verify that data matches the expected hash.
Type Aliases§
- Hash
- Hash output (256 bits).