Authenticated encryption

Photonbeetleaead128rate32v1

A lightweight AEAD combining the Beetle mode with the PHOTON permutation, in two rate variants

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

Photonbeetleaead128rate32v1 is one of 2 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 encryption design that combines the Beetle sponge-style mode with the PHOTON permutation. It was submitted to the NIST Lightweight Cryptography process. NextSSL carries two rate variants, both with 16-byte keys, nonces and tags.

PHOTON-Beetle pairs the Beetle authenticated encryption mode with the PHOTON lightweight permutation. Beetle is a sponge-style mode in which the permutation processes both the key-dependent state and each message block, which keeps the hardware footprint small. It was a candidate in the NIST Lightweight Cryptography process.

The two NextSSL variants differ in rate. The rate-128 variant absorbs 128 bits per permutation call, while the rate-32 variant absorbs 32 bits, which is slower but uses a narrower data path. Both variants use a 16-byte key, a 16-byte nonce and a 16-byte tag.

The unverified tier is the archive's review status. A NIST candidate label does not mean the scheme was standardised, so check the current NIST status before using it.

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

How it works

  1. The key and nonce are loaded into the PHOTON-based state.
  2. Associated data and plaintext are absorbed in blocks, with the permutation applied after each block.
  3. A 16-byte tag is squeezed from the state and checked before decryption output is released.

Security notes

Unverified in NextSSL. Permutation-based designs are commonly analysed in reduced-round form, so the full scheme should be treated as research material.

Typical uses

Lightweight AEAD research on constrained hardwareComparing sponge-style and block-cipher AEAD modesBenchmarking PHOTON-based designs

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", None, key, nonce, b"header", b"secret")[0]   # ct || tag
pt = root.call("aead_open", "photonbeetleaead128rate32v1", 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

1

Frequently asked questions

What is Photonbeetleaead128rate32v1?

Photonbeetleaead128rate32v1 is an AEAD in the PHOTON-Beetle family. PHOTON-Beetle is a lightweight authenticated encryption design that combines the Beetle sponge-style mode with the PHOTON permutation.

What are the Photonbeetleaead128rate32v1 sizes?

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

Who designed Photonbeetleaead128rate32v1 and when?

Photonbeetleaead128rate32v1 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 Lightweight Cryptography finalist.

Is Photonbeetleaead128rate32v1 safe to use?

Photonbeetleaead128rate32v1 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 photonbeetleaead128rate128v1 in the PHOTON-Beetle family.