Luffa-256-Sha3r2
Luffa round 2: a sponge-style SHA-3 candidate with a permutation built from small components
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 Luffa-256-Sha3r2
Luffa-256-Sha3r2 is one of 4 Luffa (SHA-3 round 2) variants in the NextSSL registry, a cryptographic hash function. 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
Luffa is a SHA-3 candidate built from a sponge-style construction and a permutation made of small components. The round 2 version is archived by NextSSL as unverified research code and was not selected.
Luffa absorbs message blocks into a state of several small components and applies a permutation built from them for each block. The layout is chosen for compact hardware and fast software. NIST opened the SHA-3 competition in 2007 and narrowed the field over three rounds to five finalists. The round suffix in the variant id marks which submitted tweak the archived code follows, so rounds are not interchangeable.
The round 2 version is archived at 224, 256, 384 and 512-bit digests, as luffa-224-sha3r2, luffa-256-sha3r2, luffa-384-sha3r2, luffa-512-sha3r2. Round 2 is a second-round tweak of the design. The archive keeps each output length as its own variant, which lets tests select a specific digest size. Because NextSSL records no independent review for this design, the entries serve research and test coverage rather than hash selection.
Luffa reached round 2 of the SHA-3 competition. NextSSL marks the archive as unverified, so use it for comparison and research only. For production hashing, SHA-2 and the standardised SHA-3 functions remain the recommended choices. NIST opened the SHA-3 competition in 2007 and narrowed the field over three rounds to five finalists. The round suffix in the variant id marks which submitted tweak the archived code follows, so rounds are not interchangeable.
History
2007–2015NIST announces a public competition for a new hash standard, SHA-3
NIST SHA-3 competitionLuffa published by Christophe De Cannière, Hisayoshi Sato, Dai Watanabe
64 designs submitted; 51 accepted into round 1
NIST SHA-3 competition14 designs advance to round 2
NIST SHA-3 competitionFive finalists named: BLAKE, Grøstl, JH, Keccak and Skein
NIST SHA-3 competitionKeccak selected as SHA-3
NIST SHA-3 competitionSHA-3 published as FIPS 202
NIST SHA-3 competition
How it works
- The message is padded and absorbed in blocks.
- Each block is mixed into the state and the permutation is applied.
- The output is squeezed from the final state and truncated to the requested size.
Security notes
NextSSL records no review for this archive, so no security claim is made. Use SHA-2 or SHA-3 for real systems.
Typical uses
Sizes
| Field | Bytes | Meaning |
|---|---|---|
| out | 32 | Output |
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", "luffa-256-sha3r2", None, b"abc")[0]
nextssl_root_hash_with("luffa-256-sha3r2", NULL, data, out);
use nextssl_core::Params;
use nextssl_registry::{self as reg, Policy};
let digest = reg::hash_in(reg::all(), Policy::Any, "luffa-256-sha3r2", &Params::new(), b"abc")?;
Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.
Other Luffa (SHA-3 round 2) variants
3Similar names
Looking for something else?More hash functions
All 424Frequently asked questions
What is Luffa-256-Sha3r2?
Luffa-256-Sha3r2 is a hash in the Luffa (SHA-3 round 2) family. Luffa is a SHA-3 candidate built from a sponge-style construction and a permutation made of small components.
What are the Luffa-256-Sha3r2 sizes?
In NextSSL, Luffa-256-Sha3r2 uses: output 32 bytes.
Who designed Luffa-256-Sha3r2 and when?
Luffa-256-Sha3r2 belongs to the Luffa (SHA-3 round 2) family, first published in 2008 by Christophe De Cannière, Hisayoshi Sato, Dai Watanabe. Its origin: NIST SHA-3 competition, round 2.
Is Luffa-256-Sha3r2 safe to use?
Luffa-256-Sha3r2 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 Luffa (SHA-3 round 2) variants are there?
NextSSL also registers luffa-224-sha3r2, luffa-384-sha3r2, luffa-512-sha3r2 in the Luffa (SHA-3 round 2) family.
Related families
Fugue round 2: IBM's SHA-3 candidate built on a large shift-register state, archived at four sizes
Hamsi (SHA-3 round 2)Hamsi round 2: Küçük's SHA-3 candidate with a non-linear mixing layer, archived as unverified code
SHA-3 and KeccakThe Keccak sponge, standardised by NIST in FIPS 202 as a structural alternative to SHA-2
SHAvite-3 (SHA-3 round 2)SHAvite-3 round 2: the AES-based SHA-3 candidate from Biham and Dunkelman, archived as unverified
SIMD (SHA-3 round 2)SIMD round 2: an unverified SHA-3 competition candidate with 224, 256, 384 and 512-bit digests
SHA-3 and KeccakThe Keccak sponge, standardised by NIST in FIPS 202 as a structural alternative to SHA-2