Research Institute · Programme

Cipher S-boxes, χ, and quantum gate counts

Exact AND depths for block-cipher S-boxes, Keccak permutations, Toffoli gates, and Kochen-Specker vector sets in C⁶.

Published 2026-08-29 · updated 2026-09-04

25results
5machine-checked
5negative results
2open cells

The programme

Where things stand

What this programme is about

Ciphers rely on nonlinear substitutions, called S-boxes, to stop attackers from breaking encryption with linear algebra. Each nonlinear step, usually an AND gate or finite-field product, costs circuit area in hardware, adds proof overhead in zero-knowledge systems, and demands costly Toffoli gates on fault-tolerant quantum computers. This programme measures the exact minimum number of nonlinear multiplications—the multiplicative complexity—needed to run cipher S-boxes and finite-field operations in binary circuits and reversible quantum networks. It focuses on the χ permutation powering Keccak and Ascon, small finite-field operations, and standard block-cipher S-boxes. For engineers and cryptanalysts outside pure circuit complexity, these counts establish hard physical floors. An exact count settles the gate budget for masked hardware, prices the quantum circuit required to invert a cipher, and marks when further logic optimization cannot succeed.

What has been settled

Forward χ needs exactly n AND gates for width n ≥ 3 MF-129, while χ₅² takes 7 gates MF-154, closing the [6, 7] bracket MF-142. Odd powers of χ₄ cost 4 gates and even powers cost 5 MF-130. The k-window law fixes joint complexity of k iterates to kn through k = ⌊n/2⌋ MF-156; joint χ_n and χ_n² takes 2n gates MF-134. Iterate degrees follow j+1 up to ⌊n/2⌋, with prior art credited to Kriepke–Kyureghyan, Schoone–Daemen, Liu et al., and Biryukov et al. MF-157. For odd n, inverse χ takes 3(n−1)/2 products, reaching 9 at n=7 MF-098 and superseding earlier bounds [MF-078, MF-079]. The six-AND χ₅⁻¹ circuit is prior art MF-079. Strict syntactic symmetry sets inverse-χ costs at 3, 10, and 21 for widths 3, 5, and 7, imposing taxes of 0, 4, and 12 [MF-116, ML-058]. Rowwise replacement cannot cut 12-round Keccak-p[1600,12] below 19,200 products ML-064, and inverse-χ exactness yields zero savings ML-066.

Exact NCT networks for χ₅ need at least 6 Toffoli gates MF-080. Reversible synthesis failures eliminated cyclic p6 modules via wrong row-0 assignments ML-017, the acyclic p7 route after 786,430 checks ML-018, and the χ₀₁ catalyst on the p7 tile MF-010.

GF(8) multiplication takes 6 AND gates MF-128, superseding model brackets MF-120; GF(4)'s cost of 3 is prior art. General GF(2^k) multiplication requires at least ⌈5k/2⌉ - 2 gates MF-147. GF(16) inversion costs 5 gates MF-168, and GF(16) multiplication takes 9 products in quadratic models MF-167. All 16 optimal 4-bit S-box classes are settled: 11 cost 5 gates and 5 cost 4; PRINCE costs 5, while PRESENT, GIFT, RECTANGLE, Piccolo, and SKINNY cost 4 MF-176. The AES S-box lower bound of 13 is the known general 2n-3 bound, withdrawing novelty MF-081. Three whole-function floors hold with one non-affine rescope MF-135, and five lower-bound conjectures were disproved MF-174.

What is still open

Three main complexity brackets remain unresolved across algebraic fields and iterated permutations.

In finite fields, unrestricted multiplication in GF(2^4) is bracketed between 8 and 9 AND gates [ML-076, MF-167]. Resolving whether 8 gates suffice has been reduced to 3-form transfer analysis or exhaustive circuit search ML-076. Inversion in GF(2^5) also remains open within [7, 14] gates, supported by quadratic-model witness costs of 7 for x^3 and x^5 MF-168.

For iterated Keccak layers, two-round permutations leave brackets of [8, 12] for χ₆² and [9, 14] for χ₇² [ML-082, MF-155]. Exhaustive gate-budget exclusions confirm the lower floors of 8 and 9 gates, while explicit circuit constructions give the upper bounds MF-155. In quantum synthesis, alternate prefix branches for the Toffoli acyclic p7 route remain open following exhaustion of the 3-gate start ML-018.

How to read the evidence

Receipted computational artifacts and exhaustive checks dominate this register, backed by certified machine proofs and written deductions. Exhaustive checks and machine certificates give total confidence on exact gate numbers and structural obstructions at small widths. Receipted entries supply concrete circuit witnesses and replayable logs that confirm upper bounds directly. Unreceipted legacy searches document exhausted branches and warrant fresh verification before new synthesis attempts.

Showcase

The strongest results here

MF-080PAPER PROOF

A lower bound on the Toffoli count of exact NCT networks implementing χ₅

For every exact NOT/CNOT/Toffoli network N implementing χ₅ with clean ancillas, #Toffoli(N) ≥ MC(χ₅⁻¹) = 6

