Hash functions

BLAKE3

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

standard Safe API

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–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

Sizes

FieldBytesMeaning
out32Output

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]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Frequently 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.