PHOTON-Beetle-Hash
A NIST LWC finalist hash and AEAD built on the PHOTON-256 permutation
Experimental or unclassified. Root API only. Reach it with NextSSL(root=True) in Python or the nextssl_root_* functions in C.
About PHOTON-Beetle-Hash
PHOTON-Beetle-Hash is a cryptographic hash function from the PHOTON-Beetle family. It produces a 32-byte (256-bit) output. 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 family of lightweight authenticated encryption and hashing algorithms that was one of the ten NIST Lightweight Cryptography finalists. It combines the PHOTON permutation, published in 2011, with the Beetle mode of operation.
The PHOTON-256 permutation operates on an 8x8 matrix of 4-bit cells with twelve AES-like rounds: constant addition, a 4-bit S-box, row shifting and serial MDS column mixing. Its small cells and serialisable mixing make it compact in hardware. The hash, PHOTON-Beetle-Hash, absorbs an initial 128-bit block and subsequent 32-bit blocks into the 256-bit state, producing a 256-bit digest.
NextSSL includes PHOTON-Beetle-Hash from the finalist package and a photonbeetlehash256rate32 entry wired from a benchmarking source, which encodes the 256-bit output and 32-bit rate in its name. The Beetle mode adds a combined feedback function for AEAD, but the hash uses a plain sponge. PHOTON-256 is also the permutation inside some other first-round lightweight candidates.
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
No practical attacks on full PHOTON-256 or PHOTON-Beetle are known. Its 32-bit rate makes hashing slow in software, and it was not selected as the NIST standard.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| out | 32 | Output |
Use it
from nextssl_demo import NextSSL
root = NextSSL(root=True) # tier 'research' is reachable from the root API only
digest = root.call("hash_with", "photon-beetle-hash", None, b"abc")[0]
nextssl_root_hash_with("photon-beetle-hash", NULL, data, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let digest = reg::hash_in(reg::all(), Policy::Any, "photon-beetle-hash", &Params::new(), b"abc")?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Similar names
Looking for something else?More hash functions
All 424Frequently asked questions
What is PHOTON-Beetle-Hash?
PHOTON-Beetle-Hash is a hash in the PHOTON-Beetle family. PHOTON-Beetle is a family of lightweight authenticated encryption and hashing algorithms that was one of the ten NIST Lightweight Cryptography finalists.
What are the PHOTON-Beetle-Hash sizes?
In NextSSL, PHOTON-Beetle-Hash uses: output 32 bytes.
Who designed PHOTON-Beetle-Hash and when?
PHOTON-Beetle-Hash 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 process finalist.
Which standards define PHOTON-Beetle-Hash?
PHOTON-Beetle-Hash is referenced by PHOTON-Beetle (NIST LWC finalist).
Is PHOTON-Beetle-Hash safe to use?
PHOTON-Beetle-Hash 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).
Related families
Lightweight permutation-based AEAD; NIST lightweight standard (SP 800-232)
KNOTBitsliced PRESENT-like permutation family in a duplex mode; NIST LWC round 2
RomulusSKINNY-based tweakable block cipher AEAD family; NIST LWC finalist
AsconNIST's lightweight standard: one 320-bit permutation for hashing, XOFs, MACs and AEAD
KNOTA NIST LWC second-round family built on bit-sliced PRESENT-like permutations
RomulusA NIST LWC finalist family built on the SKINNY tweakable block cipher