Extendable-output functions
An extendable-output function (XOF) is a hash that can produce output of any requested length. XOFs are used for key derivation, mask generation and seed expansion, notably inside post-quantum schemes.
Almost all XOFs in use today are sponges: after absorbing the input, the state can be squeezed repeatedly for as much output as needed. SHAKE128 and SHAKE256 from FIPS 202 are the base functions; cSHAKE adds customisation strings; TurboSHAKE and KangarooTwelve reduce the Keccak round count and add tree hashing for speed; Ascon-CXOF128 provides a lightweight equivalent.
Security is capped by the capacity of the sponge, not by the output length: reading more output does not increase security beyond the function's stated level. For most XOFs a shorter output is a prefix of a longer one, so protocols should fix or encode the length they use.
Families
6NIST's lightweight standard: one 320-bit permutation for hashing, XOFs, MACs and AEAD
A fast tree-hashing XOF over 12-round Keccak, standardised in RFC 9861
The Keccak sponge, standardised by NIST in FIPS 202 as a structural alternative to SHA-2
The extendable-output functions of FIPS 202, producing any length of output from Keccak
Customisable SHAKE from SP 800-185, adding function-name and customisation strings
SHAKE with the Keccak permutation reduced to 12 rounds, standardised in RFC 9861