Hash functions

Keccak-384-Sha3r2

Keccak round 2: the sponge-based SHA-3 candidate tweak that led to the round 3 finalist

unverified Root API only
Unverified tier.

Source found and wired, correctness not fully proven. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.

About Keccak-384-Sha3r2

Keccak-384-Sha3r2 is one of 4 Keccak (SHA-3 round 2) variants in the NextSSL registry, a cryptographic hash function. It produces a 48-byte (384-bit) output. NextSSL lists it in the unverified tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).

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–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

Sizes

FieldBytesMeaning
out48Output

Use it

from nextssl_demo import NextSSL

root = NextSSL(root=True)   # tier 'unverified' is reachable from the root API only
digest = root.call("hash_with", "keccak-384-sha3r2", None, b"abc")[0]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Other Keccak (SHA-3 round 2) variants

3

Frequently asked questions

What is Keccak-384-Sha3r2?

Keccak-384-Sha3r2 is a hash in the Keccak (SHA-3 round 2) family. Keccak round 2 is the tweak of the Keccak sponge hash submitted to the second round of NIST's SHA-3 competition.

What are the Keccak-384-Sha3r2 sizes?

In NextSSL, Keccak-384-Sha3r2 uses: output 48 bytes.

Who designed Keccak-384-Sha3r2 and when?

Keccak-384-Sha3r2 belongs to the Keccak (SHA-3 round 2) family, first published in 2008 by Guido Bertoni, Joan Daemen, Michaël Peeters, Gilles Van Assche. Its origin: NIST SHA-3 competition, round 2.

Is Keccak-384-Sha3r2 safe to use?

Keccak-384-Sha3r2 is in the unverified tier. Source found and wired, correctness not fully proven. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).

What other Keccak (SHA-3 round 2) variants are there?

NextSSL also registers keccak-224-sha3r2, keccak-256-sha3r2, keccak-512-sha3r2 in the Keccak (SHA-3 round 2) family.