Skip to main content

Module ascon

Module ascon 

Source
Expand description

§Ascon lightweight cryptography (NIST SP 800-232)

Ascon is a family of authenticated encryption and hashing algorithms selected by NIST for constrained environments. This module provides the four NIST-standardized, little-endian variants:

  • AsconAead128 — authenticated encryption with associated data (AEAD)
  • AsconHash256 — 256-bit cryptographic hash function
  • AsconXof128 — extensible-output function (XOF)
  • AsconCxof128 — customizable XOF (accepts a customization string)

With optimized versions for both 32-bit and 64-bit CPUs.

§Usage limits

Per NIST SP 800-232 §4.3:

  • Max data per key: 2^54 bytes
  • Nonces must be distinct per key (up to 2^8 repetitions tolerated)
  • Tag lengths below 64 bits are discouraged; below 32 bits are not allowed

Structs§

AsconAead128
Ascon-AEAD128 authenticated encryption with associated data (NIST SP 800-232).
AsconCxof128
Ascon-CXOF128 customizable extensible-output function (NIST SP 800-232 §5.3).
AsconHash256
Ascon-Hash256 cryptographic hash function (NIST SP 800-232 §5.1).
AsconXof128
Ascon-XOF128 extensible-output function (NIST SP 800-232 §5.2).