Hash functions

Photonbeetlehash256rate32v1

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

unverified Root API only
Unverified tier.

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 Photonbeetlehash256rate32v1

Photonbeetlehash256rate32v1 is a cryptographic hash function from the PHOTON-Beetle family. It produces a 32-byte (256-bit) output. 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 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 'unverified' is reachable from the root API only
digest = root.call("hash_with", "photonbeetlehash256rate32v1", 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 Photonbeetlehash256rate32v1?

Photonbeetlehash256rate32v1 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 Photonbeetlehash256rate32v1 sizes?

In NextSSL, Photonbeetlehash256rate32v1 uses: output 32 bytes.

Who designed Photonbeetlehash256rate32v1 and when?

Photonbeetlehash256rate32v1 belongs to the PHOTON-Beetle family, first published in 2019. Its origin: NIST Lightweight Cryptography process finalist.

Is Photonbeetlehash256rate32v1 safe to use?

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