Dragonhash-07

NGCC Round-1 hash candidate · hash-07

Dragon Hash Family

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)

parameterDragon-512Dragon-768Dragon-1024XOF-256XOF-384XOF-512
state width b160016001600160016001600
capacity c57683210885768321088
absorb rate r10247685121024768512
squeeze rate r′— (h read)——128011521024
rounds161616161616
digest (spec)5127681024ν (any)ν (any)ν (any)
claimed collision256384512———
claimed preimage5127681024———
claimed generic log₂Q———256384512

All bit lengths. Message limit 2⁶⁴ bits (§2.7).

XOF naming trap. 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).

algorithmic diagram of the sponge-forward construction
spec Fig. 1
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.

the 5x5 lane state of Dragon-p
spec Fig. 3
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
dataflow of the Update transformation
spec Fig. 4
state initialization and message-word placement for Dragon-512
spec Fig. 5

Round constants RCi(spec Table 3)

iRCiiRCi
00x000000000000000F80x0000000000000087
10x000000000000001E90x0000000000000096
20x000000000000002D100x00000000000000A5
30x000000000000003C110x00000000000000B4
40x000000000000004B120x00000000000000C3
50x000000000000005A130x00000000000000D2
60x0000000000000069140x00000000000000E1
70x0000000000000078150x00000000000000F0

Files