PQ-SEAL, Post-Quantum Secure Embedded Architecture with Leakage-Resilient AES on Ibex RV32IMC
This paper presents PQ-SEAL, a bare-metal RISC-V implementation on an FPGA that integrates NIST-standardized post-quantum cryptography with a leakage-resilient AES-128 rekeying scheme, demonstrating a 31-fold improvement in resistance against Correlation Power Analysis attacks without additional hardware costs.
Original paper licensed under CC BY 4.0 (https://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 Digital Fortress and the Quantum Storm
Imagine the internet as a massive, bustling city where everyone sends secret letters to one another. To keep these letters safe, we use "locks" (encryption) that are so complex that even the world's best mathematicians can't pick them without the key. For decades, these locks have been incredibly strong. However, scientists have been building a new kind of tool called a "quantum computer." Think of this not as a faster calculator, but as a magical master key that can pick almost any of our current locks in seconds. If someone builds this machine, all our secret letters could be read instantly, even if they were written years ago. This is a big problem because bad guys are already stealing and saving our secret letters today, waiting for the day they can unlock them.
To stop this, experts are designing new locks that are "quantum-proof." These new locks are based on complex math puzzles that even a quantum computer can't solve easily. But there's a catch: making these new locks requires a lot of brainpower and memory, which is hard to fit into tiny devices like smart sensors or simple chips. Furthermore, even if the math is perfect, a sneaky attacker might try to steal the key by watching how much electricity the device uses while it works. This paper explores how to build a tiny, super-strong, quantum-proof fortress on a very small, simple chip, while also putting up a magical shield that confuses anyone trying to spy on its power usage.
The Tiny Guardian: PQ-SEAL
Meet PQ-SEAL, a project created by a researcher named Charan Kasimahanti at the Indian Institute of Technology Madras. The goal was to build a complete, secure communication system on a tiny, bare-metal computer chip (specifically an Ibex RV32IMC running on an FPGA board) that has almost no memory—only 64 KB of RAM, which is less than a single high-resolution photo. Usually, fitting advanced security on such a small chip is like trying to park a semi-truck in a bicycle shed.
The researchers managed to squeeze two massive tasks into this tiny space:
- The Quantum-Proof Handshake: They implemented a new, NIST-standardized way to exchange keys using ML-KEM and ML-DSA. This is the "handshake" where two computers say, "Hello, I am who I say I am, and here is a secret key we can use."
- The Leakage-Resilient Shield: They added a special trick called LR4 rekeying to protect the actual messages sent after the handshake.
How the Handshake Works
Imagine two spies meeting in a park. Instead of whispering a secret, they perform a complex dance.
- The Greeting: The tiny chip (the "Board") sends a public ID card (800 bytes) to a powerful computer (the "Host").
- The Magic Trick: The powerful computer does the heavy lifting. It uses the ID card to create a secret code and a digital signature, then sends them back.
- The Verification: The tiny chip checks the signature. If it's valid, both sides use a special math function (SHAKE-128) to turn the shared secret into a final 32-byte session key.
This entire dance took only 0.9 seconds on the tiny chip, which was running at 50 MHz. That's incredibly fast for a device with no operating system and no extra memory helpers.
The Magic Shield: LR4 Rekeying
Once the handshake is done, the two sides start sending encrypted messages. Here is where the paper gets really clever. Usually, if an attacker watches a device encrypt messages, they can eventually figure out the key by analyzing the power consumption (a method called Correlation Power Analysis or CPA). It's like listening to a safe-cracker; if they click the dial the same way every time, you can guess the combination.
The paper introduces a countermeasure called LR4 rekeying. Instead of using the same key forever, the system changes the key every 10 blocks of data.
- The Analogy: Imagine you are sending a secret message in a box. A normal lock uses the same key for every box. A spy watches you lock 100 boxes and eventually figures out the key.
- The PQ-SEAL Trick: Every time you lock the 10th box, the lock automatically changes its internal mechanism to a completely new, random key. The spy watches the first 10 boxes, gets confused, and then the lock changes. They have to start all over again.
The researchers tested this by collecting 300 pairs of messages and their encrypted results.
- Without the shield (Plain AES): The spy could figure out the key with a "rank" of 4 (meaning the real key was one of the top 4 guesses) after 300 tries.
- With the shield (LR4): The spy's best guess was stuck at a "rank" of 124.
This means the attacker was 31 times more confused and uncertain when the shield was active. The paper proves this improvement happened without needing any extra hardware or special chips; it was done entirely in software.
The Real-World Test
To show this wasn't just a math puzzle, the team built a live, encrypted messaging app. Users could send group chats and direct messages. The tiny chip on the FPGA board encrypted every message before sending it, and the powerful computer decrypted it. The system worked smoothly, proving that even on a tiny, resource-starved chip, you can have a secure, quantum-resistant conversation that is also safe from power-hacking spies.
What This Means
The paper doesn't claim to have solved every problem in the world. The researchers admit that their tests were done in a controlled software simulation of power usage, not with physical power meters on the actual chip yet. They also noted that the code could be improved to prevent timing attacks (where a spy guesses the key based on how long a calculation takes).
However, the results are a strong proof of concept. They showed that you can run the latest, most secure quantum-proof standards on a tiny, cheap chip without an operating system, and you can add a powerful defense against physical spying just by changing how often you switch keys. It's a step toward a future where even the smallest devices can stay safe from both quantum computers and sneaky spies.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.