Small devices such as sensors, tags, medical wearables and industrial controllers often cannot afford AES in software, so teams ship weak home-grown schemes or no message authentication at all. NIST SP 800-232, published as a final standard on 13 August 2025, gives them an approved alternative: the Ascon family of authenticated encryption, hashing and extendable output functions. This guide explains what the standard contains, the exact parameters and usage limits it sets, when Ascon is the better choice than AES-GCM or ChaCha20-Poly1305, and the implementation traps that matter on microcontrollers: nonces, side channels, key storage and immature libraries. It is for embedded and IoT engineers and the product security teams who review their designs. For the general AEAD background, see the Authenticated Encryption and Block Cipher Modes Guide.
Key takeaways
- Four approved functions. SP 800-232 standardises Ascon-AEAD128, Ascon-Hash256, Ascon-XOF128 and Ascon-CXOF128, all built on one 320-bit permutation, so a single small core can provide encryption, integrity and hashing.
- 128-bit everything for the AEAD. Ascon-AEAD128 uses a 128-bit key, 128-bit nonce and 128-bit tag, and gives 128-bit security in the single-key setting when nonces are not repeated.
- Hard usage limits. No more than 2^54 bytes of input per key before rekeying, tags no shorter than 32 bits, and a fixed tag length for the lifetime of a key.
- Not a drop-in for old code. The NIST version switched to little-endian and changed initial values, so libraries built on the 2019 Ascon v1.2 submission produce different output.
- Not post-quantum key exchange. Ascon is symmetric; it does not replace ML-KEM or post-quantum signatures, and the standard makes no quantum-specific claims.
Why lightweight cryptography exists
NIST began studying cryptography for constrained environments in 2013, because its existing standards performed poorly on devices with a few kilobytes of RAM, small flash, low clock speeds and tight energy budgets. On those parts, AES without hardware acceleration needs lookup tables or bitsliced code, GCM needs a carry-less multiply that most small cores lack, and a separate hash function adds more code. Each primitive also brings its own side-channel exposure.
The design goal was a family that covers AEAD and hashing from one compact building block, is cheap in hardware gates and in software cycles, and is easier to protect against power analysis. Typical uses are:
- Sensor telemetry: short, frequent messages over LoRaWAN, BLE, Zigbee or proprietary radio where per-message overhead and battery life matter. See the LoRaWAN Security Guide.
- RFID, NFC and smart tags: very small gate budgets in hardware. See the Bluetooth, RFID and NFC Security Guide.
- Firmware and configuration integrity: hashing images or settings on a bootloader that has no SHA-2 hardware.
- Automotive and industrial buses: authenticating frames on controllers with tight latency and cost limits.
The NIST selection process and SP 800-232
| Milestone | Date | Detail |
|---|---|---|
| Project start | 2013 | Study of constrained-environment cryptography, two workshops |
| Call for algorithms | 2018 | AEAD with optional hashing |
| Round 1 | 2019 | 57 submissions; 32 advanced to Round 2 |
| Finalists | March 2021 | 10 finalists |
| Selection | 7 February 2023 | Ascon family selected (reported in NIST IR 8454, June 2023) |
| Initial public draft | 8 November 2024 | SP 800-232 ipd |
| Final standard | 13 August 2025 | SP 800-232 Final, "Ascon-Based Lightweight Cryptography Standards for Constrained Devices" |
NIST has said it is considering a dedicated Ascon-based message authentication code and a variable-output pseudorandom function for a future standard; until then, use the AEAD with empty plaintext or the XOF with careful domain separation where a MAC-like function is needed, and check NIST's project page for updates.
The final standard differs from the Ascon v1.2 submission in ways that break interoperability:
- Byte order: switched from big-endian to little-endian to suit little-endian microcontrollers.
- Naming and base variant: Ascon-AEAD128 is based on the former Ascon-128a; Ascon-Hash256 on Ascon-Hash; Ascon-XOF128 on Ascon-XOF; Ascon-CXOF128 is new.
- Initial values: updated, and tag truncation and nonce masking options were added.
Ascon algorithms: AEAD, hash and XOF
| Function | Purpose | Key parameters | Security strength (SP 800-232) | Notes |
|---|---|---|---|---|
| Ascon-AEAD128 | Authenticated encryption with associated data | 128-bit key, 128-bit nonce, 128-bit tag (truncatable to no less than 32 bits); rate 128 bits; Ascon-p[12] for initialisation and finalisation, Ascon-p[8] for data | 128 bits single key, nonce respecting; 128 minus log2(u) bits across u keys | Nonce masking variant uses a 256-bit key to restore 128-bit multi-key security |
| Ascon-Hash256 | Fixed-length hash | 256-bit digest; rate 64 bits | 128 bits for collision, preimage and second preimage | Approved as a hash; not approved for use within HMAC |
| Ascon-XOF128 | Extendable output function | Caller chooses output length L | Collision min(L/2, 128); preimage min(L, 128) | Shorter outputs are prefixes of longer ones, so separate domains if that matters; not approved as a hash or in HMAC |
| Ascon-CXOF128 | Customised XOF | Customisation string up to 2048 bits (256 bytes) | As Ascon-XOF128 | Use the customisation string for domain separation between protocol uses |
Usage rules for Ascon-AEAD128 that belong in your design review:
- Nonces shall be distinct for each encryption under a given key. Reuse can expose plaintext, and across many keys can enable key recovery, which breaks integrity too. The design tolerates limited accidental reuse better than GCM, but treat that as a safety margin, not a licence.
- Rekey at the data limit. Total input per key, including nonces, shall not exceed 2^54 bytes; a key update is required at that point.
- Tag length: at least 32 bits; anything under 64 bits needs a documented risk analysis, and the length stays fixed for the key's lifetime.
- Decryption failures: with tags of 64 bits or more, up to 2^(tag length minus 32) failures may be tolerated per key; with shorter tags, plan for one failure unless a risk analysis supports more. In practice, count failures and rekey or lock out.
- Release nothing before verification. The decryption algorithm returns plaintext only when the tag matches; streaming APIs that hand back plaintext early undo that.
When to use Ascon versus AES-GCM
The live AES-GCM vs ChaCha20-Poly1305 guide covers the two mainstream ciphers in depth. The table below adds Ascon to that comparison.
| Factor | Ascon-AEAD128 | AES-GCM | ChaCha20-Poly1305 |
|---|---|---|---|
| Specification | NIST SP 800-232 (Final, 2025) | NIST SP 800-38D (2007; NIST has decided to revise it) | IETF RFC 8439 (Informational) |
| Key / nonce / tag | 128 / 128 / 128 bits | 128, 192 or 256 / 96 bits recommended / up to 128 bits | 256 / 96 / 128 bits |
| Best platform | Small MCUs and low-gate hardware without AES acceleration | CPUs and SoCs with AES and carry-less multiply instructions | General-purpose CPUs without AES hardware |
| Nonce misuse | Limited tolerance, still shall not repeat | Reuse is catastrophic for integrity and confidentiality | Reuse reveals XOR of plaintexts and the one-time MAC key |
| Hashing from same core | Yes (Hash256, XOF, CXOF) | No, needs SHA-2 or SHA-3 | No |
| Side-channel hardening | No lookup tables; masked hardware designs published | Needs AES-NI or constant-time bitsliced code | Add, rotate, XOR design is straightforward to make constant time |
| Ecosystem | Young; check library versions | Universal, TLS, IPsec, cloud KMS | Widespread in TLS 1.3, WireGuard, SSH |
Choose Ascon when the device lacks AES hardware, code size or energy per message is the binding constraint, you need hashing as well as AEAD from one core, and both ends of the channel are under your control (device to gateway, device to your own backend). Choose AES-GCM when the hardware accelerates it, you must interoperate with TLS, IPsec or cloud key services, or a certification scheme lists AES explicitly. Choose ChaCha20-Poly1305 for general-purpose CPUs without AES instructions that need standard protocol support. A common pattern is Ascon on the constrained link, with the gateway terminating it and re-encrypting into TLS for the backhaul.
Small versus large organisations: a small product team should only adopt Ascon where the constraint is real and a maintained library exists for its toolchain. A large manufacturer with silicon or firmware teams can justify an in-house hardened implementation and its own test vectors and validation work.
Implementation and side-channel considerations
SP 800-232 contains no section on side-channel or fault attacks, so that work falls to the implementer. Constrained devices are exactly the targets an attacker can hold, probe and glitch. See the Side-Channel Attacks Guide.
- Power and EM analysis: the permutation has no secret-indexed tables, which removes cache timing issues, but unprotected software still leaks through power. Where an attacker can get physical access and keys are shared across a fleet, use a masked implementation; the Ascon team lists domain-oriented masking hardware designs and a RISC-V co-processor whose protection option roughly doubles cycles per byte, from about 2 to about 4.
- Fault injection: glitching the tag comparison can bypass authentication. Compare tags in constant time and verify twice, or use hardware with fault detection.
- Nonce generation: on devices without a good random source, use a persistent counter stored in non-volatile memory and committed before use, so a power cut cannot roll it back. Random 128-bit nonces are fine only with a vetted generator.
- Key storage: keep keys in a secure element, TrustZone or OTP fuses rather than plain flash. Use a unique key per device so one extraction does not compromise the fleet, which also reduces the multi-key penalty. Provision keys through your device identity process; see the Device and IoT Identity Guide.
- Key rotation: design a rekey path before the 2^54 byte limit, before the decryption failure limit, and on ownership transfer. Document it in your key management policy; see the Cryptographic Key Management Policy Template.
- Library maturity: the Ascon team warns that some third-party implementations follow the submitted version rather than the NIST version. Check every library against the official SP 800-232 test vectors, confirm it is little-endian Ascon-AEAD128 rather than Ascon-128 or Ascon-128a, and pin the version. The PyPI pyascon package is not maintained by the Ascon team.
- Validation scope: if a customer requires FIPS 140-3, confirm whether your cryptographic module's validation covers Ascon before you promise it. See the FIPS 140-3 and Cryptographic Module Validation Guide.
Rollout steps
- Profile: measure cycles, code size, RAM and energy per message for AES-GCM (or AES-CCM) and Ascon on the target part.
- Select and pin a library: run SP 800-232 known-answer tests in CI on the target toolchain.
- Define parameters: tag length (128 bits unless a written analysis says otherwise), nonce scheme, per-device keys, rekey triggers and associated data contents (device ID, message type, sequence).
- Dual-stack pilot: let the gateway accept both the old scheme and Ascon for a pilot ring of devices, keyed by a protocol version field.
- Test hostile conditions: power-cut during nonce update, replayed and truncated frames, glitched tag checks on a lab board.
- Roll out by firmware ring and keep the old path available until the fleet confirms; roll back by flipping the version field at the gateway.
Ascon and post-quantum planning
Ascon is a symmetric primitive. SP 800-232 makes no statement about quantum attacks, so do not describe Ascon as "post-quantum" or "quantum-safe" in product claims. What changes under a quantum threat is mainly public-key cryptography: the key exchange and signatures used to provision devices, sign firmware and set up sessions. Those move to ML-KEM and post-quantum signatures, which Ascon does not replace. A device can use Ascon for its data channel and still depend on classical ECDH or ECDSA for onboarding and updates, and that is where the migration work lies. See the ML-KEM Guide and the Post-Quantum Cryptography Migration Guide.
Detection, measurement and failure patterns
- Monitor: tag verification failures per device and per key at the gateway, nonce or counter regressions, frames with unknown protocol versions, and devices approaching rekey thresholds.
- Metrics: share of fleet on the SP 800-232 implementation; devices with unique keys; mean bytes per key against the 2^54 limit; tag failure rate per million frames; percentage of releases passing known-answer tests in CI.
- Failure: pre-standard library. A library implementing Ascon-128 or big-endian v1.2 interoperates with nothing that follows the standard, and the mismatch often shows up only in the field.
- Failure: counter reset on reboot. Nonce counters kept in RAM, or written after use, repeat after a brown-out.
- Failure: one key for the fleet. A single extracted key decrypts and forges for every device.
- Failure: aggressive tag truncation. Cutting tags to 32 bits to save airtime, without a failure limit, makes forgery practical over time.
- Failure: quantum-safe marketing. Labelling a product quantum-safe because it uses Ascon, while onboarding still uses classical key exchange.
Framework mapping
| Control area | NIST CSF 2.0 | NIST SP 800-53 Rev 5 | ISO/IEC 27001:2022 Annex A |
|---|---|---|---|
| Protect data on the device and over the link | PR.DS-01, PR.DS-02 | SC-8, SC-13 | A.8.24 Use of cryptography |
| Key generation, storage and rotation | PR.DS-01 | SC-12 | A.8.24 Use of cryptography |
| Library and supplier assurance | GV.SC-05 | SR-6 | A.5.21 Managing information security in the ICT supply chain |
| Monitoring tag failures and anomalies | DE.CM-09 | AU-2 | A.8.16 Monitoring activities |
Practitioner checklist
- Confirm the device genuinely lacks efficient AES before choosing Ascon.
- Use Ascon-AEAD128 from a library verified against SP 800-232 test vectors, version pinned.
- Keep 128-bit tags unless a written risk analysis justifies shorter, and never go below 32 bits.
- Generate nonces from a persistent, power-fail-safe counter or a vetted random source.
- Provision a unique key per device in protected storage.
- Build rekeying for the 2^54 byte limit, decryption failure limits and ownership change.
- Use masked implementations where attackers can obtain devices and keys matter.
- Use Ascon-CXOF128 customisation strings or explicit domain separation for different protocol uses.
- Keep post-quantum planning separate: Ascon does not change onboarding or firmware signing.
Standards and references
- NIST: SP 800-232 Ascon-Based Lightweight Cryptography Standards for Constrained Devices
- NIST: SP 800-232 full text (PDF)
- NIST: Lightweight Cryptography project
- NIST: IR 8454 Status Report on the Final Round of the Lightweight Cryptography Standardization Process
- NIST: SP 800-38D Galois/Counter Mode (GCM) and GMAC
- IETF: RFC 8439 ChaCha20 and Poly1305 for IETF Protocols
- Ascon team, Graz University of Technology: Ascon implementations
Related NHI Mgmt Group resources: Embedded Device Security Guide · IoT Security Guide · Cryptography Basics Guide · Encryption and Key Management Requirements Map