Authenticated encryption

Subterranean

Hardware-friendly 257-bit permutation duplex for AEAD and hashing; NIST LWC round 2

research Root API only
Research tier.

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–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

Requires unique nonces. Software performance is poor, and the design received less analysis than the finalists.

Typical uses

Very compact hardwareResearch on bit-oriented duplex constructions

Sizes

FieldBytesMeaning
key16Secret key
nonce16Nonce / IV
tag16Authentication 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]

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 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.