Manuscript Offprint
arXiv:2610.06058Efficient HQC Implementations on RISC-V: A Cross-Layer Design Space Exploration
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 lower LUT utilization at 17 % lower latency to lower latency at 30 % lower LUT utilization, while also requiring up to 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:
-
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.
-
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.
- 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.
-
Key Generation: Alice randomly generates the keypair using KEYGEN.
-
Encapsulation: Bob uses and ENCAPS to generate the ciphertext c and the shared secret ss.
-
Decapsulation: Alice uses and DECAPS to derive the same shared secret ss from c.
The code-based HQC KEM consists of four kernels [14]:
-
Polynomial Arithmetic. Arithmetic operations (addition, multiplication, and modular reduction) are performed over the quotient ring , where depends on the code length. Polynomials can be represented in two ways: an explicit bit array in where bit represents coefficient , or a support form array that holds the positions of the non-zero coefficients.
-
FIPS 202. This standard encompasses the Secure Hash Algorithm 3 (SHA-3) functions and the SHAKE extendable-output functions [15]. Both are based on the KECCAK sponge construction, which absorbs inputs into an internal state, applies the KECCAK-f1600 permutation, and squeezes outputs from this state. HQC uses this for hashing and pseudorandom-data generation.
-
Error-Correcting Codes. HQC combines two code constructions. A decodable code C with error-correction capability is constructed from concatenated Reed–Muller (RM) and Reed–Solomon (RS) codes and is used to recover the encoded message. In addition, a random double-circulant code defined by the parity-check matrix H introduces structured noise that can be corrected by C [16].
-
Sampling. HQC expands random seeds using SHAKE to generate error polynomials with a fixed Hamming weight . These polynomials provide the noise required for security.
In this work, we consider the HQC specification 5.0 and support all three security levels [14].
III. DESIGN RATIONALE
We chose RISC-V as the base platform because it combines software programmability with an extensible ISA and dedicated hardware acceleration, allowing us to explore fine-grained trade-offs between latency and FPGA resources. Building on these properties, our methodology follows a cross-layer approach that explores a multidimensional design space divided into two layers. At the algorithmic layer, alternative realizations of the HQC kernels are explored with respect to computational complexity and memory footprint. At the implementation layer, we investigate different hardware/software partitioning and architectures on the RISC-V platform.
A. Algorithmic Layer
Our platform does not use caches or off-chip memory, ensuring constant-time memory access. This property allows us to prioritize computationally efficient support-form algorithms for the sparse polynomials with low Hamming weight that would otherwise leak secret timing side-channel information on cached processors.
-
Polynomial Arithmetic: Polynomial multiplication is the primary bottleneck of HQC [6]. Three realizations have been proposed: (i) window-based [6] [9] reducing complexity from (naive approach) to , (ii) rotation-based [13], also , and (iii) Karatsuba/Toom–Cook [14], which offers platform-independent constant-time execution but higher complexity than sparse-dense methods. We use the window-based method, as it enables preloading sampled error polynomials into the result buffer to perform post-multiplication addition implicitly. Furthermore, this reduces storage requirements from to for sparse polynomials.
-
FIPS 202: The bottleneck is the KECCAK permutation. We explore a full-state approach (contiguous 1600-bit blocks) and bit-sliced variants [17], which trade off latency, parallelism, and FPGA resources. Additionally, we evaluate sponge interface granularity (byte vs. 64b block) where the software handles the alignment to determine the impact on buffering and hardware/software transfer overhead.
-
Error-Correcting Codes (ECC): While the decoding procedures are the primary computational bottlenecks of the ECC kernel, they are critical to the scheme's correctness. Deviations from the specified decoding logic may increase the decryption-failure probability and invalidate the formal security assumptions of HQC. Consequently, we restrict our design space to the reference algorithms [14].

