PHOTON-Beetle
Beetle sponge mode on the PHOTON-256 permutation; NIST LWC finalist
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–2025NIST calls for lightweight AEAD and hashing designs
NIST Lightweight Cryptography projectPHOTON-Beetle published
56 round-1 candidates accepted; 32 advance to round 2 in August
NIST Lightweight Cryptography projectTen finalists announced
NIST Lightweight Cryptography projectAscon selected as the lightweight standard
NIST Lightweight Cryptography projectAscon 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
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 16 | Secret key |
| nonce | 16 | Nonce / IV |
| tag | 16 | Authentication tag |
Parameters
| Name | Type | Range | Default | Required |
|---|---|---|---|---|
| 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]
nextssl_root_aead_seal("photon-beetle", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_root_aead_open("photon-beetle", NULL, key, nonce, aad, ct, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let alg = reg::new_aead_in(reg::all(), Policy::Any, "photon-beetle", &Params::new())?;
let ct = alg.seal(&key, &nonce, b"header", b"secret")?;
let pt = alg.open(&key, &nonce, b"header", &ct)?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Other PHOTON-Beetle variants
2Similar names
Looking for something else?More authenticated encryption
All 392Frequently 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.
Related families
Lightweight permutation-based AEAD; NIST lightweight standard (SP 800-232)
ElephantEncrypt-then-MAC with LFSR-masked permutations; NIST LWC finalist
ORANGEPHOTON-256 based authenticated encryption (ORANGE-Zest); NIST LWC round 2
AsconNIST's lightweight standard: one 320-bit permutation for hashing, XOFs, MACs and AEAD
ORANGE (Orangish hash)The hash mode of the ORANGE submission to the first round of the NIST lightweight process
AsconNIST's lightweight standard: one 320-bit permutation for hashing, XOFs, MACs and AEAD