Paper 2024/1740
OpenNTT: An Automated Toolchain for Compiling High-Performance NTT Accelerators in FHE
Abstract
Modern cryptographic techniques such as fully homomorphic encryption (FHE) have recently gained broad attention. Most of these cryptosystems rely on lattice problems wherein polynomial multiplication forms the computational bottleneck. A popular method to accelerate these polynomial multiplications is the Number-Theoretic Transformation (NTT). Recent works aim to improve the practical deployability of NTT and propose toolchains supporting the NTT hardware accelerator design processes. However, existing design tools do not provide on-the-fly twiddle factor generation (TFG) which leads to high memory demands. Inspired by this situation, we present OpenNTT, a fully automated, open-source framework to compile NTT hardware accelerators with TFG for various NTT types and parameter sets. We address the challenge of combining conflict-free memory accesses and efficient, linear twiddle factor generation through a dedicated NTT processing order. Following this order, we develop a flexible twiddle factor generation method with minimal memory usage. These core concepts together with a frequency-optimized hardware architecture form our OpenNTT framework. We use OpenNTT to compile and test NTT hardware designs with various parameter sets on FPGAs. The obtained results show a clear memory reduction due to TFG and a speedup by 2.7× in latency and 2.2× in area-time-product, compared to prior arts.
Metadata
- Available format(s)
- Category
- Implementation
- Publication info
- Published elsewhere. Minor revision. ICCAD'24
- Keywords
- Hardware Design ToolNumber Theoretic Transformation (NTT)Twiddle Factor GenerationHomomorphic Encryption (FHE)
- Contact author(s)
-
florian krieger @ iaik tugraz at
florian hirner @ iaik tugraz at
sujoy sinharoy @ iaik tugraz at - History
- 2024-11-13: revised
- 2024-10-24: received
- See all versions
- Short URL
- https://ia.cr/2024/1740
- License
-
CC BY
BibTeX
@misc{cryptoeprint:2024/1740, author = {Florian Krieger and Florian Hirner and Ahmet Can Mert and Sujoy Sinha Roy}, title = {{OpenNTT}: An Automated Toolchain for Compiling High-Performance {NTT} Accelerators in {FHE}}, howpublished = {Cryptology {ePrint} Archive, Paper 2024/1740}, year = {2024}, url = {https://eprint.iacr.org/2024/1740} }