K054 / Hashes, MACs and key derivation
BLAKE3
BLAKE3 is specified as a fast, highly parallelizable cryptographic hash primitive.
CRYPTOGRAPHY LAB / K054
Cryptography Lab · BLAKE3
Run real computations and inspect intermediate states step by step.
Educational only. Never enter real passwords or secret keys. Computation stays in your browser; input and trace values are not sent to a server. Do not use this implementation in production.
BLAKE3-256 (single chunk, unkeyed)
See the scope above for fixed examples, reduced parameters and supported variants. Standard operation names and formulas are retained.Output
Previous state
- Definition and overview
- BLAKE3 is specified as a fast, highly parallelizable cryptographic hash primitive. Source document ↗
- Classification and reversibility
- One-way hash; cannot reverse or decrypt digest to recover input. Source document ↗
- Key or secret requirements
- Keyless basic hash; keyed mode adds a 32-byte secret key. Source document ↗
- Operating principle and structure
- Binary-tree mode based on a reduced-round BLAKE2 compression function. Source document ↗
- Key size, block size and parameters
- Default output 32 bytes, key 32 bytes, block 64 bytes, chunk 1024 bytes. Source document ↗
- Security strength and recommendation
- 128-bit security like BLAKE2s and 256-bit default output. Source document ↗
- Known attacks and vulnerabilities
- Best published collision attacks concern reduced rounds (4–5). Source document ↗
- Standards and certification
- Neither NIST nor IETF RFC standard. Source document ↗
- Typical uses
- File integrity, content addressing and checksums. Source document ↗
- Implementations, libraries and tools
- Official Rust implementation available. Source document ↗
- Decryption or decoding
- No decryption/decoding; one-way digest cannot recover original. Source document ↗
- Advantages
- Much faster than SHA-256 in software, parallelizable with cores and SIMD. Source document ↗
- Limitations and cautions
- Not NIST/IETF standardized; caution with regulatory/interoperability requirements. Source document ↗
- Distinguishing encryption, encoding and hashing
- One-way hash, not decryptable/decodable like encryption or encoding. Source document ↗
Practical examples
Example
Input produces a default 32-byte digest; same input yields same output. Keyed mode uses a 32-byte secret for MAC/PRF; verify by recomputing with identical input/key.
Procedure
Hash file/original and store/send digest; recipient rehashes and compares. Securely manage 32-byte keyed-mode key; recompute MAC with same key. BLAKE3 provides no encryption/decryption; use AEAD for confidentiality and separate Base64 encoding.
Scenario
Publish digest for large files and verify downloads; tree structure can support streaming partial verification. Use keyed mode with 32-byte key for server-to-server message authentication.
Pitfalls and alternatives
Do not decrypt hashes or insert secrets into ordinary hashes; choose unkeyed integrity hashing or keyed MAC appropriately. Check regulatory/FIPS approval; use vetted AEAD/KDF instead of custom encryption from hashes.
References
- The BLAKE3 Hashing Framework ↗
- Beginner's Guide to Cryptography – cryptopp-modern ↗
- BLAKE3.md ↗
- draft-reilly-rem-triple-fingerprint-01 - The Triple-Fingerprint Permanence Chain and the First Attested Triple-Fingerprint Record Under the Reilly EternaMark (REM) Protocol ↗
- reference_impl/reference_impl.rs ↗
- blake3.tex ↗
- BLAKE2b vs BLAKE2s vs BLAKE3: The Family Tree | QNSQY ↗
- Where is BLAKE3? - by JP Aumasson - bfSwA ↗
- blake3 - Rust ↗