BLAKE3
A Merkle-tree hash over BLAKE2s rounds, designed for parallel speed and unlimited output
Overview
BLAKE3 is a single hash function with four modes: plain hashing, keyed hashing (MAC), key derivation and extendable output. Its internal Merkle tree lets it use SIMD lanes and multiple threads, making it among the fastest secure hashes available.
BLAKE3 splits input into 1024-byte chunks, hashes each chunk with a compression function derived from BLAKE2s reduced to 7 rounds, and combines chunk outputs in a binary Merkle tree. Because the tree structure is fixed, any number of chunks can be processed in parallel and the result is identical regardless of how the work is scheduled. The root node can be squeezed for any output length.
One algorithm covers what used to require several: a 256-bit default hash, a keyed mode with a 32-byte key, a derive_key mode that takes a context string, and XOF output. NextSSL exposes the hash and the keyed MAC mode. BLAKE3 was released in 2020 and is defined by its own specification rather than by a standards body.
History
2020–2020BLAKE3 released by O'Connor, Aumasson, Neves and Wilcox-O'Hearn
How it works
- Split input into 1 KiB chunks
- Compress each chunk with 7-round BLAKE2s-style rounds
- Combine chunk chaining values pairwise in a Merkle tree
- Squeeze any length of output from the root
Security notes
No attacks on BLAKE3 are known. Its reduced round count relative to BLAKE2 is a deliberate trade-off that the designers justify with existing cryptanalysis of BLAKE and BLAKE2; it targets 128-bit security for all output lengths.
Typical uses
Variants in NextSSL
1| Algorithm | Tier | Sizes (bytes) | Standards | API |
|---|---|---|---|---|
| BLAKE3 blake3 |
standard | out 32 | BLAKE3 specification | safe |
Frequently asked questions
Which BLAKE3 variants does NextSSL include?
NextSSL registers 1 BLAKE3 variant: blake3.
Families with similar names
Other hash functions
All 424Related
The original BLAKE hash, a SHA-3 finalist and ancestor of BLAKE2 and BLAKE3
BLAKE2A fast, secure successor to BLAKE with built-in keying, salting and tree hashing
SHA-3 and KeccakThe Keccak sponge, standardised by NIST in FIPS 202 as a structural alternative to SHA-2
HKDFHMAC-based extract-and-expand key derivation function (RFC 5869)
BLAKE2A fast, secure successor to BLAKE with built-in keying, salting and tree hashing
SHA-3 and KeccakThe Keccak sponge, standardised by NIST in FIPS 202 as a structural alternative to SHA-2