Spook
Leakage-resistant AEAD on Clyde-128 and the Shadow permutation; 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 Spook
Spook is an authenticated encryption (AEAD) scheme. It uses a 32-byte (256-bit) key, a 16-byte nonce and a 16-byte (128-bit) authentication tag. It takes the parameter variant (default mu512). Its registry entry cites Spook (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
Spook is an authenticated cipher designed for leakage resistance: it uses a sponge built on the Shadow permutation for bulk processing and the Clyde-128 tweakable block cipher, which needs strong side-channel protection, only at the start and end. It was a second-round candidate in the NIST Lightweight Cryptography process.
Both primitives use LS-design principles with bitsliced S-boxes and table-based linear layers, making masked implementations efficient. The mode follows a leveled-implementation approach: only the key-derivation and tag-generation steps with Clyde must be heavily protected, while the sponge can run unprotected.
Instances are named by user model and permutation size: su (single-user) and mu (multi-user, with a public tweak) with 384-bit or 512-bit Shadow. NextSSL includes the round 2 Spook and Spook-su builds and the four version 2 instances. Version 2 changed constants in response to analysis of the first version in the multi-user setting.
History
2018–2025NIST calls for lightweight AEAD and hashing designs
NIST Lightweight Cryptography projectSpook published
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
Integrity holds under nonce misuse with leakage; confidentiality requires unique nonces. Use version 2 parameters.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 32 | Secret key |
| nonce | 16 | Nonce / IV |
| tag | 16 | Authentication tag |
Parameters
| Name | Type | Range | Default | Required |
|---|---|---|---|---|
| variant | enum | 0 – | mu512 | no |
Parameters are passed as a string, for example nextssl_mac("hmac", "hash=sha512", …). Omitted parameters take their declared default.
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'research' is reachable from the root API only
key, nonce = root.random(32), root.random(16)
ct = root.call("aead_seal", "spook", None, key, nonce, b"header", b"secret")[0] # ct || tag
pt = root.call("aead_open", "spook", None, key, nonce, b"header", ct)[0]
nextssl_root_aead_seal("spook", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_root_aead_open("spook", 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, "spook", &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 Spook variants
7Similar names
Looking for something else?More authenticated encryption
All 392Frequently asked questions
What is Spook?
Spook is an AEAD in the Spook family. Spook is an authenticated cipher designed for leakage resistance: it uses a sponge built on the Shadow permutation for bulk processing and the Clyde-128 tweakable block cipher, which needs strong side-channel protection, only at the start and end.
What are the Spook sizes?
In NextSSL, Spook uses: key 32 bytes, nonce 16 bytes, tag 16 bytes.
Who designed Spook and when?
Spook belongs to the Spook family, first published in 2019 by Davide Bellizia, Francesco Berti, Olivier Bronchain, Gaëtan Cassiers, Sébastien Duval, Chun Guo, Gregor Leander, Gaëtan Leurent, Itamar Levi, Charles Momin, Olivier Pereira, Thomas Peters, François-Xavier Standaert, Balazs Udvarhelyi, Friedrich Wiemer. Its origin: NIST LWC round 2.
Which standards define Spook?
Spook is referenced by Spook (NIST LWC round 2).
Is Spook safe to use?
Spook 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 Spook variants are there?
NextSSL also registers spook-su, spook128mu384v1, spook128mu384v1-lwc1, spook128mu512v1, spook128su384v1, spook128su384v1-lwc1 and more in the Spook family.