Fig. 1. Configurable RISC-V architecture used for the exploration. The HQC-specific units share the dual-port memories MEM2 and MEM3, whereas FIPS 202 is integrated as an independent bus master.
- Sampling: HQC 5.0 employs rejection-based sampling for KEYGEN and Fisher-Yates (FY) for ENCAPS/DECAPS. To optimize the FY uniqueness check, we utilize explicit-form lookups rather than the reference support-form search, reducing search complexity from to [11].
B. Implementation Layer
The architecture template for the explored implementations is shown in Fig. 1. It comprises the configurable RISC-V processor, code and data memories, an interconnect, an optional FIPS 202 accelerator, and optional HQC-specific accelerators. Each HQC kernel can be either implemented in software or as a dedicated hardware accelerator; our unified architecture supports all three HQC parameter sets.
- Processor and ISA Configuration: We use our proprietary RISC-V processor with a three-stage pipeline (fetch, decode, execute/memory), an instruction-prefetch depth of four, and support for four outstanding read requests. Across the explored HQC software configurations, the processor mostly achieves between 1.35 and 1.60 cycles per instruction (CPI).
The processor configurations vary XLEN, the RV32I/RV32E base ISA, interconnect width, the M and C extensions, and four cumulative ISA profiles. The base profile comprises Zicsr and Zifencei; zbasic additionally includes Zba, Zbb, Zbc, and Zbs; zbcrypto further adds Zbkc and Zbkx; and zpqc includes the custom extension used by the RS codes [6]. The M and C extensions are varied independently. The floating-point F extension is excluded as HQC relies on integer arithmetic; the vector extension V is omitted due to its resource overhead, but remains a candidate for future work.
We prioritize these standardized extensions specified in [4] over custom instructions because of their reuse potential across software workloads. The published custom extensions are omitted as they target algorithmic realizations outside of the selected kernels [7] or require the F extension [5], providing limited benefit relative to dedicated acceleration.
TABLE I EXPLORED ARCHITECTURAL CONFIGURATION PARAMETERS. P REFERS TO THE INTERNAL PARALLELIZATION OF THE HQC ACCELERATORS, AND TO THE WIDTH OF MEM2 AND MEM3. NUMBERS IN PARENtheses DENOTE DISTINCT CONFIGURATIONS.
| Group | Parameter | Alternatives |
|---|---|---|
| RISC-V(64 + 16) | XLENInterconnect widthBase ISAOptional extensionsISA profile | 32, 6432/64b (RV32), 64b (RV64)I or E for RV32, I for RV64none, M, C, M+Cbase, zbasic, zbcrypto, zpqc |
| HQC(34) | R-Unit / FYReed-Muller decoderReed-Solomon decoderP | disabled, R-Unit, R-Unit + FYdisabled, enableddisabled, enabled32, 64, 128 bit |
| FIPS 202(11) | AcceleratorSponge interfaceKECCAK-Permute | disabled, enabledbyte-aligned, block-aligned4, 8, 16 or 32 slices, full state |
- Accelerator Organization: Inter-kernel data dependencies within the KEM operations limit opportunities for concurrent execution. Therefore, we closely follow our design described in [6]: the R-UNIT (polynomial arithmetic), FY sampler, and RM/RS decoders share two local memories. Only one compute unit is active at a time, allowing the memories and interconnect logic to be reused, and to keep intermediate values within the accelerator subsystem. The internal parallelism is coupled to the memory-width.
FIPS 202 is integrated separately because of its streaming dataflow. It operates as a bus master and writes pseudorandom data or hash outputs directly to the destination memory after being configured by the processor. Its architecture varies the sponge interface and the implementation of the KECCAK permutation, comprising sliced variants based on [18] and our full-state implementation.
IV. EVALUATION METHODOLOGY
Table I summarizes the explored parameters yielding 29,920 functionally distinct architectures. KEMs are typically employed with ephemeral keys, and KEYGEN is also significantly less computationally intensive than ENCAPS and DECAPS for HQC [6]. Therefore, each architecture is evaluated for the Alice metric (KEYGEN + DECAPS) and the Bob metric (ENCAPS, therefore without RM- and RS-Decoder as unused during ENCAPS), using the HQC-1, HQC-3, and HQC-5 parameter sets. For the Alice metric, this yields , and for the Bob metric this yields 6,160 configurations per security level, resulting in 198,000 to be evaluated architecture-operation combinations.
To analyze this large number of configurations on a Pareto front, let be any architectural alternative between the described configurations, e.g., the presence or absence of the R-UNIT. Let be the set of Pareto-optimal configurations ordered from highest to lowest latency. For any
, let indicate whether selects , and define
For , define as the index of the first Pareto point that uses , and as the index of the last Pareto point that uses . We quantify the prevalence and continuity of through the occupancies
The total occupancy measures the prevalence of an architectural feature over the complete Pareto front; a value close to 1 indicates that the feature is required in almost all Pareto-optimal configurations. The relative occupancy measures the continuity of a feature between its first and last occurrence on the Pareto front. A high together with a low therefore indicates that the feature is relevant only within a limited region of the front, but is selected consistently throughout that active region.
Let form the maximal contiguous intervals contained in with the number of intervals
A large therefore indicates frequent changes in the selection of the respective architectural feature along the Pareto front, i.e., the feature is repeatedly activated and deactivated and thereby contributes to local LUT-latency refinements.
The persistence range is the maximal occurrence run ending at the minimum-latency point , with normalized length
If , the respective feature is required at the minimum-latency Pareto-optimal point. A larger indicates that the feature is required earlier along the Pareto front and remains selected up to the minimum-latency endpoint.
V. RESULTS
The software part was implemented in C based on the HQC reference [14], optimized for the selected processor width and ISA extensions, and the software was compiled using GCC Version 15.2.1 with the -Os flag. For the FIPS 202 software we used the RISC-V optimized implementations from the XKCP project for RV32 and RV64 [19]. Memory requirements were largest for HQC-5, ranging from 6 KB to 36 KB ("ROM", text and rodata sections) and from 30 KB to 45 KB ("RAM", sbss, bss, sdata, data sections, and maximum stack). The hardware design was described in SystemVerilog and implemented on the Xilinx Artix 7 FPGA using Vivado 2024.2.
As exhaustive simulation and physical implementation of all configurations is infeasible, we employ a two-stage characterization flow. First, the clock cycles of the KEM functions were measured using superset systems containing all required ISA extensions and accelerators. For each measurement, the

