Hash functions

Esch256v2

A NIST LWC finalist family whose Esch hash uses the ARX-based SPARKLE permutation

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 Esch256v2

Esch256v2 is a cryptographic hash function from the SPARKLE (Esch) 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

SPARKLE is a family of ARX-based permutations from the University of Luxembourg, used by the Schwaemm authenticated ciphers and the Esch hash functions. It was one of the ten finalists of the NIST Lightweight Cryptography process.

SPARKLE is built from Alzette, a 64-bit ARX-box that applies four rounds of addition, rotation and XOR to two 32-bit words under a round constant. Several Alzette instances run in parallel across the state, followed by a linear Feistel-like layer, an approach called the long trail strategy, which makes differential and linear bounds tractable for ARX designs. State sizes of 256, 384 and 512 bits are defined.

Esch256 uses SPARKLE384 and Esch384 uses SPARKLE512 in a sponge mode. NextSSL includes Esch256 from the SPARKLE v1.2 package, Esch384, and an esch256v2 entry wired from a benchmarking source; only the main Esch256 entry is tiered as research rather than unverified. The same team designed the Schwaemm authenticated ciphers on the same permutations, so one implementation can provide hashing and encryption.

History

2018–2025
  1. NIST calls for lightweight AEAD and hashing designs

    NIST Lightweight Cryptography project
  2. SPARKLE published

  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

No practical attacks on full SPARKLE are known. It was not selected as the NIST standard, which went to Ascon, so it is best regarded as a well-analysed research design.

Typical uses

Lightweight hashing on 32-bit microcontrollersResearch on ARX permutation design

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", "esch256v2", 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 Esch256v2?

Esch256v2 is a hash in the SPARKLE (Esch) family. SPARKLE is a family of ARX-based permutations from the University of Luxembourg, used by the Schwaemm authenticated ciphers and the Esch hash functions.

What are the Esch256v2 sizes?

In NextSSL, Esch256v2 uses: output 32 bytes.

Who designed Esch256v2 and when?

Esch256v2 belongs to the SPARKLE (Esch) 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 Lightweight Cryptography process finalist.

Is Esch256v2 safe to use?

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