Paper 2025/2157

Taming the Stack: Proof-Preserving Blockwise FrodoKEM on RISC-V Devices with Hardware Acceleration

Frank Hartmann
Abstract

FrodoKEM provides conservative post-quantum security through unstructured lattices, yet its deployment on embedded systems is historically constrained by high memory requirements. While state-of-the-art implementations mitigate this by generating the public matrix on-the-fly, they remain bottlenecked by the sequential generation of secret matrices, which enforces a rigid trade-off between stack usage and recomputation overhead. To address this, we propose a blockwise secret generation mechanism that enables efficient random access to arbitrary matrix tiles. We formally prove that this modification is indistinguishable from the standard specification in the Random Oracle Model, thereby preserving IND-CCA2 security. By evaluating this approach on a 32-bit RISC-V core with custom cryptographic extensions, we demonstrate tiled encapsulation and key generation strategies that maintain constant transient stack usage ($\approx$2--3 kB) across all parameter sets. This design effectively decouples memory footprint from algorithmic complexity, enabling flexible buffering strategies that optimize performance according to the available heap memory of the target platform.

Note: This work presents a proof-preserving blockwise variant of FrodoKEM that enables constant-memory secret generation and a structured time–memory design space for KeyGen and Encaps. The construction remains ROM-equivalent to standard FrodoKEM and integrates cleanly with a hardware-assisted RISC-V implementation.

Metadata
Available format(s)
PDF
Category
Implementation
Publication info
Preprint.
Keywords
FrodoKEMPost-Quantum CryptographyRISC-VEmbedded SystemsHardware AccelerationStack Optimization
Contact author(s)
frank @ hart ma
History
2025-11-29: approved
2025-11-27: received
See all versions
Short URL
https://ia.cr/2025/2157
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2025/2157,
      author = {Frank Hartmann},
      title = {Taming the Stack: Proof-Preserving Blockwise {FrodoKEM} on {RISC}-V Devices with Hardware Acceleration},
      howpublished = {Cryptology {ePrint} Archive, Paper 2025/2157},
      year = {2025},
      url = {https://eprint.iacr.org/2025/2157}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.