← Lab /Security & privacy

Fresh per-stage masking ensures uniform security of NTT pipelines, but Adams Bridge lacks it

Per-stage fresh arithmetic masking guarantees per-context uniformity and first-order probing security for NTT pipelines

Security & privacy arXiv 22 Apr 2026 Theory Theory

Published as “Fresh Masking Makes NTT Pipelines Composable: Machine-Checked Proofs for Arithmetic Masking in PQC Hardware”

Why it matters

Designers of ML-KEM/ML-DSA hardware can cite the Lean 4 proof to satisfy FIPS 140-3 certification requirements for first-order side-channel resistance.

Summary

The paper proves that a k-stage NTT pipeline with a fresh random mask at each butterfly stage satisfies per-context uniformity, giving first-order probing security under the ISW model, and this proof is fully machine-checked in Lean 4 with zero sorry. It also shows that the intuitive pointwise value-independence property is false for butterfly outputs and defines the correct marginal uniformity property. The evidence consists of formal theorems (e.g., ntt_pipeline_composition) that hold for all moduli q>0 and any pipeline depth, but the work is limited to linear (affine) gadgets and first-order probing only. No empirical evaluation is provided; the contribution is purely a formal verification result.

What they found 2

  1. A k-stage NTT pipeline with fresh per-stage masks satisfies PipelineUniform (per-context uniformity) for all q>0 and any k.

    “theorem ntt_pipeline_composition {q : N} [NeZero q] {k : N} (pipeline : NTTPipeline q k) : PipelineUniform pipeline := by”

  2. Pointwise value-independence for butterfly outputs is false.

    “theorem butterfly_vi_pointwise_false : not ButterflyValueIndependent 5 <<1>> := by”

Caveats 6

  • Higher-order probing breaks the design: "Higher-order security: Under second-order probing (d = 2), observing both wire 0 (a’ - m) and wire 2 (b’ - m) reveals a’ - b’ (the masks cancel)."
  • The full marginal security proof is not formalized for general k: "We do not formalize the full summation in Lean for general k due to the size of the Fintype instance for PipelineRandomness (q^{3k} elements)."
  • Linear case only, nonlinear extension in [3]. The NTT butterfly is affine in the fresh mask. The composition argument works because translation bijections exist in any group.
  • First-order probing only. PipelineUniform is proved for first-order probing (t = 1).
  • Standard probing model. No glitch-extended probing, no transition leakage, no timing side channels.
  • MutualInfoZero proxy. I(x; w) = 0 is stated as Observation 4.1, not a formalized theorem.

What’s new here 4

  • First machine-checked composition proof for arithmetic masking over Z_q in NTT pipelines.
  • Formal demonstration that pointwise value-independence is false for butterfly stages and introduction of the correct marginal uniformity property.
  • Universal quantification over all positive moduli, twiddle factors, and pipeline depths.
  • Bridge from r-bearing value-independence to zero mutual information (MutualInfoZero) in the formal setting.