International Association for Cryptologic Research

International Association
for Cryptologic Research

Transactions on Cryptographic Hardware and Embedded Systems 2025

Accelerating NTT with RISC-V Vector Extension for Fully Homomorphic Encryption


Tiago B. Rodrigues
INESC-ID, Instituto Superior Técnico, Universidade de Lisboa, Lisboa, Portugal

Alexandre Rodrigues
INESC-ID, Instituto Superior Técnico, Universidade de Lisboa, Lisboa, Portugal

Manuel Goulão
INESC-ID, Instituto Superior Técnico, Universidade de Lisboa, Lisboa, Portugal

Pedro Tomás
INESC-ID, Instituto Superior Técnico, Universidade de Lisboa, Lisboa, Portugal

Leonel Sousa
INESC-ID, Instituto Superior Técnico, Universidade de Lisboa, Lisboa, Portugal


Keywords: NTT, Vectorization, RVV, RISC-V, Homomorphic Encryption, OpenFHE


Abstract

Fully Homomorphic Encryption (FHE) has gained increasing importance mainly due to its potential use in privacy-preserving cloud computing. This privacy stems from the computation being directly performed on data that is encrypted by the client. However, FHE comes with a major cost regarding computational requirements. When compared to processing in the unencrypted domain, the time it takes can be up to four orders of magnitude higher, which is particularly inconvenient for applications with time constraints. Hence, accelerating FHE is a major research line, by leveraging different mathematical schemes and algorithms to the use of specialized hardware accelerators targeting the most time-consuming operations. This paper targets the optimization of FHE by leveraging vectorized implementations in RISC-V processors, using the RISC-V Vector (RVV) extension. In particular, it implements and accelerates the Open-Source FHE library, OpenFHE, optimizing its Number Theoretic Transform (NTT) and the Inverse-NTT (INTT) components. In this library, different FHE algorithms (BGV, BFV, CKKS) were analyzed, optimized, and tested. For the NTT and INTT operations, a maximum speedup of 27.05x was obtained. Furthermore, for a multiplication with bootstrapping benchmark program in OpenFHE, a speedup of 1.94x for the CKKS scheme was attained. Additionally, neural network benchmarks exhibit a speedup of over 1.69x.

Publication

IACR Transactions on Cryptographic Hardware and Embedded Systems, Volume 2025, Issue 4

Paper

Artifact

Artifact number
tches/2025/a34

Artifact published
January 30, 2026

Badge
IACR CHES Artifacts Functional

README

ZIP (25500 bytes)  

View on Github

License

Some files in this archive are licensed under a different license. See the contents of this archive for more information.

Note that license information is supplied by the authors and has not been confirmed by the IACR.


BibTeX How to cite

Tiago B. Rodrigues, Alexandre Rodrigues, Manuel Goulão, Pedro Tomás, Leonel Sousa. (2025). Accelerating NTT with RISC-V Vector Extension for Fully Homomorphic Encryption. IACR Transactions on Cryptographic Hardware and Embedded Systems, 2025(4), 711–736. https://doi.org/10.46586/tches.v2025.i4.711-736. Artifact at https://artifacts.iacr.org/tches/2025/a34.