Extendable-output functions

Ascon-Cxof128

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

standard Safe API

About Ascon-Cxof128

Ascon-Cxof128 is an extendable-output function (XOF) from the Ascon family. It takes the parameter custom. Its registry entry cites NIST SP 800-232 (Ascon-CXOF128). NextSSL lists it in the standard tier and exposes it through the safe API.

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. Specified in NIST SP 800-232

  13. 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

The registry declares no fixed sizes for this algorithm.

Parameters

NameTypeRangeDefaultRequired
custom bytes 0 – 256 — no

Parameters are passed as a string, for example nextssl_mac("hmac", "hash=sha512", …). Omitted parameters take their declared default.

Use it

from nextssl_demo import NextSSL

ns = NextSSL()              # safe API: safe and standard tiers
out = ns.call("xof", "ascon-cxof128", None, b"abc", 64)[0]   # any length

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

Frequently asked questions

What is Ascon-Cxof128?

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

Who designed Ascon-Cxof128 and when?

Ascon-Cxof128 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.

Which standards define Ascon-Cxof128?

Ascon-Cxof128 is referenced by NIST SP 800-232 (Ascon-CXOF128).

Is Ascon-Cxof128 safe to use?

Ascon-Cxof128 is in the standard tier. Standardised and sound. Reachable from the safe API. It can be called from the safe API.