Precomputation Methods for Faster and Greener Post-Quantum Cryptography on Emerging Embedded Platforms

Aydin Aysu, Patrick Schaumont

TL;DR

This paper demonstrates how to make heavy-duty post-quantum cryptography (PQC) run efficiently on tiny, energy-harvesting embedded devices. By cleverly partitioning algorithms into "offline" precomputation and "online" execution phases, the researchers achieved up to an 82.7× reduction in latency and an 11.8× improvement in energy efficiency, effectively tripling the number of digital signatures a solar-powered sensor can generate.

What Problem Does This Paper Address?

We are standing on the precipice of the "quantum era." While quantum computers promise breakthroughs in science, they pose a terminal threat to current digital security. Standard algorithms like RSA and ECC—the bedrock of our internet and IoT security—can be broken by a sufficiently powerful quantum computer using Shor’s algorithm.

The solution is Post-Quantum Cryptography (PQC), but there’s a catch: these new algorithms are computationally expensive. This is a massive hurdle for the "edge of the cloud"—the billions of low-power microcontrollers, smart meters, and sensors that run on tiny batteries or harvest energy from their environment. Traditionally, these devices favor minimal memory and immediate execution. However, as storage becomes cheaper (thanks to Moore’s Law) and energy harvesting becomes more common, the authors argue we need a paradigm shift in how we compute security.

Methods

The researchers focus on partitioning: dividing cryptographic operations into an offline phase (done when energy is abundant and no immediate request is pending) and an online phase (triggered when a message needs to be signed).

They applied this to two primary PQC candidates:

  1. Hash-based Signatures (Winternitz W-OTS): These rely on long chains of hash functions. The authors precompute and store intermediate "nodes" in these chains. During the online phase, the device only needs to compute a few remaining hashes rather than the entire chain.
  2. Lattice-based Signatures (GLP Scheme): These involve complex polynomial multiplications and a "rejection sampling" process where many attempts might fail before a valid signature is found. The authors precompute "coupons"—valid masking polynomials and nonces—during the offline phase. When a signing request arrives, the device simply pulls a "coupon" from memory and performs a few simple operations.

The team tested these methods on a real-world research prototype: a low-power MSP430 microcontroller powered by a photovoltaic cell and a supercapacitor.

Datasets

As this is a hardware/systems paper rather than a machine learning study, there are no "training datasets." Instead, the authors evaluated their methods using:

  • Standard Cryptographic Primitives: SHA-256 for hash-based schemes.
  • Experimental Hardware: A custom energy-harvesting platform (Anagear energy harvester + MSP430 + CC2500 RF frontend).
  • Energy Profiles: Real-world solar energy harvesting data (extrapolated from existing literature) to simulate how a device behaves over a 24-hour day/night cycle.

Key Insights and Ideas

  • Trading Storage for Energy: While precomputation requires more total computation and memory, it shifts the "cost" to times when the device has "excess energy" (e.g., when a solar-powered device’s capacitor is full but the sun is still shining).
  • The "Coupon" Concept: For probabilistic algorithms like lattice-based signatures, precomputing valid candidates (coupons) removes the unpredictable latency of the "try-again" loop from the critical path.
  • Yield over Efficiency: In energy-harvesting scenarios, the goal isn't just to use less energy, but to increase the "system yield"—the total number of tasks performed before the battery dies. Precomputation allows the system to "bank" energy in the form of stored data.

Key Results

The impact of partitioning was dramatic across both schemes:

  • Latency: Run-time latency improved by up to 82.7×.
  • Energy Consumption: Run-time energy use dropped by up to 11.8×.
  • Lattice vs. Hash: The lattice-based GLP scheme was found to be generally faster and more energy-efficient than the hash-based Winternitz scheme.
  • System Yield: In a simulated solar cycle, the precomputation strategy tripled the total number of signatures the device could generate compared to a standard "monolithic" execution.
  • Competitive with Legacy Crypto: The authors found that these optimized PQC signatures are actually competitive with (and sometimes better than) traditional ECDSA signatures on the same platform.

Limitations and Future Work

  • Memory Constraints: The primary bottleneck is SRAM. The MSP430 used only had 16KB, which limited how many precomputed hash nodes or lattice "coupons" could be stored.
  • Chaining vs. Merkle Trees: The authors used "Chaining" for hash-based signatures to save space, but this requires the verifier to process signatures in a specific order. Moving to Merkle-tree-based schemes would be more flexible but requires even more storage.
  • Scope: The study focused on digital signatures. Future work could extend these precomputation techniques to other PQC primitives like Key Encapsulation Mechanisms (KEMs).
  • Algorithm Evolution: As PQC standards (like those from NIST) evolve, these precomputation methods will need to be adapted to newer, more refined versions of lattice and hash-based algorithms.

Summary updated

BibTeX
@article{aysu2015precomputation,
  author = {Aydin Aysu and Patrick Schaumont},
  title = {{Precomputation Methods for Faster and Greener Post-Quantum Cryptography on Emerging Embedded Platforms}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2015},
  url = {https://openreview.net/forum?id=qJn4IVroav},
}
Figure