Hash functions

Asconhashabi32v12

NIST's lightweight standard: one 320-bit permutation for hashing, XOFs, MACs and AEAD

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 Asconhashabi32v12

Asconhashabi32v12 is a cryptographic hash function from the Ascon 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

Ascon is a family of lightweight cryptographic primitives built on a single 320-bit permutation. It was selected by NIST in 2023 as the lightweight cryptography standard and is specified in SP 800-232, which defines Ascon-AEAD128, Ascon-Hash256, Ascon-XOF128 and Ascon-CXOF128.

The Ascon permutation operates on five 64-bit words and applies rounds of constant addition, a 5-bit S-box layer applied in bit-sliced form, and a linear diffusion layer of XORed rotations on each word. The S-box is affine-equivalent to the chi map of Keccak, and the whole design is small in hardware and constant-time in software. Hashing and XOF modes use a sponge with a 64-bit rate and 256-bit capacity.

NextSSL carries the final SP 800-232 Ascon-Hash256, the pre-standard Ascon-Hash v1.2, Ascon-HashA v1.2 and Ascon-XOF/XOFA v1.2 (the 'A' variants use fewer permutation rounds per block for speed), 32-bit bit-interleaved implementations, the customisable Ascon-CXOF128, and Ascon-MAC and Ascon-PRF from the ascon-c reference code. The v1.2 and SP 800-232 hashes use different initial values, so their outputs differ.

Ascon was designed at TU Graz and selected for the CAESAR competition's lightweight portfolio in 2019 before winning the NIST process. Its small state makes it well suited to microcontrollers, RFID and embedded sensors where AES-GCM or SHA-2 are too costly. Its standardisation as SP 800-232 was completed in 2025 with minor changes from the competition version, mainly to initial values, byte ordering and the addition of the customisable XOF.

History

2013–2025
  1. CAESAR competition for authenticated encryption announced

    CAESAR competition
  2. Ascon published by Christoph Dobraunig, Maria Eichlseder, Florian Mendel, Martin Schläffer

  3. 57 first-round candidates published

    CAESAR competition
  4. Second round announced

    CAESAR competition
  5. Third round announced

    CAESAR competition
  6. Finalists announced

    CAESAR competition
  7. NIST calls for lightweight AEAD and hashing designs

    NIST Lightweight Cryptography project
  8. Final portfolio: Ascon, ACORN, AEGIS-128, Deoxys-II, COLM and OCB

    CAESAR competition
  9. 56 round-1 candidates accepted; 32 advance to round 2 in August

    NIST Lightweight Cryptography project
  10. Ten finalists announced

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

    NIST Lightweight Cryptography project
  12. Ascon published in NIST SP 800-232

    NIST Lightweight Cryptography project

How it works

  1. Initialise the 320-bit state with an IV for the mode
  2. Absorb 64-bit message blocks, applying the permutation after each
  3. Apply a finalisation permutation
  4. Squeeze 64 bits at a time until enough output is produced

Security notes

No practical attacks on full-round Ascon are known; published results break reduced-round versions only. As with any 128-bit-security design, Ascon-Hash256 offers 128-bit collision resistance. Only Ascon-Hash256, Ascon-CXOF128 and Ascon-MAC/PRF are tiered standard here; the v1.2 and bit-interleaved entries are unverified.

Typical uses

Hashing and authentication on microcontrollersLightweight AEAD in IoT protocolsDomain-separated XOF output (CXOF)

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", "asconhashabi32v12", 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 Asconhashabi32v12?

Asconhashabi32v12 is a hash in the Ascon family. Ascon is a family of lightweight cryptographic primitives built on a single 320-bit permutation.

What are the Asconhashabi32v12 sizes?

In NextSSL, Asconhashabi32v12 uses: output 32 bytes.

Who designed Asconhashabi32v12 and when?

Asconhashabi32v12 belongs to the Ascon family, first published in 2014 by Christoph Dobraunig, Maria Eichlseder, Florian Mendel, Martin Schläffer. Its origin: NIST LWC winner (SP 800-232); CAESAR lightweight portfolio.

Is Asconhashabi32v12 safe to use?

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