Cubehash-512-Sha3r2
CubeHash round 2: Bernstein's ARX sponge-like SHA-3 candidate, with 224 to 512-bit digests
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 Cubehash-512-Sha3r2
Cubehash-512-Sha3r2 is one of 4 CubeHash (SHA-3 round 2) variants in the NextSSL registry, a cryptographic hash function. It produces a 64-byte (512-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
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
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| out | 64 | Output |
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", "cubehash-512-sha3r2", None, b"abc")[0]
nextssl_root_hash_with("cubehash-512-sha3r2", NULL, data, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let digest = reg::hash_in(reg::all(), Policy::Any, "cubehash-512-sha3r2", &Params::new(), b"abc")?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Other CubeHash (SHA-3 round 2) variants
3Similar names
Looking for something else?More hash functions
All 424Frequently asked questions
What is Cubehash-512-Sha3r2?
Cubehash-512-Sha3r2 is a hash in the CubeHash (SHA-3 round 2) family. CubeHash is a SHA-3 candidate designed by Daniel J. Bernstein.
What are the Cubehash-512-Sha3r2 sizes?
In NextSSL, Cubehash-512-Sha3r2 uses: output 64 bytes.
Who designed Cubehash-512-Sha3r2 and when?
Cubehash-512-Sha3r2 belongs to the CubeHash (SHA-3 round 2) family, first published in 2008 by Daniel J. Bernstein. Its origin: NIST SHA-3 competition, round 2.
Is Cubehash-512-Sha3r2 safe to use?
Cubehash-512-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 CubeHash (SHA-3 round 2) variants are there?
NextSSL also registers cubehash-224-sha3r2, cubehash-256-sha3r2, cubehash-384-sha3r2 in the CubeHash (SHA-3 round 2) family.
Related families
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