XOF family

SHA-3 and Keccak

The Keccak sponge, standardised by NIST in FIPS 202 as a structural alternative to SHA-2

standard 1 variant SHA-3 competition winner (FIPS 202)

Overview

SHA-3 is the hash family derived from Keccak, the winner of NIST's 2007–2012 hash competition. It uses a sponge construction over a 1600-bit permutation, which makes it structurally independent of SHA-2 and immune to length-extension.

Keccak absorbs input into a 1600-bit state by XORing message blocks into its first r bits, the rate, and applying the Keccak-f[1600] permutation after each block. The remaining c bits, the capacity, are never directly exposed and determine the security level. Once all input is absorbed, output is squeezed out of the rate portion. The permutation itself uses 24 rounds of five simple steps (theta, rho, pi, chi, iota) on 64-bit lanes.

NextSSL includes SHA3-224, SHA3-256, SHA3-384 and SHA3-512 as specified in FIPS 202, together with Keccak-256 and Keccak-512 using the original submission padding (0x01 instead of the FIPS 202 domain-separation byte 0x06). Keccak-256 is the variant used by Ethereum, and its outputs differ from SHA3-256 for the same input. The SHAKE256 extendable-output function, also defined in FIPS 202, shares this family.

Keccak was designed by Guido Bertoni, Joan Daemen, Michaël Peeters and Gilles Van Assche and selected as SHA-3 in October 2012. FIPS 202 was published in August 2015. NIST positioned SHA-3 as a complement to SHA-2 rather than a replacement. Adoption has grown slowly, but SHA-3 and its SHAKE functions are now central to the NIST post-quantum standards, which use them for hashing and seed expansion throughout.

History

2007–2015
  1. NIST announces a public competition for a new hash standard, SHA-3

    NIST SHA-3 competition
  2. Keccak submitted to the SHA-3 competition

  3. 14 designs advance to round 2

    NIST SHA-3 competition
  4. Five finalists named: BLAKE, Grøstl, JH, Keccak and Skein

    NIST SHA-3 competition
  5. Keccak selected as SHA-3

  6. SHA-3 and SHAKE published in FIPS 202

How it works

  1. Pad the input and split it into rate-sized blocks
  2. XOR each block into the 1600-bit state
  3. Apply Keccak-f[1600] (24 rounds) after each block
  4. Squeeze output from the rate portion of the state

Security notes

No practical attacks are known on full-round Keccak or SHA-3; the best published results reach well under half of the 24 rounds. The legacy Keccak-256/512 variants are as strong as SHA-3 but are not interoperable with it, so the two must not be confused.

Typical uses

Hashing where independence from SHA-2 is wantedKMAC and SP 800-185 functionsEthereum (Keccak-256)Post-quantum schemes such as ML-KEM and ML-DSA

Variants in NextSSL

1
AlgorithmTierSizes (bytes)StandardsAPI
SHAKE256
shake256
standard FIPS — FIPS 202 safe

Frequently asked questions

Which SHA-3 and Keccak variants does NextSSL include?

NextSSL registers 1 SHA-3 and Keccak variant: shake256.