Schwaemm256256v2
ARX permutation-based AEAD from the SPARKLE suite; NIST LWC finalist
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 Schwaemm256256v2
Schwaemm256256v2 is one of 11 Schwaemm (SPARKLE) variants in the NextSSL registry, an authenticated encryption (AEAD) scheme. It uses a 32-byte (256-bit) key, a 32-byte nonce and a 32-byte (256-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
Schwaemm is the authenticated-encryption member of the SPARKLE suite, built on the SPARKLE family of ARX permutations in a Beetle-like duplex mode. SPARKLE was a finalist in the NIST Lightweight Cryptography process.
The SPARKLE permutations operate on 256, 384 or 512-bit states and use Alzette, a 64-bit ARX-box made of additions, rotations and XORs, combined with a Feistel-like linear layer. ARX design gives fast, constant-time software on 8-bit to 64-bit processors.
Instances are named Schwaemm[rate]-[capacity]: Schwaemm256-128 is the primary member, with Schwaemm128-128, Schwaemm192-192 and Schwaemm256-256 as alternatives. NextSSL includes these and a version 2 Schwaemm256-128 build. The SPARKLE suite also defines the Esch hash functions on the same permutations.
History
2018–2025NIST calls for lightweight AEAD and hashing designs
NIST Lightweight Cryptography projectSchwaemm 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
Schwaemm requires unique nonces. ARX designs resist timing attacks naturally but need care for power analysis.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 32 | Secret key |
| nonce | 32 | Nonce / IV |
| tag | 32 | 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(32), root.random(32)
ct = root.call("aead_seal", "schwaemm256256v2", None, key, nonce, b"header", b"secret")[0] # ct || tag
pt = root.call("aead_open", "schwaemm256256v2", None, key, nonce, b"header", ct)[0]
nextssl_root_aead_seal("schwaemm256256v2", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_root_aead_open("schwaemm256256v2", 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, "schwaemm256256v2", &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 Schwaemm (SPARKLE) variants
10Similar names
Looking for something else?More authenticated encryption
All 392Frequently asked questions
What is Schwaemm256256v2?
Schwaemm256256v2 is an AEAD in the Schwaemm (SPARKLE) family. Schwaemm is the authenticated-encryption member of the SPARKLE suite, built on the SPARKLE family of ARX permutations in a Beetle-like duplex mode.
What are the Schwaemm256256v2 sizes?
In NextSSL, Schwaemm256256v2 uses: key 32 bytes, nonce 32 bytes, tag 32 bytes.
Who designed Schwaemm256256v2 and when?
Schwaemm256256v2 belongs to the Schwaemm (SPARKLE) family, first published in 2019 by Christof Beierle, Alex Biryukov, Luan Cardoso dos Santos, Johann Großschädl, Léo Perrin, Aleksei Udovenko, Vesselin Velichkov, Qingju Wang. Its origin: NIST LWC finalist.
Is Schwaemm256256v2 safe to use?
Schwaemm256256v2 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 Schwaemm (SPARKLE) variants are there?
NextSSL also registers schwaemm-128-128, schwaemm-192-192, schwaemm-256-256, schwaemm128128v1, schwaemm128128v2, schwaemm192192v1 and more in the Schwaemm (SPARKLE) family.
Related families
Lightweight permutation-based AEAD; NIST lightweight standard (SP 800-232)
ChaCha20-Poly1305ARX stream cipher with a one-time Poly1305 MAC; fast and constant-time in software
XoodyakCyclist-mode AEAD and hash on the Xoodoo permutation; NIST LWC finalist
AsconNIST's lightweight standard: one 320-bit permutation for hashing, XOFs, MACs and AEAD
XoodyakA NIST LWC finalist using the 384-bit Xoodoo permutation in the Cyclist duplex mode
AsconNIST's lightweight standard: one 320-bit permutation for hashing, XOFs, MACs and AEAD