Hash functions

Triadhashv1

A Trivium-inspired NLFSR hash from the first round of the NIST lightweight process

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 Triadhashv1

Triadhashv1 is a cryptographic hash function from the TRIAD-HASH 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

TRIAD-HASH is the hash component of TRIAD, a lightweight submission to the first round of the NIST Lightweight Cryptography process. It is built on a nonlinear feedback shift register in the style of the Trivium stream cipher.

TRIAD's core is a state of three nonlinear feedback shift registers whose feedback taps combine AND and XOR operations, following Trivium's hardware-efficient structure. The hash mode uses this update function as a permutation in a sponge-like construction to produce a 256-bit digest. It targets very compact hardware. Its state is small.

NextSSL includes a triadhashv1 entry wired from a benchmarking source. Its design shows how stream-cipher style NLFSRs were adapted to hashing in the lightweight setting. Because the tier is unverified, outputs should be checked against independent reference values before they are relied on for anything beyond experimentation. It is kept for completeness.

History

2018–2025
  1. NIST calls for lightweight AEAD and hashing designs

    NIST Lightweight Cryptography project
  2. TRIAD-HASH 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

TRIAD did not advance beyond the first round of the NIST process and has had little published cryptanalysis. This entry is unverified and must not be used for security.

Typical uses

Lightweight cryptography researchNLFSR-based design study

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", "triadhashv1", 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 Triadhashv1?

Triadhashv1 is a hash in the TRIAD-HASH family. TRIAD-HASH is the hash component of TRIAD, a lightweight submission to the first round of the NIST Lightweight Cryptography process.

What are the Triadhashv1 sizes?

In NextSSL, Triadhashv1 uses: output 32 bytes.

Who designed Triadhashv1 and when?

Triadhashv1 belongs to the TRIAD-HASH family, first published in 2019. Its origin: NIST Lightweight Cryptography process (round 1).

Is Triadhashv1 safe to use?

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