XOF family

TurboSHAKE

SHAKE with the Keccak permutation reduced to 12 rounds, standardised in RFC 9861

unverified 2 variants RFC 9861

Overview

TurboSHAKE128 and TurboSHAKE256 are extendable-output functions that use the Keccak sponge with 12 rounds instead of 24. They are roughly twice as fast as SHAKE and serve as the building block of KangarooTwelve.

TurboSHAKE uses Keccak-p[1600, 12], the last 12 rounds of Keccak-f[1600], in a sponge with capacity 256 (TurboSHAKE128) or 512 (TurboSHAKE256). A domain-separation byte chosen by the caller is appended to the input, so different protocols or uses can derive independent functions without a separate customisation string. It is also an XOF.

TurboSHAKE was formally specified in 2023 and standardised in RFC 9861 alongside KangarooTwelve. NextSSL includes both variants as entries wired from source that have not yet been verified against the RFC test vectors. The separation byte must be in the range 0x01 to 0x7F. Different separation bytes give independent functions, which is how KangarooTwelve distinguishes its node types.

History

2023–2025
  1. TurboSHAKE published as a 12-round Keccak XOF

  2. Specified in RFC 9861

Security notes

TurboSHAKE's reduced round count still leaves a comfortable margin over the best known attacks on Keccak. NextSSL's implementation is unverified, so outputs should be checked against RFC 9861 before relying on them.

Typical uses

Faster SHAKE-style hashing and XOF outputBuilding KangarooTwelveDomain-separated hashing via the separation byte

Variants in NextSSL

2
AlgorithmTierSizes (bytes)StandardsAPI
Turboshake128
turboshake128
unverified — RFC 9861 root
Turboshake256
turboshake256
unverified — RFC 9861 root

Frequently asked questions

Which TurboSHAKE variants does NextSSL include?

NextSSL registers 2 TurboSHAKE variants: turboshake128, turboshake256.

Families with similar names