Gimli24v1
A 384-bit permutation designed to be fast across hardware, microcontrollers and SIMD CPUs
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
Gimli24v1 is a cryptographic hash function from the Gimli family. It produces a 32-byte (256-bit) output. 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 cryptographic permutation published in 2017 by Daniel J. Bernstein and co-authors, together with hash and authenticated-encryption modes. It was submitted to the NIST Lightweight Cryptography process and reached the second round.
Gimli's state is 384 bits, arranged as a 3x4 matrix of 32-bit words. Each of its 24 rounds applies a non-linear SP-box to each column, using shifts, rotations, AND, OR and XOR, followed every second or fourth round by small swaps of words between columns and a round constant. The design deliberately avoids large S-boxes and tables so that it performs well on very different platforms.
Gimli-Hash uses the permutation in a sponge with a 128-bit rate. NextSSL includes a gimli24-hash entry and a gimli24v1 entry wired from benchmarking sources. Gimli was integrated into some libraries during the competition, notably libhydrogen. The distinguishers found against it encouraged the community to look harder at the security margins of small permutations designed primarily for speed.
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
Cryptanalysis published during the NIST process found distinguishers and attacks on reduced-round and full-round variants of the permutation with high complexity, and Gimli did not become a finalist. It should be regarded as a research design.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| out | 32 | Output |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'unverified' is reachable from the root API only
digest = root.call("hash_with", "gimli24v1", None, b"abc")[0]
nextssl_root_hash_with("gimli24v1", NULL, data, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let digest = reg::hash_in(reg::all(), Policy::Any, "gimli24v1", &Params::new(), b"abc")?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Similar names
Looking for something else?More hash functions
All 424Frequently asked questions
What is Gimli24v1?
Gimli24v1 is a hash in the Gimli family. Gimli is a cryptographic permutation published in 2017 by Daniel J. Bernstein and co-authors, together with hash and authenticated-encryption modes.
What are the Gimli24v1 sizes?
In NextSSL, Gimli24v1 uses: output 32 bytes.
Who designed Gimli24v1 and when?
Gimli24v1 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 Lightweight Cryptography process (round 2).
Is Gimli24v1 safe to use?
Gimli24v1 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).
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