BLAKE3
A Merkle-tree hash over BLAKE2s rounds, designed for parallel speed and unlimited output
About BLAKE3
BLAKE3 is a cryptographic hash function. It produces a 32-byte (256-bit) output. Its registry entry cites BLAKE3 specification. NextSSL lists it in the standard tier and exposes it through the safe API.
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
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| out | 32 | Output |
Use it
from nextssl_demo import NextSSL
ns = NextSSL() # safe API: safe and standard tiers
digest = ns.call("hash_with", "blake3", None, b"abc")[0]
nextssl_hash_with("blake3", NULL, data, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let digest = reg::hash_in(reg::all(), Policy::Safe, "blake3", &Params::new(), b"abc")?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Similar names
Looking for something else?More hash functions
All 424Frequently asked questions
What is BLAKE3?
BLAKE3 is a hash in the BLAKE3 family. BLAKE3 is a single hash function with four modes: plain hashing, keyed hashing (MAC), key derivation and extendable output.
What are the BLAKE3 sizes?
In NextSSL, BLAKE3 uses: output 32 bytes.
Who designed BLAKE3 and when?
BLAKE3 belongs to the BLAKE3 family, first published in 2020 by Jack O'Connor, Jean-Philippe Aumasson, Samuel Neves, Zooko Wilcox-O'Hearn. Its origin: BLAKE3 specification.
Which standards define BLAKE3?
BLAKE3 is referenced by BLAKE3 specification.
Is BLAKE3 safe to use?
BLAKE3 is in the standard tier. Standardised and sound. Reachable from the safe API. It can be called from the safe API.
Related families
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