Keccak (SHA-3 round 2)
Keccak round 2: the sponge-based SHA-3 candidate tweak that led to the round 3 finalist
Overview
Keccak round 2 is the tweak of the Keccak sponge hash submitted to the second round of NIST's SHA-3 competition. NextSSL archives it as unverified research code, and its digests differ from FIPS 202 SHA-3 output.
Keccak is a sponge construction: the state is absorbed with message blocks, then squeezed for output. Its permutation is Keccak-f, which mixes the state with simple bitwise operations and rotations, so no table lookups are needed. The five SHA-3 finalists were studied publicly for several years, and that analysis is recorded in the published literature rather than in NextSSL's data.
This is the round 2 tweak, between the round 1 submission and the round 3 finalist. NextSSL lists output sizes of 224, 256, 384 and 512-bit, and the registry entries are keccak-224-sha3r2, keccak-256-sha3r2, keccak-384-sha3r2, keccak-512-sha3r2. NextSSL keeps this archived version as its own entry so that test vectors can match a specific round or parameter set. Keccak was selected in 2012 as SHA-3 and standardised in FIPS 202, so the other finalists are historical comparisons.
The SHA-3 standard, FIPS 202, is derived from Keccak and adds a domain separation suffix to the padding. Round versions therefore do not produce the same digests as SHA3-224, SHA3-256, SHA3-384 or SHA3-512. For production hashing, SHA-2 and the standardised SHA-3 functions remain the recommended choices. The five SHA-3 finalists were studied publicly for several years, and that analysis is recorded in the published literature rather than in NextSSL's data.
History
2007–2015NIST announces a public competition for a new hash standard, SHA-3
NIST SHA-3 competitionKeccak published by Guido Bertoni, Joan Daemen, Michaël Peeters, Gilles Van Assche
64 designs submitted; 51 accepted into round 1
NIST SHA-3 competition14 designs advance to round 2
NIST SHA-3 competitionFive finalists named: BLAKE, Grøstl, JH, Keccak and Skein
NIST SHA-3 competitionKeccak selected as SHA-3
NIST SHA-3 competitionSHA-3 published as FIPS 202
NIST SHA-3 competition
How it works
- Message bits are padded to a multiple of the rate.
- Blocks are XORed into the first part of the state and the Keccak-f permutation is applied.
- After the last block the output is squeezed from the state up to the digest length.
Security notes
Keccak is the SHA-3 winner and has been intensively analysed; no break of the full standard is known. This round archive is tiered unverified, and it does not implement the final FIPS 202 padding.
Typical uses
Variants in NextSSL
4| Algorithm | Tier | Sizes (bytes) | Standards | API |
|---|---|---|---|---|
| Keccak-224-Sha3r2 keccak-224-sha3r2 |
unverified | out 28 | — | root |
| Keccak-256-Sha3r2 keccak-256-sha3r2 |
unverified | out 32 | — | root |
| Keccak-384-Sha3r2 keccak-384-sha3r2 |
unverified | out 48 | — | root |
| Keccak-512-Sha3r2 keccak-512-sha3r2 |
unverified | out 64 | — | root |
Frequently asked questions
What is Keccak?
Keccak round 2 is the tweak of the Keccak sponge hash submitted to the second round of NIST's SHA-3 competition.
Is Keccak secure?
Keccak is the SHA-3 winner and has been intensively analysed; no break of the full standard is known.
What digest sizes does Keccak produce?
The archived Keccak variants are: keccak-224-sha3r2 gives 224-bit (28 bytes); keccak-256-sha3r2 gives 256-bit (32 bytes); keccak-384-sha3r2 gives 384-bit (48 bytes); keccak-512-sha3r2 gives 512-bit (64 bytes).
Which Keccak (SHA-3 round 2) variants does NextSSL include?
NextSSL registers 4 Keccak (SHA-3 round 2) variants: keccak-224-sha3r2, keccak-256-sha3r2, keccak-384-sha3r2, keccak-512-sha3r2.
Families with similar names
hash · 4 variants
hash · 4 variants
hash · 2 variants
hash · 4 variants
hash · 4 variants
hash · 4 variants
hash · 4 variants
hash · 4 variants
Other hash functions
All 424Related
The 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
cSHAKECustomisable SHAKE from SP 800-185, adding function-name and customisation strings
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