Internet-Draft GAP-32 / Sponge-1024 December 2026
Arroyo Carmona Expires 6 June 2027 [Page]
Workgroup:
Network Working Group
Internet-Draft:
draft-arroyo-gap32-sponge1024-00
Published:
Intended Status:
Informational
Expires:
Author:
J. E. Arroyo Carmona
ART SpA

GAP-32 / Sponge-1024: Constant-Time Table-Free Cryptographic Sponge, XMSS-D1024 Stateful Signatures, and Blok AEAD (V6)

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.

▲

Table of Contents

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.

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:

Table 1: Sponge-1024 Initial Vector Constants (IV[0]..IV[15])
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

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

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.

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).

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]:

Implementations MUST execute all secret-dependent comparisons, WOTS+ chain steps, and key-handling paths in constant time without secret-dependent branches or memory indexing, and SHOULD pin sensitive key material in non-swappable memory (mlock) with explicit zeroization on release.

Sponge-1024 is a recently specified permutation whose concrete resistance against structural distinguishers (differential, linear, rotational-XOR, integral, cube, and algebraic MILP/SAT attacks) requires independent public cryptanalysis. A reproducible 5-tier open cryptanalysis challenge covering reduced rounds (R = 1, 2, 4, 8, 12), full 24 rounds, Blok AEAD, XMSS-D1024, and constant-time Dudect evaluation is archived at [ZENODO-GAP32].

Intellectual Property Disclosure (BCP 79): Patent applications covering solid-state hardware, deterministic entropy, and cryptographic control embodiments (PCT/CL2026/050192, INAPI 202601451, INAPI 202601456; exclusively licensed to Arroyo Riemann Technologies SpA) are disclosed under BCP 79 via the IETF IPR database. Non-commercial evaluation and cryptanalysis are explicitly authorized.

6. IANA Considerations

This document has no IANA actions.

7. Reference Test Vectors

The following Known Answer Tests (KATs) enable independent verification of bit-exact interoperability.

Test Vector Set 1: Reduced-round and full 24-round Sponge-1024 256-bit hash digests (domain 0x47415033325F5635, raw byte absorption with pad10*1) over the 44-byte ASCII string "ART_SPA_GAP32_SPONGE1024_OPEN_CHALLENGE_2026":

R=01:
  f09b9e0ef71cde1de26268fd49513a45152370e64ee1e57299842e1dbb9555a2
R=02:
  805f09ffd9635315a8634d2a8e7bc3f18c356cffca493865d975eb3c9ec16397
R=04:
  67d0e8cf4d824e21d5dfc93f961f51cd991670ea13e13d7645e547cc13a43eaa
R=08:
  d26b56379d8b849630a102329086f9fb45f14aa1978b89a19c0752db74ce8467
R=12:
  4b00ced70379b5552cc6f4417aa3a547f3d205c576a176952a522e65b7abe11d
R=24:
  ecd6f9e3215950982379ebe263e0ffab2dd310ffbff6727d02a4299e82dc56df

Test Vector Set 2 (KAT-01): GAP32-V5 128-byte constant-time MAC (D = 0x47415033325F5635, 64-block minimum leveling, framed Enc(key, nonce, msg)):

key (64 ASCII bytes):
  LLAVE_PRUEBA_64_HEX_0123456789ABCDEF0123456789ABCDEF0123456789AB
nonce:
  1763850000000-0123456789abcdef
msg:
  VECTOR_PARIDAD_8_SDKS_ART_SPA_V59
tag[0..15] (128-bit prefix of 256-hex tag):
  0464c71e0805875e600c31ad4eb55998

Acknowledgements

The author acknowledges Paola Alexandra Sanabria Arroyo (CEO, Arroyo Riemann Technologies SpA) for corporate governance, intellectual property stewardship, and industrial deployment coordination.

References

Normative References

[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, , <https://www.rfc-editor.org/info/rfc2119>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, , <https://www.rfc-editor.org/info/rfc8174>.

Informative References

[RFC8391]
Huelsing, A., Butin, D., Gazdag, S., Rijneveld, J., and A. Mohaisen, "XMSS: eXtended Merkle Signature Scheme", RFC 8391, , <https://www.rfc-editor.org/info/rfc8391>.
[SPONGE]
Bertoni, G., Daemen, J., Peeters, M., and G. Van Assche, "On the Indifferentiability of the Sponge Construction", EUROCRYPT 2008, LNCS 4965, .
[ZENODO-GAP32]
Arroyo Carmona, J. E., "GAP-32 V6.6: Constant-Time Sovereign Post-Quantum Cryptographic Architecture (Sponge-1024, XMSS-D1024, Blok AEAD) and Fail-Closed Linux Kernel SCADA Enforcement", DOI 10.5281/zenodo.24571813, , <https://doi.org/10.5281/zenodo.24571813>.

Author's Address

Junior Enrique Arroyo Carmona
Arroyo Riemann Technologies SpA
Rancagua
Chile