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)
| parameter | Thunder-512 | Thunder-768 | Thunder-1024 | XOF-256 | XOF-384 | XOF-512 |
|---|---|---|---|---|---|---|
| state width b | 1600 | 1600 | 1600 | 1600 | 1600 | 1600 |
| capacity c | 576 | 832 | 1088 | 576 | 832 | 1088 |
| absorb rate r | 1024 | 768 | 512 | 1024 | 768 | 512 |
| squeeze rate r′ | h = 512 | 768 | 1024 | 1280 | 1152 | 1024 |
| rounds | 12 | 12 | 12 | 12 | 12 | 12 |
| digest (spec) | 512 | 768 | 1024 | ν (any) | ν (any) | ν (any) |
| claimed collision | 256 | 384 | 512 | min{256, ν/2} | min{384, ν/2} | min{512, ν/2} |
| claimed preimage | 512 | 768 | 1024 | min{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.
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.

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

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: θ → ρ → π → χ → ι):

ψ(for Keccak’s χ) is degree 3:D'[x][y] = D[x][y+3] ⊕ ( ¬D[x][y+1] · D[x][y+2] · ¬D[x][y+4] ), indices in Z₅.θmixes two column parities P and Q (offsets t = (41, 50, 6, 10, 27), u = 26, r = 1, s = 36) instead of Keccak’s single parity.




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)
| i | RCi |
|---|---|
| 0 | 0x0000000000000001 |
| 1 | 0x0000000000000003 |
| 2 | 0x000000000000000A |
| 3 | 0x0000000000000088 |
| 4 | 0x0000000000008081 |
| 5 | 0x0000000000008002 |
| 6 | 0x0000000000000009 |
| 7 | 0x0000000000000083 |
| 8 | 0x000000000000800A |
| 9 | 0x0000000000000089 |
| 10 | 0x0000000000008083 |
| 11 | 0x000000000000800B |
ρ lane-rotation offsets τ(x, y) (spec Table 3)
| y\x | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| 4 | 6 | 18 | 49 | 17 | 43 |
| 3 | 48 | 30 | 61 | 8 | 38 |
| 2 | 34 | 5 | 0 | 2 | 37 |
| 1 | 40 | 52 | 19 | 47 | 9 |
| 0 | 45 | 33 | 13 | 1 | 27 |
θ parameters (spec Table 4)
| r | s | u | t_y (y = 0…4) |
|---|---|---|---|
| 1 | 36 | 26 | 41, 50, 6, 10, 27 |
Files
- Specification:
hash-33-spec.pdf - Algorithm summary + full pseudocode + implementation cross-check:
pseudocode.md - Official archive:
Thunder.zip— download & verify (SHA-256db6970d5…b0c8in SHA256SUMS.txt)