Network Working Group J. E. Arroyo Carmona Internet-Draft ART SpA Intended status: Informational 3 December 2026 Expires: 6 June 2027 GAP-32 / Sponge-1024: Constant-Time Table-Free Cryptographic Sponge, XMSS-D1024 Stateful Signatures, and Blok AEAD (V6) draft-arroyo-gap32-sponge1024-00 Abstract This document specifies the Sponge-1024 bijective 1024-bit cryptographic permutation (rate r = 512 bits, capacity c = 512 bits, 24 rounds) and its derived Layer-Zero primitives: the constant-time 64-block leveled GAP32-V5 keyed-first MAC, the R58A Encrypt-then-MAC authenticated encryption container, the Blok AEAD V6 construction with an exact unimodular integer pre-diffusion layer (W20) over Z/2^64Z, and the XMSS-D1024 stateful hash-based post-quantum signature scheme. All primitives are strictly table-free (zero S-boxes, zero lookup-table BRAM) to eliminate cache-timing and memory side-channel vectors in financial messaging, critical OT/SCADA infrastructure, and bare-metal hardware deployments. Status of This Memo This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79. Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet- Drafts is at https://datatracker.ietf.org/drafts/current/. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." This Internet-Draft will expire on 6 June 2027. Copyright Notice Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved. Arroyo Carmona Expires 6 June 2027 [Page 1] Internet-Draft GAP-32 / Sponge-1024 December 2026 This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/ license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 2. Conventions and Definitions . . . . . . . . . . . . . . . . . 3 3. The Sponge-1024 Permutation and Sponge Construction . . . . . 3 3.1. Internal State, Constants, and Domain Initialization . . 3 3.2. Quarter-State Mixing and 24-Round Permutation . . . . . . 5 3.3. Framing, Absorption, Padding, and Squeezing . . . . . . . 5 4. Derived Primitives and Wire Formats . . . . . . . . . . . . . 6 4.1. GAP32-V5 Constant-Time Keyed-First MAC (128 Bytes) . . . 6 4.2. R58A Container, Blok AEAD V6, and Unimodular Layer W20 . 6 4.3. XMSS-D1024 Stateful Hash-Based Post-Quantum Signatures . 7 4.4. Hardware Implementation Profile (Zero-BRAM Artix-7 Metrics) . . . . . . . . . . . . . . . . . . . . . . . . 7 5. Security Considerations . . . . . . . . . . . . . . . . . . . 7 6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 8 7. Reference Test Vectors . . . . . . . . . . . . . . . . . . . 8 Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . . 9 References . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Normative References . . . . . . . . . . . . . . . . . . . . . 9 Informative References . . . . . . . . . . . . . . . . . . . . 9 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 10 1. Introduction Financial messaging rails (ISO 20022, SWIFT) and operational technology environments (OT/SCADA) require post-quantum authentication, integrity, and authenticated encryption primitives that execute in strict constant time without secret-dependent table lookups or variable-time rejection sampling. Sponge-1024 defines a single self-contained 1024-bit ARX- multiplicative permutation over sixteen 64-bit unsigned words that unifies hashing, keyed-first message authentication, authenticated encryption, and stateful hash-based signatures without relying on integer factorization, discrete logarithms, or structured linear lattice assumptions. Arroyo Carmona Expires 6 June 2027 [Page 2] Internet-Draft GAP-32 / Sponge-1024 December 2026 In accordance with Kerckhoffs's Principle, the full mathematical specification, minimal C11 reference verifiers (-Wall -Wextra -Werror -Wpedantic), formal structural proofs, empirical statistical audit logs, and a reproducible 5-tier open cryptanalysis challenge are archived at [ZENODO-GAP32] and https://github.com/Arroyo-Riemann- tecnologies/art-riemann-monorepo. Production system engines, hardened OS daemons, and hardware RTL implementations remain proprietary to Arroyo Riemann Technologies SpA under commercial licensing. No security claim in this specification depends on unresolved mathematical conjectures. 2. Conventions and Definitions The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here. All lane additions (+) and multiplications (*) operate modulo 2^64 on unsigned 64-bit little-endian integers. Bitwise XOR is denoted by "^", logical right shift by ">>", and k-bit left cyclic rotation on 64-bit words by "rotl64(x, k)". "LE64(n)" denotes the 8-byte little- endian encoding of unsigned 64-bit integer n, and "||" denotes byte- string concatenation. 3. The Sponge-1024 Permutation and Sponge Construction 3.1. Internal State, Constants, and Domain Initialization The internal state S consists of 16 unsigned 64-bit lanes s[0]..s[15] arranged in row-major order as a 4x4 matrix. Lanes s[0]..s[7] form the 512-bit bitrate (64 bytes), and lanes s[8]..s[15] form the 512-bit hidden capacity. The permutation uses four fixed 64-bit constants: GOLDEN_HEX = 0x9e3779b97f4a7c15 (floor(2^64 * frac(phi^-1))) PRIME_DISP_1 = 0xbf58476d1ce4e5b9 (Stafford Mix13 odd multiplier 1) PRIME_DISP_2 = 0x94d049bb133111eb (Stafford Mix13 odd multiplier 2) C_SQ = 0x53515545455a4500 (squeeze-phase tweak separator) Sixteen nothing-up-my-sleeve initial vector lanes IV[0]..IV[15] are derived as floor(2^64 * frac(alpha_i)) from standard irrational constants: Arroyo Carmona Expires 6 June 2027 [Page 3] Internet-Draft GAP-32 / Sponge-1024 December 2026 +========+===========+====================+ | Lane | Generator | 64-bit Hex Value | +========+===========+====================+ | IV[0] | phi^-1 | 0x9e3779b97f4a7c15 | +--------+-----------+--------------------+ | IV[1] | e | 0xb7e151628aed2a6b | +--------+-----------+--------------------+ | IV[2] | pi | 0x243f6a8885a308d3 | +--------+-----------+--------------------+ | IV[3] | sqrt(2) | 0x6a09e667f3bcc908 | +--------+-----------+--------------------+ | IV[4] | sqrt(3) | 0xbb67ae8584caa73b | +--------+-----------+--------------------+ | IV[5] | sqrt(5) | 0x3c6ef372fe94f82b | +--------+-----------+--------------------+ | IV[6] | gamma | 0x93c467e37db0c7a4 | +--------+-----------+--------------------+ | IV[7] | ln(2) | 0xb17217f7d1cf79ac | +--------+-----------+--------------------+ | IV[8] | sqrt(7) | 0xa54ff53a5f1d36f1 | +--------+-----------+--------------------+ | IV[9] | sqrt(11) | 0x510e527fade682d1 | +--------+-----------+--------------------+ | IV[10] | sqrt(13) | 0x9b05688c2b3e6c1f | +--------+-----------+--------------------+ | IV[11] | sqrt(17) | 0x1f83d9abfb41bd6b | +--------+-----------+--------------------+ | IV[12] | sqrt(19) | 0x5be0cd19137e2179 | +--------+-----------+--------------------+ | IV[13] | sqrt(23) | 0xcbbb9d5dc1059ed8 | +--------+-----------+--------------------+ | IV[14] | sqrt(29) | 0x629a292a367cd507 | +--------+-----------+--------------------+ | IV[15] | sqrt(31) | 0x9159015a3070dd17 | +--------+-----------+--------------------+ Table 1: Sponge-1024 Initial Vector Constants (IV[0]..IV[15]) For a 64-bit domain separator D, initialization loads s[i] = IV[i] for i = 0..15 and binds D into the capacity: s[12] = s[12] ^ D s[15] = s[15] ^ rotl64(D, 31) ^ GOLDEN_HEX Arroyo Carmona Expires 6 June 2027 [Page 4] Internet-Draft GAP-32 / Sponge-1024 December 2026 3.2. Quarter-State Mixing and 24-Round Permutation Given four lanes (a, b, c, d) and a 64-bit round constant rc, the bijective quarter-state operator mix4(a, b, c, d, rc) executes sequentially: a = a + (b ^ rc) d = rotl64(d ^ a, 32) c = c + d b = rotl64(b ^ c, 24) a = (a + b) * PRIME_DISP_1 a = a ^ (a >> 31) d = rotl64(d ^ a, 16) c = (c + d) * PRIME_DISP_2 c = c ^ (c >> 29) b = rotl64(b ^ c, 7) For tweak parameter rc_dom in Z/2^64Z, the full permutation Pi_1024(S, rc_dom) executes 24 rounds (r = 0..23). Defining rc_{r,j} = rc_dom ^ (GOLDEN_HEX * (4*r + j + 1)) for j in {0, 1, 2, 3} and diagonal rotation offsets rho = (19, 29, 37, 47), each round performs: 1. Column layer: mix4 on (s[j], s[j+4], s[j+8], s[j+12]) with rc_{r,j} for j = 0..3. 2. Diagonal layer: mix4 on (s[j], s[((j+1) mod 4)+4], s[((j+2) mod 4)+8], s[((j+3) mod 4)+12]) with rotl64(rc_{r,j}, rho[j]) for j = 0..3. 3. Cyclic row shift: (R0, R1, R2, R3) <- (R1, R2, R3, R0), where Rk = (s[4k], s[4k+1], s[4k+2], s[4k+3]). Because PRIME_DISP_1 and PRIME_DISP_2 are odd modulo 2^64 and x -> x ^ (x >> k) is an invertible linear map over GF(2)^64, every step of Pi_1024 is strictly bijective. Any single-lane perturbation propagates causally to all 16 lanes within Round 0. 3.3. Framing, Absorption, Padding, and Squeezing Structured tuples F = (F_1, ..., F_m) are injectively encoded as Enc(F) = LE64(|F_1|) || F_1 || ... || LE64(|F_m|) || F_m. The byte stream is partitioned into 64-byte blocks m_0..m_{B-1} with final pad10*1 padding (appending 0x80, zero-padding to 64 bytes, and XORing 0x01 into byte 63 of m_{B-1}). For each block j = 0..B-1, the rate is XORed with m_j (with total byte length folded via s[13] ^= (L_total * GOLDEN_HEX) prior to the final permutation j = B-1), and Pi_1024(S, D ^ j) is applied. Arroyo Carmona Expires 6 June 2027 [Page 5] Internet-Draft GAP-32 / Sponge-1024 December 2026 Each 64-byte output block w^(t) (t = 0, 1, ...) is extracted via capacity-mixed squeezing: w[i] = s[i] ^ rotl64(s[i+8], 29) for i = 0..7 Between consecutive output blocks, the state advances via S <- Pi_1024(S, D ^ C_SQ ^ (t + 1)). Because bit 62 of C_SQ is 1, absorption tweaks (j < 2^62) and squeeze tweaks (t < 2^62) are strictly disjoint. Under the conjugacy involution T(s_rate, s_cap) = (s_rate ^ R_29(s_cap), s_cap), this output map is bijectively equivalent to standard rate-only sponge squeezing [SPONGE]. 4. Derived Primitives and Wire Formats 4.1. GAP32-V5 Constant-Time Keyed-First MAC (128 Bytes) GAP32-V5 uses domain tag D = 0x47415033325F5635 and absorbs Enc(key, nonce, message) keyed-first. To eliminate length-dependent timing leakage on payloads up to 4,031 framed bytes, implementations MUST run isolated dummy permutations whenever B < 64 until exactly 64 permutations have been evaluated, enforcing T(B) = max(64, B). Output length is 128 bytes (two 64-byte squeeze blocks). 4.2. R58A Container, Blok AEAD V6, and Unimodular Layer W20 The R58A Encrypt-then-MAC container formats sealed ratchet state and out-of-band credential envelopes as: Packet = "R58A" (4 B) || Nonce (16 B) || Tag (32 B) || Ciphertext Keystream generation uses DOM_ENC = 0x5241545F454E4335 over (K, A, Nonce); authentication uses DOM_MAC = 0x5241545F4D414335 over (K, A, Nonce, Ciphertext). Decryption MUST validate Tag in constant time prior to releasing plaintext and MUST fail closed on mismatch. Blok AEAD V6 applies the unimodular lower-unitriangular pre-diffusion matrix L_16 in SL_16(Z/2^64Z) (layer W20, with entries (L_16)_{m,k} = floor(m/k) for 1 <= k <= m <= 16, det(L_16) = 1, and exact integer Mobius inverse U_16) per 128-byte sub-block using shift-add arithmetic (zero hardware multipliers), followed by Encrypt-then-MAC under domain tags 0x424C4F4B5636454E (encryption) and 0x424C4F4B56364D41 (authentication). Arroyo Carmona Expires 6 June 2027 [Page 6] Internet-Draft GAP-32 / Sponge-1024 December 2026 4.3. XMSS-D1024 Stateful Hash-Based Post-Quantum Signatures XMSS-D1024 instantiates a Merkle-WOTS+ stateful signature scheme aligned with [RFC8391] solely over Sponge-1024 (256-bit internal hashes, Winternitz parameter w = 16, 67 chains of length 15, branchless constant-time selection ct_cmov_32) for tree heights H in [1..12]. The public key format is strictly 49 bytes: height (1 B) || pub_seed (16 B) || merkle_root (32 B). Signature length is 4 + 2144 + 32*H bytes (2,276 bytes for H = 4; 2,340 bytes for H = 6). Implementations MUST enforce monotonic atomic one-time signature (OTS) leaf reservation committed to durable storage prior to releasing a signature, and MUST NOT restore an active signing tree from backup after compromise or rollback. 4.4. Hardware Implementation Profile (Zero-BRAM Artix-7 Metrics) Because Sponge-1024 and W20 use zero lookup tables, hardware realizations require zero block RAM. A proprietary 64-bit AXI4-Stream SystemVerilog implementation evaluated on AMD/Xilinx Artix-7 via Yosys xc7 completes in 50 deterministic clock cycles end- to-end (bit-exact with C11) using 176 DSP48E1 slices (0 DSPs in W20 via shift-add decomposition), 2,720 flip-flops, 26,902 LUTs, and 0 BRAM / 0 memory bits, fitting within an XC7A100T device. 5. Security Considerations Under the ideal tweakable permutation model with capacity c = 512 bits [SPONGE]: * 1024-bit GAP32-V5 MACs target 2^256 classical collision resistance, 2^512 classical preimage resistance, Omega(2^256) quantum preimage resistance (Grover), and Omega(2^170.67) quantum inner-collision resistance (BHT). * 256-bit digests target 2^128 classical collision resistance, 2^256 classical preimage resistance, and Omega(2^128) quantum preimage resistance. * R58A and Blok AEAD achieve IND-CCA2 security up to the 128-bit nonce birthday bound and 256-bit tag forgery bound. Nonces MUST NOT be reused under the same key. * XMSS-D1024 EUF-CMA unforgeability reduces strictly to collision resistance,