Paper 2026/523

RISC-V based Vectorization of Classic McEliece Key Generation

Mahnaz Namazi Rizi, Leiden University
Nusa Zidaric, Leiden University
Lejla Batina, Radboud University Nijmegen
Nele Mentens, Leiden University, KU Leuven
Abstract

Quantum computers can break or weaken classical cryptography using Shor’s and Grover’s algorithms. This threat drives the development of post-quantum cryptography (PQC) algorithms, such as the Classic McEliece (CM) algorithm, which resists quantum attacks by relying on hard problems in coding theory. However, the complex computation and large key size make it challenging to implement CM in an efficient way in terms of computational performance. This research is the first to thoroughly explore and implement RISC-V Vector Extensions (RVV) for the acceleration of the CM key generation process. First, an evaluation is done of auto-vectorized and manually vectorized implementations of CM using the RISC-V Vector Extension Version 1.0 (RVV1.0), based on multiple vector register configurations. Further, several new custom RVV instructions are proposed to speed up the implementation even more. The presented work gives insight into the practical implementation capabilities of RVV for the speed-up of CM key generation on an FPGA.

Metadata
Available format(s)
PDF
Category
Implementation
Publication info
Preprint.
Keywords
Classic McElieceRVVRISC-VCustom vector extensions
Contact author(s)
m namazi rizi @ liacs leidenuniv nl
n zidaric @ liacs leidenuniv nl
lejla @ cs ru nl
n mentens @ liacs leidenuniv nl
History
2026-03-17: approved
2026-03-15: received
See all versions
Short URL
https://ia.cr/2026/523
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2026/523,
      author = {Mahnaz Namazi Rizi and Nusa Zidaric and Lejla Batina and Nele Mentens},
      title = {{RISC}-V based Vectorization of Classic {McEliece} Key Generation},
      howpublished = {Cryptology {ePrint} Archive, Paper 2026/523},
      year = {2026},
      url = {https://eprint.iacr.org/2026/523}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.