Authenticated encryption

PHOTON-Beetle

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

research Root API only
Research tier.

Experimental or unclassified. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.

About PHOTON-Beetle

PHOTON-Beetle is 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. It takes the parameter variant (default 128). Its registry entry cites PHOTON-Beetle (NIST LWC finalist). NextSSL lists it in the research 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

Parameters

NameTypeRangeDefaultRequired
variant enum 0 – 128 no

Parameters are passed as a string, for example nextssl_mac("hmac", "hash=sha512", …). Omitted parameters take their declared default.

Use it

from nextssl_demo import NextSSL

root = NextSSL(root=True)   # tier 'research' is reachable from the root API only
key, nonce = root.random(16), root.random(16)
ct = root.call("aead_seal", "photon-beetle", None, key, nonce, b"header", b"secret")[0]   # ct || tag
pt = root.call("aead_open", "photon-beetle", 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.

Frequently asked questions

What is PHOTON-Beetle?

PHOTON-Beetle 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 PHOTON-Beetle sizes?

In NextSSL, PHOTON-Beetle uses: key 16 bytes, nonce 16 bytes, tag 16 bytes.

Who designed PHOTON-Beetle and when?

PHOTON-Beetle 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.

Which standards define PHOTON-Beetle?

PHOTON-Beetle is referenced by PHOTON-Beetle (NIST LWC finalist).

Is PHOTON-Beetle safe to use?

PHOTON-Beetle is in the research tier. Experimental or unclassified. 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-lwc3, photonbeetleaead128rate32v1-lwc3 in the PHOTON-Beetle family.