← Latest papers
💻 computer science

Structural Dependency Analysis for Masked NTT Hardware: Scalable Pre-Silicon Verification of Post-Quantum Cryptographic Accelerators

This paper introduces a scalable four-stage verification hierarchy that extends sound first-order masking analysis to production-scale post-quantum cryptographic accelerators, successfully narrowing manual review requirements for a 1.17-million-cell ML-KEM/ML-DSA chip from hundreds of structural flags to 165 mathematically certified candidates.

Original authors: Ray Iskander, Khaled Kirah

Published 2026-04-17
📖 4 min read☕ Coffee break read

Original authors: Ray Iskander, Khaled Kirah

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

Imagine you are building a super-secure vault to protect the world's most valuable secrets from future "quantum" hackers. To make this vault unbreakable, you don't just use one lock; you split the secret into two pieces (like two halves of a key) and hide them in different parts of the machine. This is called masking.

The golden rule of this system is simple: The two halves of the key must never meet. If they accidentally touch or combine inside the machine, the secret is exposed, and the vault is broken.

The Problem: The "Needle in a Haystack" Dilemma

The machine we are talking about (called Adams Bridge) is massive. It has over 1 million tiny electronic switches (gates).

Checking if the two key-halves ever meet is like trying to find a specific needle in a haystack the size of a city.

  • Old tools were like magnifying glasses. They could check a small pile of hay (a few thousand switches) perfectly, but they would melt if you tried to use them on the whole city.
  • Manual checking by human experts is impossible; it would take a lifetime.
  • Testing the real machine (after it's built) is too late. If it's broken, you have to scrap the whole thing and start over.

The Solution: QANARY (The Canary in the Coal Mine)

The authors built a new tool called QANARY. They named it after the canary birds miners used to carry underground. If the canary stopped singing, the miners knew there was toxic gas before it killed them.

QANARY is a "pre-silicon" detector. It looks at the blueprints (the code) of the machine before it is built to find dangerous spots where the two key-halves might accidentally meet.

How QANARY Works: The Four-Stage Filter

Instead of trying to check every single wire perfectly (which is too slow), QANARY uses a smart, four-step funnel to sort the wires:

  1. The Wide Net (Structural Analysis):
    Imagine throwing a giant net over the whole city. It catches everything that might be a problem. It's very fast but catches a lot of "false alarms" (things that look dangerous but are actually safe).

    • Result: It flags thousands of wires as "suspicious."
  2. The Fresh Mask Check:
    Some wires look suspicious because they mix the keys, but they also have a "fresh randomizer" (like a new, random noise) that scrambles the mix immediately. QANARY checks if this noise is strong enough to hide the secret. If yes, it clears the wire.

  3. The Boolean Detective (Simple Math):
    For the remaining suspicious wires, QANARY asks a simple math question: "If I change the secret, does the wire's output change?" If the answer is "No," the wire is safe. This clears up many more false alarms.

  4. The Arithmetic Detective (Complex Math):
    This is the magic step. The machine deals with complex numbers (modular arithmetic), not just simple on/off switches. QANARY uses advanced math to re-arrange the problem. It asks: "Even though these two key-halves are touching, does the result still look random?"

    • The Result: On a critical part of the machine (the Barrett Reduction module), this step proved that 54% of the wires flagged as dangerous were actually safe.

The Big Win

Before this tool, engineers had to manually inspect 363 suspicious wires on a critical module. It was a nightmare.
After using QANARY:

  • 198 wires were proven safe by math (they got a "Secure Certificate").
  • 165 wires were flagged as "Maybe Dangerous" (the engineers only need to check these).
  • 0 wires were left in the "I don't know" pile.

The whole process took about 3 minutes on a single computer core.

Why This Matters

  • Speed: It turns a months-long manual review into a 3-minute automated check.
  • Scale: It works on machines with 1 million+ switches, something no other tool could do.
  • Safety: It catches "multi-cycle" leaks. Imagine the two key-halves are in different rooms. A simple check says they are safe. But QANARY realizes that in the next second, they might travel through a hallway and meet. It catches these "time-traveling" leaks that other tools miss.

The Bottom Line

This paper introduces a "smart filter" for security. It doesn't just say "This is broken" or "This is safe." It says, "Here are the 165 wires you actually need to worry about, and here is mathematical proof that the other 198 are fine."

It allows engineers to build massive, complex quantum-proof security chips with confidence, knowing they have a "canary" that has already checked the air for them.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →