Hash functions

PHOTON-Beetle-Hash

A NIST LWC finalist hash and AEAD built on the PHOTON-256 permutation

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-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–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

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

Compact hardware hashingLightweight cryptography research

Sizes

FieldBytesMeaning
out32Output

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]

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-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).