Extendable-output functions

Turboshake128

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

unverified Root API only
Unverified tier.

Source found and wired, correctness not fully proven. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.

About Turboshake128

Turboshake128 is one of 2 TurboSHAKE variants in the NextSSL registry, an extendable-output function (XOF). Its registry entry cites RFC 9861. NextSSL lists it in the unverified tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).

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

Sizes

The registry declares no fixed sizes for this algorithm.

Use it

from nextssl_demo import NextSSL

root = NextSSL(root=True)   # tier 'unverified' is reachable from the root API only
out = root.call("xof", "turboshake128", None, b"abc", 64)[0]   # any length

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

Other TurboSHAKE variants

1

Similar names

Looking for something else?

Frequently asked questions

What is Turboshake128?

Turboshake128 is a XOF in the TurboSHAKE family. TurboSHAKE128 and TurboSHAKE256 are extendable-output functions that use the Keccak sponge with 12 rounds instead of 24.

Who designed Turboshake128 and when?

Turboshake128 belongs to the TurboSHAKE family, first published in 2023 by Guido Bertoni, Joan Daemen, Seth Hoffert, Michaël Peeters, Gilles Van Assche, Ronny Van Keer, Benoît Viguier. Its origin: RFC 9861.

Which standards define Turboshake128?

Turboshake128 is referenced by RFC 9861.

Is Turboshake128 safe to use?

Turboshake128 is in the unverified tier. Source found and wired, correctness not fully proven. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).

What other TurboSHAKE variants are there?

NextSSL also registers turboshake256 in the TurboSHAKE family.