Hash functions

Hamsi-256-Sha3r2

Hamsi round 2: Küçük's SHA-3 candidate with a non-linear mixing layer, archived as unverified code

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 Hamsi-256-Sha3r2

Hamsi-256-Sha3r2 is one of 4 Hamsi (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

Hamsi is a SHA-3 candidate designed by Özgül Küçük. Its round 2 version uses a mixing layer built from non-linear and linear steps, and NextSSL archives it as unverified research code.

Hamsi processes each block through a sequence of expansion, non-linear and linear steps applied to a wide internal state. The design aims at efficient software and hardware implementations. 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 hamsi-224-sha3r2, hamsi-256-sha3r2, hamsi-384-sha3r2, hamsi-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.

Hamsi was one of the SHA-3 candidates that reached round 2 of the competition. Its tier is unverified in NextSSL, so the archive is for comparison and research. 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–2015
  1. NIST announces a public competition for a new hash standard, SHA-3

    NIST SHA-3 competition
  2. Hamsi published by Özgül Küçük

  3. 64 designs submitted; 51 accepted into round 1

    NIST SHA-3 competition
  4. 14 designs advance to round 2

    NIST SHA-3 competition
  5. Five finalists named: BLAKE, Grøstl, JH, Keccak and Skein

    NIST SHA-3 competition
  6. Keccak selected as SHA-3

    NIST SHA-3 competition
  7. SHA-3 published as FIPS 202

    NIST SHA-3 competition

How it works

  1. The message is padded and split into blocks.
  2. Each block passes through the expansion and non-linear mixing steps.
  3. The final state is truncated to the variant's digest 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

Historical comparison of SHA-3 candidatesResearch into hardware-friendly hashingNot recommended for production hashing

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", "hamsi-256-sha3r2", None, b"abc")[0]

Calls follow the NextSSL C ABI and its language bindings. Buffer sizes are validated against the sizes above.

Other Hamsi (SHA-3 round 2) variants

3

Frequently asked questions

What is Hamsi-256-Sha3r2?

Hamsi-256-Sha3r2 is a hash in the Hamsi (SHA-3 round 2) family. Hamsi is a SHA-3 candidate designed by Özgül Küçük.

What are the Hamsi-256-Sha3r2 sizes?

In NextSSL, Hamsi-256-Sha3r2 uses: output 32 bytes.

Who designed Hamsi-256-Sha3r2 and when?

Hamsi-256-Sha3r2 belongs to the Hamsi (SHA-3 round 2) family, first published in 2008 by Özgül Küçük. Its origin: NIST SHA-3 competition, round 2.

Is Hamsi-256-Sha3r2 safe to use?

Hamsi-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 Hamsi (SHA-3 round 2) variants are there?

NextSSL also registers hamsi-224-sha3r2, hamsi-384-sha3r2, hamsi-512-sha3r2 in the Hamsi (SHA-3 round 2) family.