LUTs (linear)
Fig. 2. Bob metric (ENCAPS). Red Points - Pareto front. Blue Points - RV32. Black Points - RV64. B1: RV32E, 32b Inter. B8: B1 with 32b R-UNIT, B9: B8 with zbasic, B18: B8 with FIPS 202 (blocks, 16 slices), B19: B18 with zbasic, B47: RV32IM_zpqc, 64b inter., 128b R-UNIT, FY, FIPS 202 (bytes, full state). SoA refers to [7].
corresponding superset was loaded on the FPGA and the software was compiled for the selected ISA and accelerator configuration. All 198,000 KEM-operation results were verified against the reference implementation on the host server.
Second, resource utilization was reconstructed from implementation sweeps of the RISC-V, HQC, and FIPS 202 groups in Table I. All 80 RISC-V configurations were implemented, while the HQC and FIPS 202 sweeps used a fixed minimum RV32E processor and were conducted for 32- and 64-bit interconnects. Resource contributions of individual configurations were derived from the differences within these sweeps and combined to estimate full-system utilization. This was cross-verified against 200 full-system implementations distributed across the design space, yielding a mean LUT discrepancy of 2.56% and a maximum discrepancy of 5.42%. Timing was evaluated over the sweeps; the critical path remained in the processor, yielding achievable frequencies ranging from 76 MHz for the largest RV64 configuration to 102 MHz for the minimum RV32E.
LUTs were used as the primary metric for the FPGA resources, and the Flip-Flop usage stayed below 12.5K (4.7 % utilization). Required Block Random Access Memories (BRAMs) are detailed in Section V-C.
A. Pareto Analysis
Figs. 2 and 4 show the LUT-latency results of the explored HQC-1 configurations for the Bob and Alice metrics. Each point represents one architectural configuration. RV32 configurations are shown in blue, whereas RV64 configurations are shown in black. The configurations on the global LUT-latency Pareto front are highlighted in red.
As shown, the Pareto fronts range from 6.8 kLUTs to 24 kLUTs and reduce the latency by from 78.25 ms
| highest latency78.25 ms | lowest latency1.36 ms | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| RV32 | 98 | 1 | 98 | 1 | 1.00 | 1.00 | 1.00 | ||
| bus_width=32/64 | 79/19 | 1/71 | 89/98 | 5/5 | 0.89/0.68 | 0.00/0.09 | 0.81/0.19 | ||
| I/E | 33/65 | 4/1 | 98/96 | 14/14 | 0.35/0.68 | 0.02/0.00 | 0.34/0.66 | ||
| M | 52 | 19 | 98 | 4 | 0.65 | 0.43 | 0.53 | ||
| C | 15 | 4 | 98 | 13 | 0.16 | 0.01 | 0.15 | ||
| Base/Zbasic | 2/24 | 1/2 | 8/88 | 2/18 | 0.25/0.28 | 0.00/0.00 | 0.02/0.24 | ||
| Zbcrypto/Zpqc | 18/54 | 4/3 | 82/98 | 14/18 | 0.23/0.56 | 0.00/0.10 | 0.18/0.55 | ||
| R-UNIT | 91 | 8 | 98 | 1 | 1.00 | 0.93 | 0.93 | ||
| FY | 47 | 14 | 98 | 18 | 0.55 | 0.08 | 0.48 | ||
| RM | 82 | 12 | 98 | 3 | 0.94 | 0.68 | 0.84 | ||
| RS | 63 | 22 | 98 | 4 | 0.82 | 0.58 | 0.64 | ||
| FIPS 202 | 72 | 26 | 98 | 2 | 0.99 | 0.72 | 0.73 | ||
| P=32/64 | 45/28 | 8/27 | 53/80 | 2/2 | 0.98/0.52 | 0.00/0.00 | 0.46/0.29 | ||
| P=128 | 18 | 81 | 98 | 1 | 1.00 | 0.18 | 0.18 | ||
| FIPS=blocks/bytes | 68/4 | 26/95 | 94/98 | 2/1 | 0.99/1.00 | 0.00/0.04 | 0.69/0.04 | ||
| KECCAK=sliced4/sliced8 | 3/30 | 41/31 | 75/86 | 3/10 | 0.09/0.54 | 0.00/0.00 | 0.03/0.31 | ||
| KECCAK=sliced16/sliced32 | 12/7 | 28/26 | 59/44 | 10/7 | 0.38/0.37 | 0.00/0.00 | 0.12/0.07 | ||
| KECCAK=full_state | 20 | 71 | 98 | 4 | 0.71 | 0.12 | 0.20 |
Fig. 3. Occupancy statistics computed using the described evaluation methodology. For each Pareto-optimal design point in Fig. 4, the figure indicates which architectural options are active; each column represents one configuration. Selected mutually exclusive options are combined into a single row and distinguished using black and wine red. The columns on the right report the corresponding occupancy metrics for each architectural option.

