arXiv:2610.06058cs.CROct 2026

Manuscript Offprint

arXiv:2610.06058

Efficient HQC Implementations on RISC-V: A Cross-Layer Design Space Exploration

Maximilian Schöffel, Johannes Feldmann, Elias Biehl, Norbert Wehn

Maximilian Schöffel, Johannes Feldmann, Elias Biehl and Norbert Wehn

Microelectronic Systems Design Research Group

RPTU Kaiserslautern-Landau

Kaiserslautern, Germany

{m.schoeffel,j.feldmann,biehl,norbert.wehn}@rptu.de

Abstract—RISC-V-based hardware/software co-design has become an established methodology for implementing post-quantum cryptography (PQC) on embedded devices. Its software programmability, extensible instruction-set architecture, and optional dedicated accelerators create a broad design space that offers the flexibility required for crypto-agility and post-deployment updates. For HQC, a PQC key-encapsulation mechanism selected for standardization, several RISC-V-based implementations have already been published. However, these works explore only a small subset of this design space.

We present, to the best of our knowledge, the most comprehensive exploration of RISC-V-based HQC. Our exploration is centered around a new, parametrizable architecture framework on which we characterize 29,920 distinct architectural configurations across all three HQC security levels on FPGA. The Pareto-optimal configurations from this framework outperform the state-of-the-art RISC-V-based HQC implementation, ranging from 4.8×4.8\times lower LUT utilization at 17 % lower latency to 69.6×69.6\times lower latency at 30 % lower LUT utilization, while also requiring up to 10.6×10.6\times fewer block RAMs.

Index Terms—HQC, PQC, RISC-V, FPGA

I. INTRODUCTION

Since quantum computers are expected to break current public-key cryptosystems within the next decade [1], the U.S. National Institute of Standards and Technology (NIST) has meanwhile selected the first Post-Quantum Cryptography (PQC) standards. Consequently, research attention is increasingly shifting toward the practical and efficient implementation of these algorithms in real-world systems.

So far, research on PQC implementations for embedded devices has predominantly focused on lattice-based schemes due to their relatively small keys, lower computational complexity, and early selection for standardization by NIST [2]. Following NIST's selection of the code-based Hamming Quasi-Cyclic (HQC) key-encapsulation mechanism (KEM) as an additional standard in 2025 [3], however, there has been a growing interest in efficient HQC implementations. Compared with lattice-based alternatives, HQC imposes substantially higher computational demands, making its implementation on resource-constrained embedded platforms particularly challenging.

However, beyond meeting constraints such as latency (the time to complete a cryptographic operation) and Field Programmable Gate Array (FPGA) resources, PQC implementations must also provide sufficient flexibility to support crypto-agility, i.e., the post-deployment adaptability of cryptographic implementations if vulnerabilities are discovered. Therefore, hardware/software co-design based on the open-source Instruction Set Architecture (ISA) RISC-V [4] has become a widely used strategy for PQC, combining software programmability, a wide range of standard and custom ISA extensions, and hardware acceleration for computational bottlenecks.

For example, Fritzmann et al. [5] introduced multiple custom instructions targeting lattice-based schemes from the NIST process. In [6], the first hardware/software co-design for HQC followed a three-stage approach comprising software optimization, custom instruction-set extensions, and loosely coupled accelerators for FPGA and application-specific integrated circuit (ASIC) implementations. More recently, Dolmeta et al. [7] and Seo and Kim [8] targeted similar HQC computational kernels using custom RISC-V instructions. Additional work has investigated fully hardware-based HQC implementations [9], [10] and optimized implementations of individual computational kernels [11]–[13].

Despite these advances, prior work explores only a few manually selected configurations, potentially excluding architectures with better trade-offs, and does not systematically analyze the interactions among algorithmic refinements, RISC-V ISA choices, hardware/software partitioning, and accelerator design. Moreover, state-of-the-art (SoA) works primarily optimize latency or report only clock cycles [8], providing limited insight into latency–resource trade-offs.

Our new contributions are:

  1. We employ a cross-layer methodology spanning algorithmic and implementation choices to develop a highly configurable RISC-V-based HQC architecture template. It supports all HQC security levels and allows variation of processor width and base ISA, standard and HQC-specific ISA extensions, interconnect width, HW/SW kernel mapping, accelerator configuration, and parallelism. In total, we cover 29,920 distinct architectural configurations.

  2. We characterize the FPGA resources and latency of the KEM operations for all these configurations on Xilinx

This work was partly funded by the German Federal Ministry of Research, Technology and Space as part of the “SUSTAINET-GuarDian” project under grant number 16KIS2248, and co-funded by the European Union and the State of Rhineland-Palatinate as part of the “InnoProm” project. It was also co-funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) as part of “GRK 2982”.

This paper has been accepted for publication at the 2026 IEEE NorCAS conference.

© 2026 IEEE. Personal use of this material is permitted. Permission from IEEE must be obtained for all other uses, in any current or future media, including reprinting/republishing this material for advertising or promotional purposes, creating new collective works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works.

Artix 7. We present a Pareto-based evaluation methodology that (i) identifies the lookup table (LUT)–latency optimal configurations and (ii) introduces metrics to determine how individual architectural choices shape and persist along the Pareto front.

  1. We show that the proposed architecture template enables a fine-grained architecture selection under application-specific FPGA resource and latency constraints. Compared with SoA RISC-V-based HQC implementations, every configuration on our Pareto front requires fewer FPGA resources and achieves lower latency than the most recent RISC-V-based HQC design.

The remainder of this paper is structured as follows. Section II briefly describes the background of HQC and KEMs. Section III presents an analysis of the cross-layer design space, divided into the algorithmic and implementation layers. Section IV introduces an evaluation methodology for analyzing the configurations. Section V presents our results, while Section VI draws the conclusions.