CubeHash (SHA-3 round 2)
CubeHash round 2: Bernstein's ARX sponge-like SHA-3 candidate, with 224 to 512-bit digests
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–2015NIST announces a public competition for a new hash standard, SHA-3
NIST SHA-3 competitionCubeHash published by Daniel J. Bernstein
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
- The message is padded and absorbed into the state in blocks.
- Each block is XORed into the state and the ARX permutation is applied.
- 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
Variants in NextSSL
4| Algorithm | Tier | Sizes (bytes) | Standards | API |
|---|---|---|---|---|
| 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.
Families with similar names
Other hash functions
All 424Related
BLAKE round 2: the ChaCha-derived SHA-3 candidate tweak that led to the round 3 finalist
BLAKE3A Merkle-tree hash over BLAKE2s rounds, designed for parallel speed and unlimited output
Keccak (SHA-3 round 2)Keccak round 2: the sponge-based SHA-3 candidate tweak that led to the round 3 finalist
SHA-3 and KeccakThe Keccak sponge, standardised by NIST in FIPS 202 as a structural alternative to SHA-2
Skein (SHA-3 round 2)Skein round 2: the Threefish-based SHA-3 candidate tweak with 224 to 512-bit digests
BLAKE3A Merkle-tree hash over BLAKE2s rounds, designed for parallel speed and unlimited output