Turboshake256
SHAKE with the Keccak permutation reduced to 12 rounds, standardised in RFC 9861
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 Turboshake256
Turboshake256 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–2025TurboSHAKE published as a 12-round Keccak XOF
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
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", "turboshake256", None, b"abc", 64)[0] # any length
nextssl_root_xof("turboshake256", NULL, data, 64, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_xof_in(reg::all(), Policy::Any, "turboshake256", &Params::new())?;
let out = alg.squeeze(b"abc", 64)?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Other TurboSHAKE variants
1Similar names
Looking for something else?More extendable-output functions
All 8Frequently asked questions
What is Turboshake256?
Turboshake256 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 Turboshake256 and when?
Turboshake256 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 Turboshake256?
Turboshake256 is referenced by RFC 9861.
Is Turboshake256 safe to use?
Turboshake256 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 turboshake128 in the TurboSHAKE family.
Related families
The Keccak sponge, standardised by NIST in FIPS 202 as a structural alternative to SHA-2
KangarooTwelveA fast tree-hashing XOF over 12-round Keccak, standardised in RFC 9861
SHA-3 and KeccakThe Keccak sponge, standardised by NIST in FIPS 202 as a structural alternative to SHA-2
SHAKEThe extendable-output functions of FIPS 202, producing any length of output from Keccak