Hash functions

BLAKE2b-512

A fast, secure successor to BLAKE with built-in keying, salting and tree hashing

standard Safe API

About BLAKE2b-512

BLAKE2b-512 is one of 4 BLAKE2 variants in the NextSSL registry, a cryptographic hash function. It produces a 64-byte (512-bit) output. It takes the parameter key. Its registry entry cites RFC 7693. It is also known as blake2b. NextSSL lists it in the standard tier and exposes it through the safe API.

Overview

BLAKE2 is a hash function family that is faster than MD5 on modern CPUs while offering security comparable to SHA-3. It is specified in RFC 7693 and provides a native keyed mode, so it can act as a MAC without HMAC.

BLAKE2 descends from BLAKE, a SHA-3 finalist, and keeps its ChaCha-derived G function while reducing rounds (12 for BLAKE2b, 10 for BLAKE2s), simplifying padding and adding a parameter block. The parameter block carries the digest length, key length, salt, personalisation string and tree-hashing parameters, so different uses yield unrelated outputs by construction.

NextSSL provides BLAKE2b with 512-bit output for 64-bit platforms, BLAKE2s with up to 256-bit output for 32-bit and embedded platforms, and the parallel variants BLAKE2bp (4-way) and BLAKE2sp (8-way), which hash interleaved lanes and combine them with a root node. Keyed BLAKE2b and BLAKE2s are exposed as MACs. BLAKE2 is used in Argon2, WireGuard, libsodium's generic hash and many file-integrity tools.

History

2012–2015
  1. BLAKE2 released

  2. BLAKE2b and BLAKE2s specified in RFC 7693

  3. Argon2 adopts BLAKE2b internally

How it works

  1. Initialise the state from IV XOR the parameter block
  2. Optionally process the key as a first padded block
  3. Compress each block with 12 (b) or 10 (s) rounds of the G function
  4. Mark the final block with a flag and output the truncated state

Security notes

No practical attacks are known on full-round BLAKE2; published cryptanalysis reaches only reduced-round variants. Keyed BLAKE2 is a secure PRF and MAC as long as the key is secret and at least as long as the security level required.

Typical uses

General-purpose fast hashingKeyed MAC without HMACKey derivation inside Argon2Protocols such as WireGuard

Sizes

FieldBytesMeaning
out64Output

Parameters

NameTypeRangeDefaultRequired
key bytes 0 – 64 — no

Parameters are passed as a string, for example nextssl_mac("hmac", "hash=sha512", …). Omitted parameters take their declared default.

Use it

from nextssl_demo import NextSSL

ns = NextSSL()              # safe API: safe and standard tiers
digest = ns.call("hash_with", "blake2b-512", None, b"abc")[0]

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

Other BLAKE2 variants

3

Frequently asked questions

What is BLAKE2b-512?

BLAKE2b-512 is a hash in the BLAKE2 family. BLAKE2 is a hash function family that is faster than MD5 on modern CPUs while offering security comparable to SHA-3. It is also known as blake2b.

What are the BLAKE2b-512 sizes?

In NextSSL, BLAKE2b-512 uses: output 64 bytes.

Who designed BLAKE2b-512 and when?

BLAKE2b-512 belongs to the BLAKE2 family, first published in 2012 by Jean-Philippe Aumasson, Samuel Neves, Zooko Wilcox-O'Hearn, Christian Winnerlein. Its origin: RFC 7693.

Which standards define BLAKE2b-512?

BLAKE2b-512 is referenced by RFC 7693.

Is BLAKE2b-512 safe to use?

BLAKE2b-512 is in the standard tier. Standardised and sound. Reachable from the safe API. It can be called from the safe API.

What other BLAKE2 variants are there?

NextSSL also registers blake2bp, blake2s, blake2sp in the BLAKE2 family.