Hash functions

Gimli24v1

A 384-bit permutation designed to be fast across hardware, microcontrollers and SIMD CPUs

unverified Root API only
Unverified tier.

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–2025
  1. Gimli published

  2. NIST calls for lightweight AEAD and hashing designs

    NIST Lightweight Cryptography project
  3. 56 round-1 candidates accepted; 32 advance to round 2 in August

    NIST Lightweight Cryptography project
  4. Ten finalists announced

    NIST Lightweight Cryptography project
  5. Ascon selected as the lightweight standard

    NIST Lightweight Cryptography project
  6. Ascon 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

Lightweight cryptography researchCross-platform permutation benchmarking

Sizes

FieldBytesMeaning
out32Output

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]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Frequently 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).