Thunderhash-33

NGCC Round-1 hash candidate · hash-33

Thunder Hash Family

SpecificationThunder Hash Family — parameters, mode, permutation

Authoritative source: hash-33-spec.pdf (52 pages, English; §2.2 mode, §2.3 Thunder-p, §2.4 hash, §2.5 XOF, §2.6 claims). A line-by-line algorithm summary with the full pseudocode is kept at pseudocode.md (ngcc.dev).

Parameters (spec Tables 1, 5, 7)

parameterThunder-512Thunder-768Thunder-1024XOF-256XOF-384XOF-512
state width b160016001600160016001600
capacity c57683210885768321088
absorb rate r10247685121024768512
squeeze rate r′h = 5127681024128011521024
rounds121212121212
digest (spec)5127681024ν (any)ν (any)ν (any)
claimed collision256384512min{256, ν/2}min{384, ν/2}min{512, ν/2}
claimed preimage5127681024min{256, ν}min{384, ν}min{512, ν}

All bit lengths. Message limit 2⁶⁴ bits. Fixed instances use c = h + 64 — the feed-forward mode allows this instead of the classical c ≥ 2h.

XOF naming trap. As with Dragon, Thunder-XOF-256/384/512 name a security level, not an output length. The harness exposes the XOFs through the fixed-length CryptHash API at exactly one squeeze block (1280/1152/1024 bits = 160/144/128 bytes). Note r′ > c for the XOFs (e.g. 1280 > 576): a squeeze block spans the whole inner part plus part of the outer part, which the feed-forward mode permits (spec §2.5). These three fixed lengths are not separate hash functions — shorter outputs are prefixes of longer ones.

Mode: sponge-with-feed-forward (spec §2.2, Fig. 2)

The same Sponge-F^{P,pd10*} construction as Dragon (Guo, Hu, Jiang, Fan, Fu, Preneel, Wang — ePrint 2025/1006, published at CRYPTO 2026): the inner (capacity) part is fed forward across every permutation call, and the digest is squeezed from the inner part. Because the output is the inner part, the final-block constant C = 0^{c−1}‖1 is what prevents length extension.

algorithmic diagram of the sponge-forward construction
spec Fig. 2
Thunder-h(M):                             # h in {512,768,1024}, c = h+64
    X <- 0^r || IV                        # IV_j -> lane j
    Mpad <- M || 1 || 0^{r-((|M|+1) mod r)}   # pd10*
    for i = 1..l:                          # absorb
        X <- X XOR (M[i] || (i==l ? C : 0))
        S <- right_c(X)                    # inner part AFTER the xor
        X <- P(X) XOR (0^r || S)           # feed-forward
    return right_h(X)                      # h < c: one read, no extra permutation
state initialization and message-word placement for Thunder-512
spec Fig. 5

Permutation Thunder-p (spec §2.3, Tables 2–4)

12 rounds of R = ψ ∘ π ∘ θ ∘ ρ ∘ ι on the 1600-bit 5×5×64 state — the Keccak-p lane geometry and five-step structure, but in the order ι → ρ → θ → π → ψ (Keccak-p: θ → ρ → π → χ → ι):

the state organization of Thunder-p
spec Fig. 3
the rho operation
spec Fig. 6 · ρ
the theta operation
spec Fig. 7 · θ
the pi operation
spec Fig. 8 · π
the psi operation
spec Fig. 9 · ψ

Lane layout and serialization follow the spec: message words big-endian into the highest-indexed rate lanes (M_{n_r−1} into lane 24), digest D_{n_d−1} ‖ … ‖ D_0, MSB-first per lane.

Round constants (spec Table 2)

iRCi
00x0000000000000001
10x0000000000000003
20x000000000000000A
30x0000000000000088
40x0000000000008081
50x0000000000008002
60x0000000000000009
70x0000000000000083
80x000000000000800A
90x0000000000000089
100x0000000000008083
110x000000000000800B

ρ lane-rotation offsets τ(x, y) (spec Table 3)

y\x01234
4618491743
3483061838
23450237
1405219479
0453313127

θ parameters (spec Table 4)

rsut_y (y = 0…4)
1362641, 50, 6, 10, 27

Files