Spoc-128
Sponge AEAD with masked capacity on sLiSCP-light; NIST LWC round 2
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 Spoc-128
Spoc-128 is one of 6 SpoC 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. 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
SpoC (Sponge with masked Capacity) is a lightweight authenticated cipher that injects message data into the capacity part of the state, allowing a smaller permutation for a given security level. It was a second-round candidate in the NIST Lightweight Cryptography process.
SpoC-64 uses the 192-bit sLiSCP-light permutation and SpoC-128 uses the 256-bit version. The mode masks part of the capacity with data rather than the rate, which changes the security argument and lets the state stay small.
NextSSL implements SpoC-128 (128-bit tag) and SpoC-64 (64-bit tag). 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
2018–2025NIST calls for lightweight AEAD and hashing designs
NIST Lightweight Cryptography projectSpoC published by Riham AlTawy, Guang Gong, Morgan He, Kalikinkar Mandal, Raghvendra Rohit
56 round-1 candidates accepted; 32 advance to round 2 in August
NIST Lightweight Cryptography projectTen 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. SpoC-64's 64-bit tag limits forgery resistance per attempt.
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 'unverified' is reachable from the root API only
key, nonce = root.random(16), root.random(16)
ct = root.call("aead_seal", "spoc-128", None, key, nonce, b"header", b"secret")[0] # ct || tag
pt = root.call("aead_open", "spoc-128", None, key, nonce, b"header", ct)[0]
nextssl_root_aead_seal("spoc-128", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_root_aead_open("spoc-128", 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, "spoc-128", &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 SpoC variants
5Similar names
Looking for something else?More authenticated encryption
All 392Frequently asked questions
What is Spoc-128?
Spoc-128 is an AEAD in the SpoC family. SpoC (Sponge with masked Capacity) is a lightweight authenticated cipher that injects message data into the capacity part of the state, allowing a smaller permutation for a given security level.
What are the Spoc-128 sizes?
In NextSSL, Spoc-128 uses: key 16 bytes, nonce 16 bytes, tag 16 bytes.
Who designed Spoc-128 and when?
Spoc-128 belongs to the SpoC family, first published in 2019 by Riham AlTawy, Guang Gong, Morgan He, Kalikinkar Mandal, Raghvendra Rohit. Its origin: NIST LWC round 2.
Is Spoc-128 safe to use?
Spoc-128 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 SpoC variants are there?
NextSSL also registers spoc-64, spoc128sliscplight256v1, spoc128sliscplight256v1-lwc1, spoc64sliscplight192v1, spoc64sliscplight192v1-lwc1 in the SpoC family.
Related families
sLiSCP-light-style 320-bit permutation AEAD and hash; NIST LWC round 2
SPIXMonkeyDuplex AEAD on the sLiSCP-light-256 permutation; NIST LWC round 2
WAGEWelch-Gong based 259-bit permutation in a duplex mode; NIST LWC round 2
ACE HashACE Hash: an unverified hash in NextSSL's archive, carried for research and comparison