Subterraneanv1-Hash
A hardware-oriented duplex with a 257-bit state; a NIST LWC second-round candidate
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–2025Original Subterranean design by Joan Daemen
NIST calls for lightweight AEAD and hashing designs
NIST Lightweight Cryptography projectSubterranean 2.0 submitted to NIST Lightweight Cryptography
Ten finalists announced
NIST Lightweight Cryptography projectAscon selected as the lightweight standard
NIST Lightweight Cryptography projectAscon 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
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| out | 32 | 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", "subterraneanv1-hash", None, b"abc")[0]
nextssl_root_hash_with("subterraneanv1-hash", NULL, data, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let digest = reg::hash_in(reg::all(), Policy::Any, "subterraneanv1-hash", &Params::new(), b"abc")?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Other Subterranean 2.0 variants
1Similar names
Looking for something else?More hash functions
All 424Frequently 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.
Related families
Cyclist-mode AEAD and hash on the Xoodoo permutation; NIST LWC finalist
SHA-3 and KeccakThe Keccak sponge, standardised by NIST in FIPS 202 as a structural alternative to SHA-2
XoodyakA NIST LWC finalist using the 384-bit Xoodoo permutation in the Cyclist duplex mode
SHA-3 and KeccakThe Keccak sponge, standardised by NIST in FIPS 202 as a structural alternative to SHA-2