Authenticated encryption

Photonbeetleaead128rate32v1-LWC3

Beetle sponge mode on the PHOTON-256 permutation; NIST LWC finalist

unverified Root API only
Unverified tier.

Source found and wired, correctness not fully proven. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.

About Photonbeetleaead128rate32v1-LWC3

Photonbeetleaead128rate32v1-LWC3 is one of 3 PHOTON-Beetle variants in the NextSSL registry, an authenticated encryption (AEAD) scheme. It uses a 16-byte (128-bit) key, a 16-byte nonce and a 16-byte (128-bit) authentication tag. NextSSL lists it in the unverified tier and exposes it through the root API only (NextSSL(root=True) in Python, nextssl_root_* in C).

Overview

PHOTON-Beetle is a lightweight authenticated cipher that uses the Beetle mode with the PHOTON-256 permutation from the PHOTON hash family. It was a finalist in the NIST Lightweight Cryptography process.

Beetle is a sponge-based mode that adds a combined feedback function between the rate and the output, allowing a smaller capacity for a given security level than a plain duplex. PHOTON-256 is an AES-like permutation on a 256-bit state with 4-bit S-boxes and serial MDS matrices, chosen for low hardware area.

NextSSL implements PHOTON-Beetle-AEAD with a 128-bit key, nonce and tag. PHOTON-Beetle also defines a hash, PHOTON-Beetle-Hash, using the same permutation, so one hardware core serves both functions. Its main drawback is slow software, because PHOTON's serial MDS layer and 4-bit S-boxes map poorly onto general-purpose processors.

History

2018–2025
  1. NIST calls for lightweight AEAD and hashing designs

    NIST Lightweight Cryptography project
  2. PHOTON-Beetle published

  3. 56 round-1 candidates accepted; 32 advance to round 2 in August

    NIST Lightweight Cryptography project
  4. Ten finalists announced

    NIST Lightweight Cryptography project
  5. Ascon selected as the lightweight standard

    NIST Lightweight Cryptography project
  6. Ascon published in NIST SP 800-232

    NIST Lightweight Cryptography project

Security notes

Requires unique nonces. Software performance is low compared with other finalists, though security analysis did not find weaknesses in the full design.

Typical uses

Low-area hardwareDevices also needing a PHOTON-based hash

Sizes

FieldBytesMeaning
key16Secret key
nonce16Nonce / IV
tag16Authentication tag

Use it

from nextssl_demo import NextSSL

root = NextSSL(root=True)   # tier 'unverified' is reachable from the root API only
key, nonce = root.random(16), root.random(16)
ct = root.call("aead_seal", "photonbeetleaead128rate32v1-lwc3", None, key, nonce, b"header", b"secret")[0]   # ct || tag
pt = root.call("aead_open", "photonbeetleaead128rate32v1-lwc3", None, key, nonce, b"header", ct)[0]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Other PHOTON-Beetle variants

2

Frequently asked questions

What is Photonbeetleaead128rate32v1-LWC3?

Photonbeetleaead128rate32v1-LWC3 is an AEAD in the PHOTON-Beetle family. PHOTON-Beetle is a lightweight authenticated cipher that uses the Beetle mode with the PHOTON-256 permutation from the PHOTON hash family.

What are the Photonbeetleaead128rate32v1-LWC3 sizes?

In NextSSL, Photonbeetleaead128rate32v1-LWC3 uses: key 16 bytes, nonce 16 bytes, tag 16 bytes.

Who designed Photonbeetleaead128rate32v1-LWC3 and when?

Photonbeetleaead128rate32v1-LWC3 belongs to the PHOTON-Beetle family, first published in 2019 by Zhenzhen Bao, Avik Chakraborti, Nilanjan Datta, Jian Guo, Mridul Nandi, Thomas Peyrin, Kan Yasuda. Its origin: NIST LWC finalist.

Is Photonbeetleaead128rate32v1-LWC3 safe to use?

Photonbeetleaead128rate32v1-LWC3 is in the unverified tier. Source found and wired, correctness not fully proven. Root API only. It is only reachable through the root API (NextSSL(root=True) in Python, nextssl_root_* in C).

What other PHOTON-Beetle variants are there?

NextSSL also registers photon-beetle, photonbeetleaead128rate128v1-lwc3 in the PHOTON-Beetle family.