← Cryptography guide

K024 / Symmetric ciphers (block and stream)

Ascon

Ascon lightweight cryptography NIST · Survey date 2026-12-05

Ascon is a lightweight cryptographic family offering AEAD, hashing and XOFs for constrained devices.

CRYPTOGRAPHY LAB / K024

Cryptography Lab · Ascon

Run real computations and inspect intermediate states step by step.

Educational only. Never enter real passwords or secret keys. Computation stays in your browser; input and trace values are not sent to a server. Do not use this implementation in production.

Scope: Limited implementation

Ascon-Hash256 (SP 800-232; hash only, no AEAD)

See the scope above for fixed examples, reduced parameters and supported variants. Standard operation names and formulas are retained.

Reference ↗

Open lab →

Definition and overview
Ascon is a lightweight cryptographic family offering AEAD, hashing and XOFs for constrained devices. Source document ↗
Classification and reversibility
AEAD supports authenticated encryption/decryption; Ascon also includes hashes and XOFs. Source document ↗
Key or secret requirements
AEAD key length is 128 or 160 bits depending on version. Source document ↗
Operating principle and structure
Sponge/duplex construction updates a 320-bit state with permutations pa/pb of differing round counts. Source document ↗
Key size, block size and parameters
Ascon-128/128a use 64/128-bit data blocks respectively; key, nonce and tag are 128 bits. Source document ↗
Security strength and recommendation
AEAD provides 128-bit security in the single-key setting and is recommended as a NIST standard. Source document ↗
Known attacks and vulnerabilities
Research reports attacks on reduced rounds and nonce-misuse conditions. Source document ↗
Standards and certification
Standardized in NIST SP 800-232. Source document ↗
Typical uses
Suited to resource-constrained embedded IoT, sensors and RFID. Source document ↗
Implementations, libraries and tools
ascon-c reference/optimized implementations, LibAscon and pyascon. Source document ↗
Decryption or decoding
Decrypt with the same key, nonce and associated data; discard on tag verification failure. Source document ↗
Advantages
Designed for efficiency in constrained environments. Source document ↗
Limitations and cautions
Standard and submission-candidate implementations may be incompatible; choose versions carefully. Source document ↗
Distinguishing encryption, encoding and hashing
Ascon provides AEAD, hash and XOF, not Base64/URL encoding. AEAD is decrypted with a key; hash/XOF has no decryption. Source document ↗

Practical examples

Examples are illustrative; they are not execution-tested implementations or operational recommendations.

Example

AEAD takes message, associated data, key and nonce to produce ciphertext/tag; verify and decrypt with the same inputs. Hash/XOF produces fixed or variable-length output with no decryption.

Procedure

Prepare key/nonce, supply message/associated data and store ciphertext/tag. Decrypt with the same parameters, verify tag and discard on failure. Hash/XOF maps input to digest/output without decryption. Base64 is keyless reversible encoding.

Scenario

Constrained sensors/RFID encrypt and authenticate short messages to gateways; verify firmware integrity using Ascon-Hash256/XOF. Choose standard-compatible implementations and securely manage keys/nonces per device.

Pitfalls and alternatives

Avoid nonce reuse, mixing standard and candidate versions, unprotected side-channel implementations and confusing Base64 with encryption. Use SP 800-232 implementations, strict system-level key/nonce management and mandatory tag-failure handling.

References