Gimli24v1-Aead
Cross-platform 384-bit permutation in a duplex AEAD; 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 Gimli24v1-Aead
Gimli24v1-Aead is one of 2 Gimli variants in the NextSSL registry, 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. 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
Gimli is a 384-bit permutation designed to be fast and compact on platforms from 8-bit microcontrollers to vector CPUs and hardware, used here in a duplex authenticated-encryption mode. It was a second-round candidate in the NIST Lightweight Cryptography process.
The Gimli state is a 3x4 matrix of 32-bit words. Each of its 24 rounds applies an SP-box to each column, using shifts, rotations, AND, OR and XOR, followed by occasional small and big swaps of words and a round constant. Gimli-Cipher absorbs data at a 128-bit rate.
NextSSL implements Gimli-24-Cipher with a 256-bit key, 128-bit nonce and 128-bit tag. The submission also defines Gimli-Hash, and the permutation has been used outside the NIST process in lightweight protocol libraries. 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
2017–2025Gimli published
NIST calls for lightweight AEAD and hashing designs
NIST Lightweight Cryptography project56 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. Published distinguishers on the full Gimli permutation exist, though they do not translate into practical attacks on Gimli-Cipher as specified.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 32 | 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(32), root.random(16)
ct = root.call("aead_seal", "gimli24v1-aead", None, key, nonce, b"header", b"secret")[0] # ct || tag
pt = root.call("aead_open", "gimli24v1-aead", None, key, nonce, b"header", ct)[0]
nextssl_root_aead_seal("gimli24v1-aead", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_root_aead_open("gimli24v1-aead", 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, "gimli24v1-aead", &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 Gimli variants
1Similar names
Looking for something else?More authenticated encryption
All 392Frequently asked questions
What is Gimli24v1-Aead?
Gimli24v1-Aead is an AEAD in the Gimli family. Gimli is a 384-bit permutation designed to be fast and compact on platforms from 8-bit microcontrollers to vector CPUs and hardware, used here in a duplex authenticated-encryption mode.
What are the Gimli24v1-Aead sizes?
In NextSSL, Gimli24v1-Aead uses: key 32 bytes, nonce 16 bytes, tag 16 bytes.
Who designed Gimli24v1-Aead and when?
Gimli24v1-Aead belongs to the Gimli family, first published in 2017 by Daniel J. Bernstein, Stefan Kölbl, Stefan Lucks, Pedro Maat Costa Massolino, Florian Mendel, Kashif Nawaz, Tobias Schneider, Peter Schwabe, François-Xavier Standaert, Yosuke Todo, Benoît Viguier. Its origin: NIST LWC round 2.
Is Gimli24v1-Aead safe to use?
Gimli24v1-Aead 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 Gimli variants are there?
NextSSL also registers gimli in the Gimli family.
Related families
Lightweight permutation-based AEAD; NIST lightweight standard (SP 800-232)
KNOTBitsliced PRESENT-like permutation family in a duplex mode; NIST LWC round 2
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
KNOTA NIST LWC second-round family built on bit-sliced PRESENT-like permutations
XoodyakA NIST LWC finalist using the 384-bit Xoodoo permutation in the Cyclist duplex mode