Hash family

Keccak (SHA-3 round 1)

Keccak round 1: the sponge-based SHA-3 candidate before its later tweaks, archived as unverified code

unverified 4 variants NIST SHA-3 competition, round 1

Overview

Keccak round 1 is the first submission of the Keccak sponge hash, which later became SHA-3. NextSSL archives this round 1 version as unverified code, and its outputs do not match the standardised SHA-3 functions.

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 1 submission, which was revised for round 2 and later. NextSSL lists output sizes of 224, 256, 384 and 512-bit, and the registry entries are keccak-224-sha3r1, keccak-256-sha3r1, keccak-384-sha3r1, keccak-512-sha3r1. 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–2015
  1. NIST announces a public competition for a new hash standard, SHA-3

    NIST SHA-3 competition
  2. Keccak published by Guido Bertoni, Joan Daemen, Michaël Peeters, Gilles Van Assche

  3. 64 designs submitted; 51 accepted into round 1

    NIST SHA-3 competition
  4. 14 designs advance to round 2

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

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

    NIST SHA-3 competition
  7. SHA-3 published as FIPS 202

    NIST SHA-3 competition

How it works

  1. Message bits are padded to a multiple of the rate.
  2. Blocks are XORed into the first part of the state and the Keccak-f permutation is applied.
  3. 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

Comparison with standard SHA-3Research on sponge constructionsUse SHA3 from FIPS 202 for production

Variants in NextSSL

4
AlgorithmTierSizes (bytes)StandardsAPI
Keccak-224-Sha3r1
keccak-224-sha3r1
unverified out 28 — root
Keccak-256-Sha3r1
keccak-256-sha3r1
unverified out 32 — root
Keccak-384-Sha3r1
keccak-384-sha3r1
unverified out 48 — root
Keccak-512-Sha3r1
keccak-512-sha3r1
unverified out 64 — root

Frequently asked questions

What is Keccak?

Keccak round 1 is the first submission of the Keccak sponge hash, which later became SHA-3.

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-sha3r1 gives 224-bit (28 bytes); keccak-256-sha3r1 gives 256-bit (32 bytes); keccak-384-sha3r1 gives 384-bit (48 bytes); keccak-512-sha3r1 gives 512-bit (64 bytes).

Which Keccak (SHA-3 round 1) variants does NextSSL include?

NextSSL registers 4 Keccak (SHA-3 round 1) variants: keccak-224-sha3r1, keccak-256-sha3r1, keccak-384-sha3r1, keccak-512-sha3r1.