Paper 2024/1890 Original: eprint.iacr.org/2024/1890 ↗

Optimized FPGA Architecture for Modular Reduction in NTT

Tolun Tosun
Selim Kırbıyık
Emre Koçer
Ersin Alaybeyoğlu
Abstract

In this paper, we present a comprehensive analysis of various modular multiplication methods for Number Theoretic Transform (NTT) on FPGA. NTT is a critical and time-intensive component of Fully Homomorphic Encryption (FHE) applications while modular multiplication consumes a significant portion of the design resources in an NTT implementation. We study the existing modular reduction approaches from the literature, and implement particular methods on FPGA. Specifically Word-Level Montgomery (WLM) for NTT friendly primes [20] and K2 RED [4]. For improvements, we explore the trade-offs between the number of available primes in special forms and hardware cost of the reduction methods. We develop a DSP multiplication-optimized version of WLM, which we call WLM-Mixed. We also introduce a subclass of Proth primes, referred to as Proth-l primes, characterized by a low and fixed signed Hamming Weight. This special class of primes allows us to design multiplication-free shift-add versions of K2 RED and naive Montgomery reduction [21], referred to as K2 RED-Shift and Montgomery-Shift. We provide in-depth evaluations of these five reduction methods in an NTT architecture on FPGA. Our results indicate that WLM-Mixed is highl resource-efficient, utilizing only 3 DSP multiplications for 64-bit coefficient moduli. On the other hand, K2 RED-Shift and Montgomery-Shift offer DSP-free alternatives, which can be beneficial in specific scenarios.

Metadata
Available format(s)
PDF
Category
Implementation
Publication info
Preprint.
History
2025-08-22: last updated
2024-11-20: published
Short URL
https://ia.cr/2024/1890
License
https://creativecommons.org/licenses/by/4.0/

BibTeX

@misc{cryptoeprint:2024/1890,
      author = {Tolun Tosun and Selim Kırbıyık and Emre Koçer and Ersin Alaybeyoğlu},
      title = {Optimized FPGA Architecture for Modular Reduction in NTT},
      howpublished = {Cryptology {ePrint} Archive, Paper 2024/1890},
      year = {2024},
      url = {https://eprint.iacr.org/2024/1890}
}
Note: In order to protect the privacy of readers, this archive does not use cookies or embedded third party content.