# Fresh Masking Makes NTT Pipelines Composable: Machine-Checked Proofs for Arithmetic Masking in PQC Hardware

Source: [Fresh Masking Makes NTT Pipelines Composable: Machine-Checked Proofs for Arithmetic Masking in PQC Hardware](<https://www.sota2.com/research/paper/69e9a7c155a3c32af89f72a2>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-04-29T05:00:05.003Z

Authors: Ray Iskander, Khaled Kirah

Published: 2026-04-22T17:19:22.000Z

## Abstract

Post-quantum cryptographic (PQC) accelerators for ML-KEM (FIPS 203) and ML-DSA (FIPS 204) rely on pipelined Number Theoretic Transform (NTT) stages over $\\mathbb{Z}\_q$. Our prior work established structural dependency analysis at scale \[1\] and quantified the security margin of partial NTT masking \[2\]. Whether per-stage arithmetic masking guarantees pipeline-level security had no prior machine-checked answer for the r-bearing case: composition frameworks (ISW, t-SNI, PINI, DOM) were formalized exclusively for Boolean masking over $\\mathrm{GF}(2)$; no proof assistant artifact addresses the NTT butterfly over $\\mathbb{Z}\_q$. We present three machine-checked results in Lean 4 with Mathlib, all zero sorry. First, we close a stated limitation of prior work: value-independence implies constant marginal distribution under fresh randomness (via an algebraic MutualInfoZero proxy). Second, butterfly per-context uniformity: for any Cooley-Tukey butterfly with fresh output mask over $\\mathbb{Z}/q\\mathbb{Z}$ ($q \> 0$), each output wire has exactly one mask value producing each output, a uniform marginal independent of secrets, universal over all moduli, twiddle factors, and inputs. Third, a k-stage NTT pipeline with fresh per-stage masking satisfies per-context uniformity at every stage under the ISW first-order probing model. We document a named warning: pointwise value-independence is false for butterfly outputs. The Adams Bridge accelerator (CHIPS Alliance Caliptra) fails the fresh masking hypothesis, masking active only in INTT round 0, architecturally explaining its structural insecurity. Artifact: nine theorems, 1,738 build jobs, zero sorry. Composition for nonlinear gadgets (Barrett) is addressed in forthcoming manuscripts proving Barrett's PF-PINI(2) satisfaction (one-bit barrier) \[3\] and k-stage composition for PF-PINI gadgets under fresh-mask renewal \[4\].

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Masking Verification on Barrett reduction over Zq](<https://www.sota2.com/research/sota/masking-verification-on-barrett-reduction-over-zq.md>): Masking Verification; Barrett reduction over Zq; Universal Score: 0.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2604.20793>)

[PDF](<https://arxiv.org/pdf/2604.20793.pdf>)