Every exact NOT/CNOT/Toffoli network for the 5-bit chi/Ascon permutation requires at least six Toffoli gates, including networks with clean ancillas.

Prior art: No separate prior-art claims are made. This bound is derived from the exact six-AND inverse complexity and applies strictly to NCT networks.

lower boundCipher S-boxes, χ, and quantum gate countsfull paper

Published 2026-08-29

MF-147RECEIPTED

Basis-free lower bound on the multiplicative complexity of GF(2^k) multiplication

MC(GF(2^k) multiplication) ≥ ⌈5k/2⌉ - 2 in the unrestricted XAG model, basis-free

Proves a general basis-free lower bound of ceil(5k/2) - 2 for the multiplicative complexity of finite field multiplication over GF(2^k).

Prior art: This result appears to be new: existing bilinear and tensor-rank literature (Chudnovsky–Chudnovsky; Shparlinski–Tsfasman–Vlăduţ; Ballet et al.) bounds a different model, and NIST lists the multiplicative complexity (MC) of vectorial functions on `>= 5` bits as an open problem.

lower boundCipher S-boxes, χ, and quantum gate countsfull paper

Published 2026-09-04

MF-154EXHAUSTIVE CHECK

Exact multiplicative complexity of chi_5^2

MC(chi_5^2) = 7, closing the [6,7] bracket at the top, with eps_5 = 10 - 7 = 3 = eps_4

The two-round Keccak nonlinear layer chi_5^2 requires exactly 7 AND gates, resolving the previous bracket of 6 to 7.

Prior art: This appears to be a new result. As re-confirmed on 2026-09-01, no exact MC of any chi iterate has been published, and NIST lists no chi row.

exact determinationCipher S-boxes, χ, and quantum gate countsfull paper

Published 2026-09-04

MF-156RECEIPTED

The k-window law for joint multiplicative complexity of Chi iterates

MC(chi_n, ..., chi_n^k) = k n for 1 <= k <= floor(n/2), sharp in k; joint rank drops below k n at k = floor(n/2) + 1

The joint multiplicative complexity of the first k iterates of the Chi permutation equals k times n precisely when k is at most floor(n/2), beyond which degree layer independence collapses.

Prior art: Kriepke–Kyureghyan previously bounded Hadamard products for a single iterate using degree arguments, and the Schoone–Daemen order formula already established `chi_3^2 = id`. The joint-exposure vector statement and the `k = floor(n/2)` threshold were not located in prior literature.

exact determinationCipher S-boxes, χ, and quantum gate countsfull paper

Published 2026-09-04

MF-167RECEIPTED

Exact quadratic multiplicative complexity of GF(2^4) multiplication and polymul_4

qMC(GF(2^4) mult) = 9, qMC(polymul_4) = 9, unrestricted MC(GF(16) mult) ∈ [8,9], MC(polymul_4) ∈ [8,9]

In the quadratic model where products are formed from linear inputs, both GF(16) multiplication and 4-term polynomial multiplication require exactly 9 multiplications, while unrestricted complexity lies in [8, 9].

Prior art: The value 9 is already known from Karatsuba and Winograd's bilinear theory. However, whether this bound is new under the stronger quadratic model, which allows multiplications to mix operands, has not been verified.

exact determinationCipher S-boxes, χ, and quantum gate countsfull paper

Published 2026-09-04

MF-168RECEIPTED

Exact multiplicative complexity of GF(16) inversion and bounds for GF(32)

MC(GF(2^4) inversion) = 5; MC(GF(2^5) inversion) ∈ [7, 14] with qMC(x^3) = qMC(x^5) = 7

Inversion in the 16-element finite field requires exactly 5 AND gates, while inversion in the 32-element field requires between 7 and 14 AND gates.

Prior art: GF(16) inversion is the core of tower-field AES S-boxes (Canright 2005; Boyar–Peralta 2010), with Stoffelen’s SAT study of 4-bit S-boxes (FSE 2016) confirming the inverter cost at 5. The novelty of the GF(32) stage cost remains unverified.

exact determinationCipher S-boxes, χ, and quantum gate countsfull paper

Published 2026-09-04

MF-176RECEIPTED

Exact multiplicative complexity of all 16 optimal 4-bit S-box classes and standard ciphers

MC=5 for G0,G1,G2,G5,G8,G9,G12,G15,G4,G10,G14; MC=4 for G3,G6,G7,G11,G13; MC(PRINCE)=5, MC(PRESENT,GIFT,RECTANGLE,Piccolo,SKINNY)=4

The exact multiplicative complexity was determined for all 16 Leander-Poschmann optimal 4-bit S-box classes and six standard lightweight block ciphers using packing lower bounds and verified circuit synthesis.

exact determinationCipher S-boxes, χ, and quantum gate countsfull paper

Published 2026-09-04

Every entry

The rest of the programme

Every confirmed result in this programme. Each links to its full paper.

Snapshot 2026-09-06. Generated from the division's registers and curation records; never hand-edited.