Paper 2026/1608

Efficient Large-Integer Arithmetic for FHE

Ahmad Al Badawi, Duality Technologies
Andreea Alexandru, Duality Technologies
Gurgen Arakelov, Fair Math
Charles Gouert, NVIDIA
Sergey Gomenyuk, Fair Math
Valentina Kononova, Fair Math
Yarkın Doröz, NVIDIA
Yuriy Polyakov, Duality Technologies
Abstract

Fully Homomorphic Encryption (FHE) has emerged as one of the key technologies for privacy-preserving computation, enabling arbitrary computation directly on encrypted data. Vectorized FHE schemes, such as Brakerski/Fan--Vercauteren (BFV), Brakerski--Gentry--Vaikuntanathan (BGV), and Cheon--Kim--Kim--Song (CKKS), are typically used in applications dealing with large datasets, for example, confidential database queries and private ML inference. These FHE schemes are based on the computational hardness of Ring Learning with Errors (RLWE) and share a common algebraic foundation: arithmetic over high-dimensional polynomial rings with coefficient moduli spanning hundreds or thousands of bits, far exceeding the native arithmetic capabilities of modern processors. This article surveys the evolution of large-integer arithmetic in RLWE-based FHE libraries, with a focus on the Residue Number System (RNS) techniques used in practically all modern implementations. We give a formal treatment of the two fundamental RNS building blocks --- basis extension and scaling --- that require information about the magnitude of a large value and are therefore incompatible with a purely residue-wise view of arithmetic. We contrast the two principal algorithmic approaches to these operations: the integer-only approach of Bajard, Eynard, Hasan, and Zucca (BEHZ), which tolerates approximation overflows and corrects them with auxiliary redundant moduli, and the floating-point approach of Halevi, Polyakov, and Shoup (HPS). We then show how these primitives compose into the higher-level RNS procedures used across all vectorized RLWE schemes and review how their adoption reshaped the architecture and performance of libraries such as HElib, SEAL, PALISADE/OpenFHE, HEAAN, and Lattigo. We give particular attention to the scaling error inherent in the original Full RNS variant of CKKS, and to the more recent techniques --- reduced-error scaling, composite scaling, and grafting --- that eliminate it or restore flexible, high-precision rescaling from within the residue representation. We also cover GPU-accelerated implementations and close by discussing a renewed, and so far exploratory, interest in positional (non-RNS) representations, raising the question of how such approaches might compare with the Full RNS variants that dominate FHE implementations today.

Metadata
Available format(s)
PDF
Category
Implementation
Publication info
Preprint.
Keywords
Fully Homomorphic EncryptionResidue Number SystemCKKSBGVBFVLarge-Integer Arithmetic
Contact author(s)
aalbadawi @ dualitytech com
aalexandru @ dualitytech com
gurgen @ fairmath xyz
cgouert @ nvidia com
sergey @ fairmath xyz
valentina @ fairmath xyz
ydoroz @ nvidia com
ypolyakov @ dualitytech com
History
2026-08-06: approved
2026-08-04: received
See all versions
Short URL
https://ia.cr/2026/1608
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2026/1608,
      author = {Ahmad Al Badawi and Andreea Alexandru and Gurgen Arakelov and Charles Gouert and Sergey Gomenyuk and Valentina Kononova and Yarkın Doröz and Yuriy Polyakov},
      title = {Efficient Large-Integer Arithmetic for {FHE}},
      howpublished = {Cryptology {ePrint} Archive, Paper 2026/1608},
      year = {2026},
      url = {https://eprint.iacr.org/2026/1608}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.