← Latest papers
💻 computer science

Portable Acceleration of Learning With Errors KEMs for Post-Quantum Cryptography

This paper presents a portable GPU implementation of a Learning With Errors (LWE) based Key Encapsulation Mechanism (KEM) using OpenMP Target offloading, demonstrating that a single source codebase can achieve substantial performance acceleration and energy efficiency across both NVIDIA and AMD accelerators while avoiding vendor lock-in.

Original authors: Tiziana Liberati, Nitin Shukla, Simone Rizzo, Elisabetta Boella, Matteo Barbieri, Gabriella Bettonte, Daniele Gregori, Marco Pedicini

Published 2026-07-13
📖 4 min read☕ Coffee break read

Original authors: Tiziana Liberati, Nitin Shukla, Simone Rizzo, Elisabetta Boella, Matteo Barbieri, Gabriella Bettonte, Daniele Gregori, Marco Pedicini

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're trying to build a super-secure digital vault that can't be cracked even by a futuristic "quantum" supercomputer. To do this, you need to solve a massive, messy math puzzle called "Learning With Errors" (LWE). It's like trying to find a specific needle in a haystack, but the haystack is made of millions of tiny, noisy magnets, and the more you look, the more the magnets wiggle around.

The problem? Solving these puzzles takes forever on a regular computer. It's like trying to move a mountain of sand one grain at a time with a tiny spoon. The authors of this paper asked: "What if we used a giant, super-fast construction crew (a GPU) to move that sand?"

The Big Discovery: One Code, Two Crews
Usually, if you want to use a construction crew, you have to hire a specific team (like NVIDIA's CUDA) and write instructions only they understand. If you want to hire a different team (like AMD), you have to rewrite the whole instruction manual. That's expensive and annoying.

This paper shows that you can write one single set of instructions (using something called OpenMP Target) that works perfectly for both the NVIDIA crew and the AMD crew. It's like writing a recipe that works whether you're cooking in a kitchen with gas stoves or electric ones, without changing a single ingredient.

The Magic Trick: Staying in the Kitchen
The biggest time-waster in these math puzzles is running back and forth between the main computer (the CPU) and the super-fast GPU. It's like a chef running to the pantry to get salt for every single pinch of seasoning.

The authors figured out how to keep the "salt" (random numbers needed for the math) right inside the GPU kitchen. They upgraded a tool called RNGonGPU so it works with both NVIDIA and AMD crews. Now, the GPU can generate all the random numbers it needs without ever leaving its seat. This keeps the workflow smooth and fast.

The Race: Who Wins?
The team tested their new method on four different super-fast computers:

  1. NVIDIA A100: A powerful, standard super-computer.
  2. NVIDIA GH200: A massive "SuperChip" where the brain (CPU) and the muscle (GPU) are glued together with a super-fast highway (NVLink).
  3. AMD MI300X: A powerful, standard super-computer with a huge memory bank.
  4. AMD MI300A: A chip where the brain and muscle share the exact same memory bank.

Here is what they found:

  • The Speed Boost: When the math puzzles got huge (with a size of 4,096), the GPU version was 120 times faster than the regular computer version. For even bigger puzzles (size 16,384), the GPU was still blazing fast, while the regular computer was practically asleep.
  • The Winners: The NVIDIA GH200 was the fastest, finishing the job in about 60 seconds. The AMD MI300X was a close second, taking about 85 seconds. Both of these machines have huge, fast memory banks (HBM3) that can pour data out quickly.
  • The Surprising Loser: You might think the AMD MI300A would be great because it shares memory between the brain and muscle. But it was actually the slowest, taking 114 seconds. Why? Because the brain and the muscle were fighting over the same water hose. While the GPU was trying to move data, the CPU was also trying to do its own math, and they got in each other's way. It's like two people trying to drink from the same straw at the same time; neither gets a full drink.

Energy and Heat
The team also checked how much electricity these machines used. The NVIDIA GH200 didn't just finish faster; it used less energy to do the job. It took about 9.7 kJ of energy to solve the puzzle, while the AMD MI300X needed about 26.2 kJ. That means the NVIDIA machine was roughly 2.5 times more energy-efficient.

What This Means
The paper proves that you don't have to pick a side between NVIDIA and AMD to get super-fast security. You can use one code base to run on both. However, they also showed that just having a fast chip isn't enough; how the memory is organized matters just as much. If the brain and muscle fight over the same memory, the whole system slows down.

In short, the authors measured that portable, GPU-accelerated security is not just a dream—it's a reality that can make quantum-proof locks much faster and more efficient, as long as you pick the right hardware setup to avoid traffic jams in the memory lane.

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 →