Fig. 4. Alice metric (KEYGEN + DECAPS); configurations are detailed in Fig. 3. Red Points - Pareto front. Blue - RV32. Black - RV64. SoA refers to [7]
to 1.36 ms (Alice), and 7–20.4 kLUT at 30.86–0.50 ms (Bob). Overall, the explored configurations enable a fine-grained trade-off between LUTs and latency through the densely populated front; the median increment between adjacent non-dominated points is 160 LUTs for the Alice metric.
The Pareto fronts consist of regions with moderate slopes, separated by sharp latency reductions caused by accelerator integration. The crossover markers indicate the beginning of the corresponding persistence range : below each marker, no Pareto-optimal configuration exists without the respective accelerator. They therefore define an integration order, with the R-UNIT becoming the first mandatory accelerator for both metrics.
Fig. 3 details the architectural choices along the Alice Pareto front. All explored features contribute to Pareto optimality except RV64, which is excluded because of its resource overhead and lower frequency. The 32-bit interconnect is selected in most configurations ( ), whereas the base-ISA choice varies considerably, with RV32E appearing in approximately two-thirds of the points. The M extension becomes increasingly relevant toward lower latencies. The Zpqc profile is selected in of the Pareto-optimal configurations, demonstrating the benefit of its fine-grained instructions over the general-purpose carry-less multiplication provided by Zbc.
Among the accelerators, the R-UNIT exhibits the longest persistence range ( ), followed by the FIPS 202 accelerator. In contrast, the FY sampler has the highest , hence mainly contributes to local refinements of the Pareto front. The KECCAK variants provide additional fine-tuning. The block-level FIPS 202 interface dominates most of the Pareto front. Beyond a distinct transition point, the byte-level variant becomes Pareto-optimal and remains so ( ) for all lower-latency configurations.
B. Security Trade-Off
Fig. 5 shows the Pareto fronts for the different HQC security levels for the Alice metric. Absolute latency increases with the security level, while the overall shape and accelerator ordering of the Pareto fronts are the same for different security

