Hash family

CubeHash (SHA-3 round 2)

CubeHash round 2: Bernstein's ARX sponge-like SHA-3 candidate, with 224 to 512-bit digests

unverified 4 variants NIST SHA-3 competition, round 2

Overview

CubeHash is a SHA-3 candidate designed by Daniel J. Bernstein. The round 2 version uses only add, rotate and XOR operations and is archived by NextSSL as unverified research code.

CubeHash is a sponge-like hash built on a 32-word state. Its permutation applies rounds of add, rotate and XOR operations to the state, with no tables and no branches, which keeps it simple to implement in constant time. NIST opened the SHA-3 competition in 2007 and narrowed the field over three rounds to five finalists. The round suffix in the variant id marks which submitted tweak the archived code follows, so rounds are not interchangeable.

The round 2 variant is archived at the output sizes 224, 256, 384 and 512-bit, and the entries are cubehash-224-sha3r2, cubehash-256-sha3r2, cubehash-384-sha3r2, cubehash-512-sha3r2. The archive keeps each output length as its own variant, which lets tests select a specific digest size. Because NextSSL records no independent review for this design, the entries serve research and test coverage rather than hash selection.

CubeHash was among the SHA-3 candidates that reached round 2. NextSSL marks the archive as unverified, so it is intended for comparison and research only. For production hashing, SHA-2 and the standardised SHA-3 functions remain the recommended choices. NIST opened the SHA-3 competition in 2007 and narrowed the field over three rounds to five finalists. The round suffix in the variant id marks which submitted tweak the archived code follows, so rounds are not interchangeable.

History

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

    NIST SHA-3 competition
  2. CubeHash published by Daniel J. Bernstein

  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. The message is padded and absorbed into the state in blocks.
  2. Each block is XORed into the state and the ARX permutation is applied.
  3. The output is squeezed from the final state, truncated to the requested size.

Security notes

No practical attack on CubeHash is recorded in NextSSL's data, but the archive is tiered unverified and no security claim is made.

Typical uses

Historical comparison of SHA-3 candidatesResearch into simple ARX constructionsNot recommended for production hashing

Variants in NextSSL

4
AlgorithmTierSizes (bytes)StandardsAPI
Cubehash-224-Sha3r2
cubehash-224-sha3r2
unverified out 28 — root
Cubehash-256-Sha3r2
cubehash-256-sha3r2
unverified out 32 — root
Cubehash-384-Sha3r2
cubehash-384-sha3r2
unverified out 48 — root
Cubehash-512-Sha3r2
cubehash-512-sha3r2
unverified out 64 — root

Frequently asked questions

What is CubeHash?

CubeHash is a SHA-3 candidate designed by Daniel J.

Is CubeHash secure?

No practical attack on CubeHash is recorded in NextSSL's data, but the archive is tiered unverified and no security claim is made.

What digest sizes does CubeHash produce?

The archived CubeHash variants are: cubehash-224-sha3r2 gives 224-bit (28 bytes); cubehash-256-sha3r2 gives 256-bit (32 bytes); cubehash-384-sha3r2 gives 384-bit (48 bytes); cubehash-512-sha3r2 gives 512-bit (64 bytes).

Which CubeHash (SHA-3 round 2) variants does NextSSL include?

NextSSL registers 4 CubeHash (SHA-3 round 2) variants: cubehash-224-sha3r2, cubehash-256-sha3r2, cubehash-384-sha3r2, cubehash-512-sha3r2.