Skip to Content
oxcrypto

Ascon-AEAD128

Encrypt with Ascon-AEAD128 from NIST SP 800-232.

import os

from oxcrypto.aead.ascon_aead128 import ASCON_AEAD128

key = ASCON_AEAD128.ASCON_AEAD128.generate()
nonce = os.urandom(16)
sealed = key.encrypt(nonce, b"message", associated_data=b"header")
plaintext = key.decrypt(nonce, sealed, associated_data=b"header")

Variants: ASCON_AEAD128.

Keys, nonces and tags are 16 bytes. Truncated tags from SP 800-232 are not exposed.

StandardNIST SP 800-232 (final, August 2025).
Crateascon-aead 0.6.1 with the zeroize feature
MaturityStable release. No published audit.
MSRVBuilds with Rust 1.88.
Zeroizationascon-aead and ascon-core with zeroize are written to wipe the stored key words and the permutation state. oxcrypto has not verified this independently.
ExperimentalNo
Test vectorsWycheproof ascon_sp800_232_aead128_test.json