Photonbeetleaead128rate32v1
A lightweight AEAD combining the Beetle mode with the PHOTON permutation, in two rate variants
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–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
How it works
- The key and nonce are loaded into the PHOTON-based state.
- Associated data and plaintext are absorbed in blocks, with the permutation applied after each block.
- 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
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| key | 16 | Secret key |
| nonce | 16 | Nonce / IV |
| tag | 16 | Authentication 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]
nextssl_root_aead_seal("photonbeetleaead128rate32v1", NULL, key, nonce, aad, pt, out); /* writes ct || tag */
nextssl_root_aead_open("photonbeetleaead128rate32v1", 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, "photonbeetleaead128rate32v1", &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
1Similar names
Looking for something else?More authenticated encryption
All 392Frequently 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.
Related families
Lightweight permutation-based AEAD; NIST lightweight standard (SP 800-232)
ISAPLeakage-resilient permutation-based AEAD designed against DPA; NIST LWC finalist
KNOT-128A 128-bit permutation-based AEAD from the KNOT family, submitted to NIST lightweight cryptography
PHOTON-BeetleBeetle sponge mode on the PHOTON-256 permutation; NIST LWC finalist
Schwaemm (SPARKLE)ARX permutation-based AEAD from the SPARKLE suite; NIST LWC finalist
AsconNIST's lightweight standard: one 320-bit permutation for hashing, XOFs, MACs and AEAD