Subterranean
Hardware-friendly 257-bit permutation duplex for AEAD and hashing; NIST LWC round 2
Experimental or unclassified. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.
About Subterranean
Subterranean is one of 2 Subterranean 2.0 variants in the NextSSL registry, an authenticated encryption (AEAD) scheme. It uses a 16-byte (128-bit) key, a 16-byte nonce and a 16-byte (128-bit) authentication tag. Its registry entry cites Subterranean 2.0 (NIST LWC round 2). NextSSL lists it in the research tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).
Overview
Subterranean 2.0 is a lightweight cipher suite built around a 257-bit round function used in a duplex object for authenticated encryption, hashing and XOF. It was a second-round candidate in the NIST Lightweight Cryptography process.
The Subterranean round function combines a chi-like nonlinear layer, theta-like mixing and bit permutations over a 257-bit state, and the duplex absorbs and squeezes only 32 bits per round. This gives very compact hardware at the cost of slow software.
NextSSL implements Subterranean-SAE with a 128-bit key, nonce and tag. The same object supports keyed hashing and an extendable-output function, so one compact core covers several functions. Second-round candidates were evaluated by NIST on security, hardware and software performance and side-channel properties; ten were chosen as finalists in 2021, and Ascon was selected in 2023.
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
Requires unique nonces. Software performance is poor, and the design received less analysis than the finalists.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 16 | Secret key |
| nonce | 16 | Nonce / IV |
| tag | 16 | Authentication tag |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'research' is reachable from the root API only
key, nonce = root.random(16), root.random(16)
ct = root.call("aead_seal", "subterranean", None, key, nonce, b"header", b"secret")[0] # ct || tag
pt = root.call("aead_open", "subterranean", None, key, nonce, b"header", ct)[0]
nextssl_root_aead_seal("subterranean", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_root_aead_open("subterranean", NULL, key, nonce, aad, ct, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_aead_in(reg::all(), Policy::Any, "subterranean", &Params::new())?;
let ct = alg.seal(&key, &nonce, b"header", b"secret")?;
let pt = alg.open(&key, &nonce, b"header", &ct)?;
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 authenticated encryption
All 392Frequently asked questions
What is Subterranean?
Subterranean is an AEAD in the Subterranean 2.0 family. Subterranean 2.0 is a lightweight cipher suite built around a 257-bit round function used in a duplex object for authenticated encryption, hashing and XOF.
What are the Subterranean sizes?
In NextSSL, Subterranean uses: key 16 bytes, nonce 16 bytes, tag 16 bytes.
Who designed Subterranean and when?
Subterranean belongs to the Subterranean 2.0 family, first published in 2019 by Joan Daemen, Pedro Maat Costa Massolino, Alireza Mehrabi, Yann Rotella. Its origin: NIST LWC round 2.
Which standards define Subterranean?
Subterranean is referenced by Subterranean 2.0 (NIST LWC round 2).
Is Subterranean safe to use?
Subterranean is in the research tier. Experimental or unclassified. 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 subterraneanv1 in the Subterranean 2.0 family.