Hash family

BLAKE3

A Merkle-tree hash over BLAKE2s rounds, designed for parallel speed and unlimited output

standard 1 variant BLAKE3 specification

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–2020
  1. BLAKE3 released by O'Connor, Aumasson, Neves and Wilcox-O'Hearn

How it works

  1. Split input into 1 KiB chunks
  2. Compress each chunk with 7-round BLAKE2s-style rounds
  3. Combine chunk chaining values pairwise in a Merkle tree
  4. 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

Fast file and content hashingKeyed MACKey derivation with context stringsIncremental or parallel verification

Variants in NextSSL

1
AlgorithmTierSizes (bytes)StandardsAPI
BLAKE3
blake3
standard out 32 BLAKE3 specification safe

Frequently asked questions

Which BLAKE3 variants does NextSSL include?

NextSSL registers 1 BLAKE3 variant: blake3.