Hash functions

Cubehash-384-Sha3r2

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

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 Cubehash-384-Sha3r2

Cubehash-384-Sha3r2 is one of 4 CubeHash (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

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

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", "cubehash-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 CubeHash (SHA-3 round 2) variants

3

Frequently asked questions

What is Cubehash-384-Sha3r2?

Cubehash-384-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-384-Sha3r2 sizes?

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

Who designed Cubehash-384-Sha3r2 and when?

Cubehash-384-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-384-Sha3r2 safe to use?

Cubehash-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 CubeHash (SHA-3 round 2) variants are there?

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