NTTGen
- 17 May 2022
- conference paper
- conference paper
- Published by Association for Computing Machinery (ACM) in Proceedings of the 19th ACM International Conference on Computing Frontiers
Abstract
Homomorphic encryption (HE) is a promising technique to ensure the security and privacy of applications in the cloud. Number Theoretic Transform (NTT) is a key operation in HE-based applications. HE requires vastly different NTT parameters to meet the performance and security requirements of applications. The increasing compute capabilities and flexibility of FPGAs make them attractive to accelerate NTT. However, programming FPGA still involves hardware design expertise and significant development effort. To close the gap, we propose NTTGen, a framework to automatically generate low latency NTT designs targeting HE-based applications. NTTGen takes application parameters, latency and hardware resource constraints as input, determines the design parameters, and produces synthesizable Verilog code as output. Low latency NTT implementations are obtained by varying the data, pipeline and batch parallelism. NTTGen utilizes streaming permutation network to reduce the interconnect complexity between stages in the NTT computation. The framework supports two types of NTT cores to perform modular arithmetic, the key computation in NTT: a low latency and resource efficient NTT core for a specific class of prime moduli and a general purpose NTT core for other primes. We further develop a design space exploration flow to identify the hardware design parameters of an optimal design. We evaluate NTTGen by generating designs for various NTT parameters. The designs result in up to 2.9X improvement in latency over the state-of-the-art FPGA implementations.Keywords
Funding Information
- U.S. National Science Foundation (SaTC-2104264)
This publication has 12 references indexed in Scilit:
- FPGA implementation of a run-time configurable NTT-based polynomial multiplication hardwareMicroprocessors and Microsystems, 2020
- HEAXPublished by Association for Computing Machinery (ACM) ,2020
- Highly Efficient Architecture of NewHope-NIST on FPGA using Low-Complexity NTT/INTTIACR Transactions on Cryptographic Hardware and Embedded Systems, 2020
- Better Bootstrapping for Approximate Homomorphic EncryptionPublished by Springer Science and Business Media LLC ,2020
- Fast Homomorphic Evaluation of Deep Discretized Neural NetworksPublished by Springer Science and Business Media LLC ,2018
- Automated accelerator generation and optimization with composable, parallel and pipeline architecturePublished by Association for Computing Machinery (ACM) ,2018
- Privacy-Friendly Forecasting for the Smart Grid Using Homomorphic Encryption and the Group Method of Data HandlingLecture Notes in Computer Science, 2017
- A Survey and Evaluation of FPGA High-Level Synthesis ToolsIEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 2015
- Modular multiplication without trial divisionMathematics of Computation, 1985
- Optimal Rearrangeable Multistage Connecting NetworksBell System Technical Journal, 1964