Hash functions

Subterraneanv1-Hash

A hardware-oriented duplex with a 257-bit state; a NIST LWC second-round candidate

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 Subterraneanv1-Hash

Subterraneanv1-Hash is one of 2 Subterranean 2.0 variants in the NextSSL registry, a cryptographic hash function. It produces a 32-byte (256-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

Subterranean 2.0 is a cipher suite for hashing, MAC and authenticated encryption designed by Joan Daemen and colleagues for very compact hardware. It was submitted to the NIST Lightweight Cryptography process and reached the second round.

Subterranean's state is a 257-bit ring updated by a round function of four steps: a chi-like non-linear step, a theta-like linear step, a bit permutation and constant addition. Input is absorbed and output is extracted in 32-bit chunks through a duplex mode, and blank rounds separate phases. The odd state size and simple steps let the round run in a single clock cycle in hardware.

The design is a revision of the 1990s Subterranean hash and stream cipher by Daemen. NextSSL includes Subterranean-Hash wired from source and not yet verified. Its 32-bit absorption rate is very low for software but suits a single-cycle hardware datapath. Its designers presented it as a demonstration of how far a permutation can be simplified for hardware.

History

1992–2025
  1. Original Subterranean design by Joan Daemen

  2. NIST calls for lightweight AEAD and hashing designs

    NIST Lightweight Cryptography project
  3. Subterranean 2.0 submitted to NIST Lightweight Cryptography

  4. Ten finalists announced

    NIST Lightweight Cryptography project
  5. Ascon selected as the lightweight standard

    NIST Lightweight Cryptography project
  6. Ascon published in NIST SP 800-232

    NIST Lightweight Cryptography project

Security notes

No practical attacks on Subterranean 2.0 are known, though it is far less analysed than Keccak or Ascon. It was not selected as a finalist, and this entry is unverified.

Typical uses

Hardware-oriented lightweight hashing researchDuplex construction study

Sizes

FieldBytesMeaning
out32Output

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", "subterraneanv1-hash", None, b"abc")[0]

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

Other Subterranean 2.0 variants

1

Frequently asked questions

What is Subterraneanv1-Hash?

Subterraneanv1-Hash is a hash in the Subterranean 2.0 family. Subterranean 2.0 is a cipher suite for hashing, MAC and authenticated encryption designed by Joan Daemen and colleagues for very compact hardware.

What are the Subterraneanv1-Hash sizes?

In NextSSL, Subterraneanv1-Hash uses: output 32 bytes.

Who designed Subterraneanv1-Hash and when?

Subterraneanv1-Hash belongs to the Subterranean 2.0 family, first published in 2019 by Joan Daemen, Pedro Maat Costa Massolino, Alireza Mehrdad, Yann Rotella. Its origin: NIST Lightweight Cryptography process (round 2).

Is Subterraneanv1-Hash safe to use?

Subterraneanv1-Hash 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 Subterranean 2.0 variants are there?

NextSSL also registers subterranean-hash in the Subterranean 2.0 family.