SpecificationDragon Hash Family — parameters, mode, permutation
Authoritative source: hash-07-spec.pdf
(42 pages, English; §2.4 permutation, §2.5 hash instantiation, §2.6 XOF, §2.7 claims).
A line-by-line algorithm summary with the full pseudocode is kept at
pseudocode.md (ngcc.dev).
Parameters (spec Tables 4 and 6)
| parameter | Dragon-512 | Dragon-768 | Dragon-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 read) | — | — | 1280 | 1152 | 1024 |
| rounds | 16 | 16 | 16 | 16 | 16 | 16 |
| digest (spec) | 512 | 768 | 1024 | ν (any) | ν (any) | ν (any) |
| claimed collision | 256 | 384 | 512 | — | — | — |
| claimed preimage | 512 | 768 | 1024 | — | — | — |
| claimed generic log₂Q | — | — | — | 256 | 384 | 512 |
All bit lengths. Message limit 2⁶⁴ bits (§2.7).
Dragon-XOF-256/384/512 name a security level
(log₂Q, spec Table 6), not an output length. The one-shot API reports one squeeze block —
1280 / 1152 / 1024 bits (160 / 144 / 128 bytes) — so XOF-256 advertises a longer
fixed digest than XOF-512. The implementation itself supports arbitrary ν.Mode: sponge-forward (spec Fig. 1)
An ordinary sponge in which the inner (capacity) part of the pre-permutation state is fed
forward and XORed back into the inner part after every permutation call. This raises (second-)preimage
security to ≈ min{c, h} (in the ideal-permutation model) instead of the classical c/2, so a 1600-bit state suffices for a 1024-bit
preimage target. Padding is pd10*; a domain constant C is XORed into the last block
(the lowest bit of lane S[0,0]). The mode and its security analysis are due to Guo, Hu, Jiang, Fan, Fu,
Preneel and Wang (ePrint 2025/1006, published at CRYPTO 2026).

Sponge-F^{P,pd10*}(M, nu):
(M[1..L]) <- split_r( pd10*(M) )
X <- 0^r || IV
for i = 1..L: # absorb
X <- X XOR (M[i] || (i==L ? C : 0))
X <- P(X) XOR (0^r || right_c(X)) # the feed-forward
for i = 1..ceil(nu/r'): # squeeze
Z[i] <- right_{r'}(X)
if i < last: X <- P(X) XOR (0^r || right_c(X))
return left_nu(Z[1] || ... )
Permutation Dragon-p (spec §2.4)
16 rounds, R_i = φ ∘ ι_i: ι XORs a round constant into S[0,0]
(RC_i follows the pattern i·15+15); φ = Col ∘ Diag applies the ARX map
Update to five diagonals then five columns of the 5×5 lane array.
Update mixes additions mod 2⁶⁴ and rotations by (1, 10, 24, 33, 49) bits.

Update(a,b,c,d,e): # + mod 2^64, <<< rotl
b += e ; d = (d <<< 33) ^ b
a += d ; c = (c <<< 24) ^ a
e += c ; b = (b <<< 10) ^ e
d += b ; a = (a <<< 1) ^ d
c += a ; e = (e <<< 49) ^ c


Round constants RCi(spec Table 3)
| i | RCi | i | RCi |
|---|---|---|---|
| 0 | 0x000000000000000F | 8 | 0x0000000000000087 |
| 1 | 0x000000000000001E | 9 | 0x0000000000000096 |
| 2 | 0x000000000000002D | 10 | 0x00000000000000A5 |
| 3 | 0x000000000000003C | 11 | 0x00000000000000B4 |
| 4 | 0x000000000000004B | 12 | 0x00000000000000C3 |
| 5 | 0x000000000000005A | 13 | 0x00000000000000D2 |
| 6 | 0x0000000000000069 | 14 | 0x00000000000000E1 |
| 7 | 0x0000000000000078 | 15 | 0x00000000000000F0 |
Files
- Specification:
hash-07-spec.pdf - Algorithm summary + full pseudocode + implementation cross-check:
pseudocode.md - Official archive:
Dragon.zip— download & verify (SHA-25608875981…b26cin SHA256SUMS.txt)