cSHAKE
Customisable SHAKE from SP 800-185, adding function-name and customisation strings
Overview
cSHAKE is a customisable variant of SHAKE defined in NIST SP 800-185. It adds two inputs, a function name and a customisation string, so that different applications obtain independent functions from the same Keccak sponge.
cSHAKE encodes the function name N and customisation string S with length prefixes, pads them to a multiple of the sponge rate, and absorbs this block before the message, using a different domain-separation suffix from SHAKE. When both N and S are empty, cSHAKE is defined to be identical to SHAKE. NIST reserves function names for its own derived functions such as KMAC, TupleHash and ParallelHash.
NextSSL includes cSHAKE128 and cSHAKE256, providing 128-bit and 256-bit security levels. Applications should choose a unique customisation string, such as a protocol name and version, so that outputs used in different contexts cannot be confused or substituted for one another. The function name parameter is reserved for NIST-defined functions. Strings are public.
History
2016–2016Specified in NIST SP 800-185
Security notes
cSHAKE inherits Keccak's security with no known weaknesses. Customisation strings provide domain separation only; they are not secret and do not act as keys.
Typical uses
Variants in NextSSL
2Frequently asked questions
Which cSHAKE variants does NextSSL include?
NextSSL registers 2 cSHAKE variants: cshake128, cshake256.
Families with similar names
Other extendable-output functions
All 8Related
An SP 800-185 hash that splits input into blocks so cSHAKE can process them in parallel
SHA-3 and KeccakThe Keccak sponge, standardised by NIST in FIPS 202 as a structural alternative to SHA-2
KMACNIST's Keccak-based MAC from SP 800-185, with optional arbitrary-length output
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