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

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.

Authors

Institutions

Publication Details

Journal
IACR Transactions on Cryptographic Hardware and Embedded Systems
Published
2025-09-05
DOI
https://doi.org/10.46586/tches.v2025.i4.711-736
Primary Topic
Cryptography and Data Security
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

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

Tiago Rodrigues, Pedro Tomás, Leonel Sousa, Manuel Goulão et al.
IACR Transactions on Cryptographic Hardware and Embedded Systems
Cryptography and Data Security
article

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

Tiago Rodrigues, Pedro Tomás, Leonel Sousa, Manuel Goulão, Alexandre Rodrigues
article en

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.

IACR Transactions on Cryptographic Hardware and Embedded SystemsVol. 2025(4)
Instituto de Engenharia de Sistemas e Computadores Investigação e Desenvolvimento (PT), University of Lisbon (PT)
European Defence Fund, European Commission, Fundação para a Ciência e a Tecnologia
Openalex Percentile: Top 88%
Cryptography and Data Security
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.