Fig. 5. LUT-latency Pareto fronts for the Alice metric of the different HQC security levels.
TABLE II HQC-5 CODE AND DATA MEMORY FOR SELECTED ARCHITECTURAL CONFIGURATIONS. EACH ENTRY REPORTS THE MEMORY REQUIRED FOR THE RV32I BASELINE WITH THE INDICATED FEATURE ENABLED INDIVIDUALLY. # DENOTES THE NUMBER OF BRAM36 EQUIVALENTS.
| Configuration | ROM [kB] | RAM [kB] | Total # |
|---|---|---|---|
| RV32I | 35.0 | 44.0 | 26 |
| + RV32E | 36.4 | 44.0 | 26 |
| + C | 29.2 | 44.0 | 24 |
| + FIPS 202 | 22.0 | 44.0 | 22 |
| + RS decoder | 22.5 | 44.0 | 22 |
| + R-UNIT | 35.3 | 31.2 | 22 |
| All active | 5.9 | 30.5 | 10 |
Add 2# (P = 32)/4# (P = {64, 128}) for HQC Accelerators.
levels. Hence, the same acceleration hierarchy applies across all parameter sets. For example, to guarantee an Alice latency of at most 20 ms across all three security levels, the R-UNIT, RM decoder, Zpqc profile, and FIPS 202 accelerator are required. Overall, the explored architecture therefore enables application-specific selection across three dimensions: FPGA resources, latency, and required security level.
C. Memory
Table II shows how the explored configurations affect the code (MEM0 in Fig. 1) and data (MEM1 in Fig. 1) memory requirements for HQC-5. For code memory, several configurations provide substantial reductions. In particular, the C extension reduces the ROM requirement by approximately 6 kB, while the FIPS 202 accelerator reduces it by approximately 13 kB. Overall, processor code/data memory is reduced from 26 to 10 BRAM36 blocks, i.e., by more than 50%; however, at the cost of 2 (P = 32) or 4 (P = 64/128) additional BRAM36 blocks for the HQC accelerators.
D. Comparison with SoA
Table III shows a comparison with SoA FPGA implementations of HQC. Design [6] corresponds approximately to one point on our Pareto front, but implements an older HQC version. Compared to the tightly coupled RISC-V implementation [7], all of our configurations require fewer LUTs and achieve a lower latency, ranging from lower LUT utilization at lower latency to lower latency at lower LUT utilization (Alice metric). A major reason is likely our use of support-form representations and our combination of custom instructions with dedicated accelerators, rather than the custom Karatsuba-based multiplication instruction used in [7]. The full-hardware design [20] lies below the RISC-V front in the low latency region; however, it uses an older HQC version, supports only one parameter set, and does not provide software programmability. With respect to memory resources, our implementations require substantially fewer BRAMs than all compared prior works despite supporting all HQC parameter sets, with the most memory-efficient configuration fitting into 14 BRAMs compared to 148 BRAMs in [7], corresponding to a reduction.
TABLE III COMPARISON WITH RELATED HQC FPGA IMPLEMENTATIONS. RESOURCES ARE REPORTED AS LUTS/FFS/#, WITH LUTS AND FFS GIVEN IN THOUSANDS, AND # DENOTING BRAM36.
| Work | HQC | Resources [kLUT/kFF/#] | Key [ms] | Enc [ms] | Dec [ms] |
|---|---|---|---|---|---|
| Ours A1 | 1 | 7/4/26 | 14.43 | 30.86 | 63.82 |
| HW/SW [7]† | 1 | 34/22/148 | 20.73 | 42.02 | 73.97 |
| HW/SW [8]§ | 1 | 17.3/8.6/32 | 11.44 | 21.54 | 37.47 |
| Ours A98 | 1 | 24.1/11/14 | 0.25 | 0.49 | 1.11 |
| Ours A1 | 5 | 7/3/26 | 67.90 | 154.79 | 285.04 |
| Ours A98 | 5 | 24.1/11/14 | 0.89 | 1.78 | 3.64 |
| HW/SW [7]† | 5 | 34/22/148 | 134.36 | 276.46 | 433.33 |
| Older Version | |||||
| HW/SW‡ [6] | 1 | 14/7/27 | 0.56 | 1.31 | 5.57 |
| Full HW* [20] | 1 | 15.3/7.3/24 | 0.1 | 0.2 | 0.29 |
†: more powerful FPGA (Kintex-7).
*: Full-hardware implementation, older version (only HQC-1 counterpart).
§: Assumed 100 MHz clock; true clock frequency not reported.
VI. CONCLUSION
This work presented, to the best of our knowledge, the most comprehensive cross-layer design-space exploration of RISC-V-based HQC implementations on FPGA, yielding both the smallest and fastest RISC-V-based HQC implementations reported to date in terms of FPGA resources and latency. We proposed an architecture template that produces densely populated LUT-latency Pareto fronts on the Xilinx Artix 7 FPGA, enabling fine-grained architecture selection under application-specific constraints. Using our evaluation methodology, we identified how individual features of this template shape the Pareto front and distinguished features with a persistent impact across large regions from those that provide only local fine-tuning. All investigated architectural features appeared in at least one Pareto-optimal configuration, except for the 64-bit RISC-V variant. Future work should extend the explored processor space, e.g., by including the vector extension, and investigate multi-algorithm PQC platforms.
REFERENCES
[1] M. Mosca and M. Piani, “Quantum Threat Timeline Report 2024,” 2024.
[2] G. Alagic, D. Apon, D. Cooper, Q. Dang, T. Dang, J. Kelsey, J. Lichtinger, C. Miller, D. Moody, R. Peralta, R. Perlner, A. Robinson, D. Smith-Tone, and Y.-K. Liu, "Status Report on the Third Round of the NIST Post-Quantum Cryptography Standardization Process," National Institute of Standards and Technology (NIST), Tech. Rep. NIST IR 8413-upd1, 2022. [Online]. Available: https://doi.org/10.6028/NIST.IR.8413-upd1
[3] G. Alagic, M. Bros, P. Ciadoux, D. Cooper, Q. Dang, T. Dang, J. Kelsey, J. Lichtinger, Y.-K. Liu, C. Miller, D. Moody, R. Peralta, R. Perlner, A. Robinson, H. Silberg, D. Smith-Tone, and N. Waller, "Status Report on the Fourth Round of the NIST Post-Quantum Cryptography Standardization Process," National Institute of Standards and Technology, NIST Internal Report 8545, Mar. 2025. [Online]. Available: https://nvlpubs.nist.gov/nistpubs/ir/2025/NIST.IR.8545.pdf
[4] RISC-V International, “The RISC-V Instruction Set Manual, Volume I,” 2026. [Online]. Available: https://docs.riscv.org/reference/isa/v20260120/index.html
[5] T. Fritzmann, G. Sigl, and J. Sepúlveda, “RISQ-V: Tightly coupled RISC-V accelerators for post-quantum cryptography,” IACR Transactions on Cryptographic Hardware and Embedded Systems, pp. 239–280, 2020.
[6] M. Schöffel, J. Feldmann, and N. Wehn, “Code-based Cryptography in IoT: A HW/SW Co-Design of HQC,” in Proceedings of the 2022 IEEE 8th World Forum on Internet of Things (WF-IoT), Yokohama, Japan, Nov. 2022.
[7] A. Dolmeta, S. Di Matteo, E. Valea, M. Carmona, A. Loiseau, M. Martina, and G. Masera, "TYRCA: A RISC-V Tightly-Coupled Accelerator for Code-Based Cryptography," in 2025 Design, Automation & Test in Europe Conference (DATE), Mar. 2025, pp. 1–7. [Online]. Available: https://ieeexplore.ieee.org/document/10993202/
[8] S. C. Seo and Y. Kim, “A Hardware/Software Co-Optimization of HQC Using Tightly-Coupled Accelerators on a 32-bit Ibex Core,” IEEE Transactions on Circuits and Systems II: Express Briefs, vol. 73, no. 5, pp. 583–587, May 2026. [Online]. Available: https://ieeexplore.ieee.org/document/11414189/
[9] C. Aguilar-Melchor, J.-C. Deneuville, A. Dion, J. Howe, R. Malmain, V. Migliore, M. Nawan, and K. Nawaz, “Towards Automating Cryptographic Hardware Implementations: A Case Study of HQC,” in Code-Based Cryptography, J.-C. Deneuville, Ed. Cham: Springer Nature Switzerland, 2023, pp. 62–76.
[10] F. Antognazza, A. Barenghi, G. Pelosi, and R. Susella, “A High Efficiency Hardware Design for the Post-Quantum KEM HQC,” in 2024 IEEE International Symposium on Hardware Oriented Security and Trust (HOST), May 2024, pp. 431–441. [Online]. Available: https://ieeexplore.ieee.org/abstract/document/10545409
[11] M. Schöffel, J. Feldmann, and N. Wehn, “Efficient Hardware Implementation of Constant Time Sampling for HQC,” arXiv:2309.16493, Sep. 2023.
[12] P. He, Y. Tu, and J. Xie, “LOCS: LOw-Latency and ConStant-Timing Implementation of Fixed-Weight Sampler for HQC,” in 2023 IEEE International Symposium on Circuits and Systems (ISCAS), May 2023, pp. 1–5. [Online]. Available: https://ieeexplore.ieee.org/abstract/document/10181319
[13] Y. Tu, P. He, C. K. Koc, and J. Xie, “LEAP: Lightweight and Efficient Accelerator for Sparse Polynomial Multiplication of HQC,” IEEE Transactions on Very Large Scale Integration (VLSI) Systems, vol. 31, no. 6, pp. 892–896, Jun. 2023. [Online]. Available: https://ieeexplore.ieee.org/abstract/document/10068178
[14] C. A. Melchor, N. Aragon, S. Bettaieb, L. Bidoux, O. Blazy, J.-C. Deneuville, and P. Gaborit, “Hamming Quasi-Cyclic (HQC) (Version 5.0),” 2025. [Online]. Available: https://pqc-hqc.org/doc/hqc_specifications_2025_08_22.pdf
[15] National Institute of Standards and Technology (US), “SHA-3 Standard: Permutation-Based Hash and Extendable-Output Functions,” National Institute of Standards and Technology (U.S.), Washington, D.C., Tech. Rep., 2015. [Online]. Available: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf
[16] C. Aguilar-Melchor, O. Blazy, J.-C. Deneuville, P. Gaborit, and G. Zémor, “Efficient Encryption From Random Quasi-Cyclic Codes,” IEEE Transactions on Information Theory, vol. 64, no. 5, pp. 3927–3943, 2018.
[17] G. Bertoni, J. Daemen, M. Peeters, G. Van Assche, and R. Van Keer, "1001 Ways To Implement Keccak." [Online]. Available: https://keccak.team/files/Keccak1001.pdf
[18] G. Bertoni, J. Daemen, S. Hoffert, M. Peeters, G. Van Assche, and R. Van Keer, “Keccak in VHDL,” 2015. [Online]. Available: https://keccak.team/files/KeccakVHDL-3.1.zip
[19] XKCP Contributors, “eXtended Keccak Code Package (XKCP),” Sep. 2025. [Online]. Available: https://github.com/XKCP/XKCP
[20] S. Deshpande, C. Xu, M. Nawan, K. Nawaz, and J. Szefer, “Fast and Efficient Hardware Implementation of HQC,” in Selected Areas in Cryptography – SAC 2023, C. Carlet, K. Mandal, and V. Rijmen, Eds. Cham: Springer Nature Switzerland, 2024, pp. 297–321.