Ascon-Cxof128
NIST's lightweight standard: one 320-bit permutation for hashing, XOFs, MACs and AEAD
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–2025CAESAR competition for authenticated encryption announced
CAESAR competitionAscon published by Christoph Dobraunig, Maria Eichlseder, Florian Mendel, Martin Schläffer
57 first-round candidates published
CAESAR competitionSecond round announced
CAESAR competitionThird round announced
CAESAR competitionFinalists announced
CAESAR competitionNIST calls for lightweight AEAD and hashing designs
NIST Lightweight Cryptography projectFinal portfolio: Ascon, ACORN, AEGIS-128, Deoxys-II, COLM and OCB
CAESAR competition56 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 projectSpecified in NIST SP 800-232
Ascon published in NIST SP 800-232
NIST Lightweight Cryptography project
How it works
- Initialise the 320-bit state with an IV for the mode
- Absorb 64-bit message blocks, applying the permutation after each
- Apply a finalisation permutation
- 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
Sizes
The registry declares no fixed sizes for this algorithm.
Parameters
| Name | Type | Range | Default | Required |
|---|---|---|---|---|
| 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
nextssl_xof("ascon-cxof128", NULL, data, 64, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_xof_in(reg::all(), Policy::Safe, "ascon-cxof128", &Params::new())?;
let out = alg.squeeze(b"abc", 64)?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Similar names
Looking for something else?More extendable-output functions
All 8Frequently 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.
Related families
Beetle sponge mode on the PHOTON-256 permutation; NIST LWC finalist
Schwaemm (SPARKLE)ARX permutation-based AEAD from the SPARKLE suite; NIST LWC finalist
XoodyakCyclist-mode AEAD and hash on the Xoodoo permutation; NIST LWC finalist
PHOTON-BeetleA NIST LWC finalist hash and AEAD built on the PHOTON-256 permutation
SHA-3 and KeccakThe Keccak sponge, standardised by NIST in FIPS 202 as a structural alternative to SHA-2
SPARKLE (Esch)A NIST LWC finalist family whose Esch hash uses the ARX-based SPARKLE permutation