Hashing

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.

8 algorithms 6 families

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

6