Machine-Checked Cardinality Bounds for Masked Barrett Reduction: A 1-Bit Side-Channel Leakage Barrier in Post-Quantum Cryptographic Hardware
This paper presents a machine-checked proof in Lean 4 establishing a universal "1-Bit Barrier" for masked Barrett reduction in post-quantum cryptography, demonstrating that its internal wire maps have a preimage cardinality of at most two, thereby guaranteeing at most one bit of min-entropy loss and enabling the construction of secure Prime-Field PINI compositions for ML-KEM and ML-DSA.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
The Big Picture: Protecting Digital Secrets
Imagine you are building a high-security vault (a computer chip) to store digital secrets. To make sure no one can steal the secrets by listening to the power consumption or electromagnetic waves (a "side-channel attack"), you use a technique called masking.
Think of masking like putting your secret number inside a box, then adding a random, shifting number to it before you show it to the world. If you do this perfectly, an eavesdropper sees only random noise and learns nothing about your secret.
This paper focuses on a specific, tricky part of the vault's locking mechanism called Barrett Reduction. In the world of Post-Quantum Cryptography (the new kind of math needed to stop future super-computers), this step is essential but messy. The authors wanted to know: If we use masking here, is the vault truly secure, or does a tiny crack let a little bit of information leak out?
The Problem: The "Two-Door" Trap
Most parts of the vault (like the "Butterfly" stages mentioned in the paper) are like a perfect hallway: for every secret you put in, there is exactly one random path it can take to the exit. It's a perfect 1-to-1 match.
However, Barrett Reduction is different. It has a "conditional" step. Imagine a hallway with a fork in the road:
- Door A: If the secret is small, you go left.
- Door B: If the secret is large, you go right.
The authors discovered that because of this fork, a single output value on the wire could be produced by two different random masks instead of just one.
- The Fear: If an attacker sees the output, they might think, "Aha! It could have come from Mask A or Mask B. I've narrowed it down!"
- The Reality: The authors proved that it can never be more than two. It is never three, four, or a hundred. It is strictly 0, 1, or 2.
The "1-Bit Barrier"
The paper calls this discovery the 1-Bit Barrier.
Here is the analogy:
Imagine you are guessing a password.
- Perfect Security: You have 1,000,000 possible passwords, and the attacker has no idea which one it is.
- The Barrett Leak: Because of the "Two-Door" effect, the attacker might realize, "It's either Password A or Password B." They have narrowed the field from 1,000,000 to just 2.
In math terms, narrowing a field down to 2 possibilities costs you exactly 1 bit of security (since ).
- The Claim: The authors proved that Barrett Reduction never leaks more than this 1 bit. It is a "conservative" ceiling. In many cases, the leak is actually less than 1 bit because some outputs are impossible to reach (the "0" case), which is actually a good thing for security.
The "Machine-Checked" Promise
Why should we trust this? Usually, security proofs are written on paper and checked by humans, who can make mistakes.
- The Paper's Approach: The authors used a computer program called Lean 4 to write the proof.
- The Analogy: Instead of a human saying, "I think this bridge is safe," they built a robot that checked every single bolt, beam, and screw of the bridge's design logic. The robot reported "Zero Errors" (or "Zero sorry," in computer terms).
- The Result: This isn't just a theory; it is a mathematically verified certificate that works for any modulus (any size of secret number) used in current standards like ML-KEM and ML-DSA.
Why the "Adams Bridge" Chip Failed
The paper also explains why a specific chip design called Adams Bridge was found to be vulnerable in previous studies.
- The Mistake: The chip designers put a fresh random mask between the "Butterfly" stages (the safe hallways) but forgot to put a fresh mask between the "Barrett" stages (the tricky two-door rooms).
- The Consequence: Without that fresh mask, the small 1-bit leaks from the Barrett stages could stack up and multiply, turning a tiny crack into a massive hole.
- The Lesson: The paper proves that if you do put fresh masks between every stage, the 1-bit barrier holds, and the whole system stays secure.
Summary of Findings
- The Trichotomy: The math behind Barrett reduction is surprisingly simple. For any output, the number of ways to get there is always 0, 1, or 2. Never more.
- The 1-Bit Limit: This means the maximum information an attacker can steal from a single wire in this process is 1 bit.
- The Proof: This has been verified by a computer proof assistant (Lean 4) with zero errors, making it a gold-standard guarantee for hardware designers.
- The Fix: To keep the whole system secure, hardware designers must ensure they refresh the random masks between every stage of the calculation. If they do, the "1-Bit Barrier" protects the entire pipeline.
In short: The authors found a tiny, unavoidable crack in the math of a specific encryption step, proved exactly how big that crack is (no bigger than 1 bit), and showed how to seal the rest of the vault so the crack doesn't matter.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.