Gimli
A 384-bit permutation designed to be fast across hardware, microcontrollers and SIMD CPUs
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
Variants in NextSSL
1| Algorithm | Tier | Sizes (bytes) | Standards | API |
|---|---|---|---|---|
| Gimli24-Hash gimli24-hash |
unverified | out 32 | — | root |
Frequently asked questions
Which Gimli variants does NextSSL include?
NextSSL registers 1 Gimli variant: gimli24-hash.
Families with similar names
Other hash functions
All 424Related
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