Fresh inter-stage masking guarantees uniform arithmetic NTT outputs
Applying a fresh random mask between pipeline stages erases prior multiplicity and yields PF-PINI security for the second stage
Security & privacy arXiv 28 Apr 2026 Theory Theory
Published as “Prime-Field PINI: Machine-Checked Composition Theorems for Post-Quantum NTT Masking”
Why it matters
Adding a single fresh random mask between NTT pipeline stages eliminates DPA on intermediate wires, providing a concrete, low-cost mitigation for post-quantum hardware designs.
Summary
Fresh inter-stage masking erases the PF-PINI parameter of the first stage, so a two-stage arithmetic-masked NTT pipeline satisfies PF-PINI(k2) regardless of the first stage’s security. The claim is backed by fully machine-checked proofs (18 theorems in Lean 4) and a formal diagnosis of Microsoft’s Adams Bridge accelerator that matches three independent empirical attacks. The evidence is strong: formal theorems, artifact reproducibility, and convergence with prior side-channel analyses.
What they found 3
- Without fresh masking, the intermediate wire retains the first stage’s multiplicity bound k1, enabling non-uniform leakage.
“Without fresh masking, the intermediate wire G1(x, m1) has multiplicity bounded by k1: |{m1 ∈Zq: G1(x, m1) = v}| ≤k1”
- Barrett reduction inherently satisfies PF-PINI(2), i.e., a 1-bit leakage bound.
“Barrett Reduction: The Barrett internal map satisfies PF-PINI(2). The two-branch structure of modular reduction, x-m when m≤x, and x-m+ 2s when m> x, creates a maximum multiplicity of 2. This is the 1-Bit Barrier: a fundamental property of modular reduction, not a design choice.”
- Adams Bridge lacks fresh inter-stage masking, causing the intermediate wire to be non-uniform and vulnerable to DPA.
“The issue is architectural: Adams Bridge applies zero fresh inter-stage masking between butterfly and Barrett stages.”
Caveats 3
- Fresh masking does not improve output security, it protects the internal pipeline state.
- We do not prove a matching lower bound: there may exist gadget pairs where the actual maximum multiplicity is strictly less than k2 ⋅q2.
- Our composition theorems handle two-stage pipelines.
What’s new here 4
- First machine-checked composition theorems for arithmetic masking over prime fields.
- Renewal theorem showing a fresh random mask between stages makes the intermediate wire perfectly uniform.
- Formal bridge proving that the algebraic Barrett reduction bound applies to hardware-faithful Nat arithmetic.
- Application of the theorems to diagnose a real PQC accelerator (Adams Bridge) and prescribe a concrete mitigation.