betaFeedback

WorksComputer Science

Encrypted Fixed-Point Multiplication in Quasilinear Complexity

Abstract

Homomorphic encryption enables computation on encrypted data, but its high computational overhead remains a central obstacle. We overcome this obstacle asymptotically for high-precision fixed-point arithmetic. In this paper, we introduce focused encoding, which represents a fixed-point number of nn-bit precision using a polynomial of degree O(n/log⁡n)O(n/\log n) over a polynomially bounded modulus by concentrating precision at one embedding. We then introduce an error-shaping technique for homomorphic operations to preserve the encoding. This yields an encrypted fixed-point multiplication algorithm for the CKKS scheme that runs in online time O(nlog⁡n)O(n \log n) at nn-bit precision for any fixed multiplicative depth, with security parameter λ=O(n/log⁡2n)λ= O(n/\log^2 n). Further, we develop bootstrapping for focused encoding to overcome the quadratic cost of conventional bootstrapping. We bootstrap ciphertext coefficients at an enlarged scale and shape the resulting error to preserve focused encoding, at the cost of additional modulus consumption. Then, to reduce the remaining logarithmic overhead, we decompose the ciphertext into components over a smaller subring and bootstrap each separately. This reduces the online cost per multiplication, including bootstrapping, to O(nlog⁡n+n(log⁡λ)3log⁡log⁡λ)O(n \log n + n (\log λ)^3 \log \log λ) for security parameter λ=O(n/log⁡3n)λ= O(n/\log^3 n).

Introduction

Encryption protects the confidentiality of data in storage and communication, but conventional computation requires exposing that data in plaintext, problematic for sattistical analysis, machine-learning inference, and other computations on confidential data. Homomorphic encryption allows a server to compute directly on ciphertexts: The server need not hold the decryption key or receive the intermediate plaintext values. This makes homomorphic encryption a natural approach to computation on private data, but its computational overhead has remained a central obstacle.

For numerical computation, this overhead depends on both the security parameter and the precision of the values being processed. A basic operation is fixed-point multiplication: given two numbers represented to nn bits of precision, compute their product to the required precision. In plaintext, this operation reduces to integer multiplication and rounding, and admits quasilinear bit complexity [6, 25]. It is natural to ask how much additional work is necessary when the inputs and output must remain encrypted. We focus on the cost of multiplying a single pair of high-precision numbers, including the cost of maintaining ciphertexts for subsequent computation.

Homomorphic encryption schemes based on Ring-Learning With Errors (RLWE) [31] provide efficient arithmetic on encrypted data by batching multiple slots with SIMD. BFV [5, 18] and BGV [4] support exact arithmetic over plaintext rings, while CKKS [13] supports approximate arithmetic on vectors of real or complex numbers. Their ability to pack many values into one ciphertext can amortize the cost of a ring operation across many independent computations. For a single high-precision value, however, the cost of the entire ciphertext must be accounted for. In the standard CKKS encoding, nn bits of precision require a scale factor larger than nn bits, and multiplication followed by rescaling consumes a comparable number of modulus bits. The ciphertext modulus must accommodate this scale, while the ring dimension must also grow linearly to maintain security as the modulus increases [1]. Consequently, the conventional representation entails a quadratic dependence on input plaintext size, even before accounting for the cost of arithmetic on ciphertexts.

One can instead represent the inputs as encrypted bits or small digits and evaluate an arithmetic circuit, as in the gate-bootstrapping approach of TFHE [10]. In particular, Liu and Wang [LW23] achieve an amortized bit cost of O~(λ)\widetilde{O}(\lambda) per gate through batch bootstrapping. However, applied to a multiplication circuit of size O(M(n))O(M(n)), this gives a O~(λM(n))\widetilde{O}(\lambda M(n)) bound, where M(n)M(n) denotes the cost of plaintext integer multiplication. Thus, batching alone does not establish a bound matching plaintext multiplication when the security parameter is considered to be large.

We study this question in a model that permits preprocessing depending on the parameters, but independent of the inputs. The preprocessing can be reused across subsequent computations; the online cost measures the work performed once the inputs are available. Our central question is:

Can encrypted fixed-point multiplication match the asymptotic cost of plaintext multiplication in an appropriate security regime, including the bootstrapping needed for continued computation, with fixed input-independent preprocessing?

Contributions

Our starting point is focused encoding, which represents a single number at n=Θ(Nlog⁡N)n = \Theta(N \log N) bits of precision with a polynomial of degree NN with polynomially bounded coefficients. We employ a focal element, shaping the error to be exponentially small at the focus embedding and polynomially bounded elsewhere. As a result, we obtain quasilinear levelled multiplication. However, conventional bootstrapping goes through an ordinary coefficient encoding at the full message precision, reintroducing quadratic complexity.

We overcome this bottleneck by bootstrapping the small coefficients of the encoded polynomial, and then restoring the focused error shape. To do this, we find a polynomial that is multiple of the focal element that is congruent to one modulo the output modulus, which is obtained as a product of focal element and its modular inverse. Multiplying the polynomial to the ciphertext before rescaling, this preserves the message while giving the error the desired shape. While this requires additional modulus to absorb the noise amplification, it is sufficient to yield quasilinear bootstrapping which preserves the message precision.

Then, to reduce the remaining logarithmic overhead, we perform coefficient bootstrapping over a smaller subring. As precision grows, the full ring exceeds the ring dimension needed for secure bootstrapping at the chosen modulus and security parameter λ\lambda. Hence, we sample the secret key from the subring, which allows us to split the ciphertext into components and be bootstrapped separately. After recombining the refreshed components, we use the focal element uu to shape their combined error.

Together, these techniques give quasilinear levelled encrypted multiplication and bootstrapping whose cost is quasilinear in the precision and polylogarithmic in the security parameter. We allow fixed, input-independent preprocessing, which may take exponential time and is reusable across computations.

Theorem 1.1 (Informal). Using an O(nlog⁡n)O(n \log n)-time integer multiplication algorithm, levelled encrypted fixed-point multiplication at nn-bit precision has online time complexity O(nlog⁡n)O(n \log n) for any fixed multiplicative depth, provided λ=O(n/log⁡2n)\lambda= O(n/\log^{2} n). Including bootstrapping for continued computation, the online time per multiplication is O(nlog⁡n+n(log⁡λ)3log⁡log⁡λ)O(n \log n + n(\log\lambda)^3 \log\log\lambda), provided λ=O(n/log⁡3n)\lambda= O(n/\log^{3} n).

The formal statements are given in Theorems 3.8, 3.10 and 3.11.

We also give an input encoder of quasilinear time complexity that passes through intermediate encodings in a tower of cyclotomic rings, avoiding the quadratic expansion of the direct encoding formula.

Related Works

High-Precision Homomorphic Arithmetic

Several works reduce the cost of high-precision arithmetic by changing the plaintext representation. CLPX [16] uses polynomial plaintext moduli to represent large integers with reduced noise growth, and GBFV [19] extends this approach to support SIMD packing and bootstrapping. Geelen and Vercauteren [20] improve GBFV bootstrapping by evaluating SlotToCoeff entirely in GBFV and reducing the work performed in ordinary BFV. Kim [27] instead bootstraps the ciphertext noise through CKKS, supporting large-precision GBFV instances, including CLPX. These results concern modular arithmetic with a limited choice of modulus.

On the other hand, Gao and Zheng [21] implement modular arithmetic on top of CKKS by representing words across multiple CKKS slots. Wei et al. [35] and Liu et al. [30] extend this approach to large prime moduli and arbitrary plaintext moduli, respectively, with conversions to Boolean or digit representations using a constant number of bootstrapping calls. Jang and Lee [26] also support large-characteristic finite-field arithmetic, including modular arithmetic, through bi-spectral encoding. However, without restrictions on the plaintext modulus, their encoding conversions require dense n×nn \times n matrix, incurring Ω(n2)\Omega(n^{2}) bit complexity, despite the constant number of bootstrapping calls.

We note that there is no straightforward method to reduce fixed-point arithmetic to modular arithmetic with fixed modulus without additional operations like bit decomposition.

For approximate arithmetic, Tuple-CKKS [7] decomposes ciphertexts into multiple components, but there is no known methods for bootstrapping Tuple-CKKS ciphertexts. High-precision bootstrapping has also been developed through improved modular approximation [29], repeated bootstrapping in Meta-BTS [2], and discrete-CKKS-based precision enhancement [14]. While these techniques improve the precision of bootstrapping, it does not achieve quasilinear complexity for a multiplication.

We obtain a fixed-point encrypted multiplication algorithm in quasilinear complexity, and obtain the same complexity as plaintext under certain security conditions.

Concurrent Work

Several concurrent works trade slot capacity for precision in approximate homomorphic encryption, using a public ring element to suppress error on focus slots while allowing larger error in background slots. Dumezy [17] proposes a framework including bootstrapping, but their bootstrapping passes through an ordinary coefficient encoding, whose scale and base modulus must accommodate the full target precision. Thus, nn-bit precision still requires Ω(n)\Omega(n) modulus bits at this stage, giving at least quadratic time complexity. Ma et al. [34] introduce a similar framework named GCKKS, which did not contain bootstrapping. Their follow-up work [33] combines low-precision overflow extraction with iterative ciphertext splitting and precision doubling. However, the ciphertext count doubles at each cleaning stage, costing O(n)O(n) homomorphic ring operations to reach nn-bit precision. Liang et al. [28] extends to different precision requirements across slots, but does not contain bootstrapping. Meanwhile, our earlier preprint [15] presented the framework as focused encoding and bootstrapping using focal units.

Our present construction is the first to obtain quasilinear complexity in fixed-point multiplication including bootstrapping, and we achieve this by refreshing the small coefficients over a subring and then restores the focused error shape, avoiding this expansion into many full-ring ciphertexts.

Preliminaries

Notations

Write [d]={0,…,d−1}[d] = \{0, \ldots, d - 1\}. Let ⊙\odot denote componentwise multiplication, and ere_r the rr-th standard basis vector, indexed by r∈[d]r \in[d]. log⁡\log denotes the logarithm with base 2.

Let NN be a power-of-two integer, and denote R=Z[X]/(XN+1)\mathcal{R} = \mathbb{Z}[X]/(X^N + 1), K=Q[X]/(XN+1)\mathcal{K} = \mathbb{Q}[X]/(X^N + 1), KR=K⊗QR=R[X]/(XN/2−i)\mathcal{K}_{\mathcal{R}} = \mathcal{K} \otimes_{\mathbb{Q}} \mathcal{R} = \mathbb{R}[X]/(X^{N/2} - i). The ℓ∞\ell^\infty, ℓ2\ell^2, and ℓ1\ell^1-norms on KR\mathcal{K}_{\mathcal{R}} are defined with respect to its real coefficient vector. Given m∈KR=C[X]/(XN/2−i)m \in\mathcal{K}_{\mathcal{R}} = \mathbb{C}[X]/(X^{N/2} - i), [m]∈CN/2[m] \in\mathbb{C}^{N/2} denotes its complex coefficient vector.

For m∈Km \in\mathcal{K} and a modulus QQ, [m]Q[m]_Q denotes the centered remainder mod QQ. For m∈KRm \in\mathcal{K}_{\mathcal{R}}, [m]∈R[m] \in\mathcal{R} denotes coefficientwise rounding to the nearest integer. Given an invertible element u∈RQu \in\mathcal{R}_Q, denote its modular inverse as [u−1]Q[u^{-1}]_Q.

For a positive integer MM, write ζM=exp⁡(2πi/M)\zeta_M = \exp(2\pi i/M), and set ζ=ζ2N\zeta= \zeta_{2N}. For j∈[N/2]j \in[N/2], σj:KR→C\sigma_j : \mathcal{K}_{\mathcal{R}} \to\mathbb{C} denotes evaluation at ζ5j\zeta^{5j}, and the canonical embedding is σ(m)=(σj(m))j∈[N/2]∈CN/2\sigma(m) = (\sigma_j(m))_{j \in[N/2]} \in\mathbb{C}^{N/2}. For m∈KRm \in\mathcal{K}_{\mathcal{R}}, its canonical norm is ∥m∥∞can=∥σ(m)∥∞\lVert m\rVert_\infty^{\mathrm{can}} = \lVert\sigma(m)\rVert_\infty. Write κj\kappa_j for the automorphism X↦X5jX \mapsto X^{5^j}.

Fixed-Point and Polynomial Multiplication

We concern ourselves with fixed-point multiplication at nn-bit precision. Given x,y∈[−1,1]x,y \in[-1,1] represented in fixed-point form with nn fractional bits, the task is to compute an approximation $z satisfying

∣z−xy∣≤2−n.\lvert z-xy\rvert\le2^{-n}.

Fixed-point multiplication at nn-bit precision and modular multiplication with an nn-bit modulus both have bit complexity O(M(n))O(M(n)), using fast rounding and division [6]. Schönhage–Strassen multiplication gives

M(b)=O(blog⁡blog⁡log⁡b),M(b)=O(b\log b\log\log b),

while Harvey and van der Hoeven [25] achieve O(blog⁡b)O(b\log b).

For polynomials, consider binary representation of coefficients. We denote M(N,b)M(N,b) to be the bit cost of multiplying two polynomials of degree less than NN with coefficients of bb-bit size. By Kronecker substitution [6],

M(N,b)=O(M(N(b+log⁡N))).M(N,b)=O(M(N(b+\log N))).

Residue Number System (RNS) and Number Theoretic Transform (NTT) representation can reduce the time complexity for specific cases, but we do not consider them here.

CKKS Scheme

CKKS [13] is an RLWE-based levelled homomorphic encryption scheme that supports approximate computation on a vector of complex numbers. Fix an error distribution χ\chi on R\mathcal{R} within ∥e∥∞≤Σ\lVert e\rVert_\infty\le\Sigma, e.g. a discrete Gaussian truncated at Σ\Sigma. It consists of the following algorithms.

  • KeyGen(1λ1^\lambda). Samples a secret key sk←HWT(h)\mathsf{sk}\leftarrow\mathcal{HWT}(h), whose coefficient vector is uniform over {0,±1}N\{0,\pm1\}^{N} of Hamming weight hh.

  • Ecd(z;Δz;\Delta). Given z∈CN/2z\in\mathbb{C}^{N/2} and a scaling factor Δ\Delta, returns ⌊Δσ−1(z)⌉∈R\lfloor\Delta\sigma^{-1}(z)\rceil\in\mathcal{R}.

  • Dcd(pt;Δ\mathsf{pt};\Delta). Given pt∈R\mathsf{pt}\in\mathcal{R}, returns σ(pt)/Δ∈CN/2\sigma(\mathsf{pt})/\Delta\in\mathbb{C}^{N/2}.

  • Encsk(pt)_{\mathsf{sk}}(\mathsf{pt}). Given pt∈R\mathsf{pt}\in\mathcal{R}, samples a uniform mask a∈RQa\in\mathcal{R}_{Q} and an error eEnc←χe_{\mathrm{Enc}}\leftarrow\chi, and returns (pt,0)+(−a⋅sk+eEnc,a)(\mathsf{pt},0)+(-a\cdot\mathsf{sk}+e_{\mathrm{Enc}},a).

  • Decsk(ct)_{\mathsf{sk}}(\mathsf{ct}). Given ct=(b,a)∈RQ2\mathsf{ct}=(b,a)\in\mathcal{R}_{Q}^{2}, returns [b+a⋅sk]Q[b+a\cdot\mathsf{sk}]_{Q}.

  • KSsk→sk′(ct)_{\mathsf{sk}\to\mathsf{sk}'}(\mathsf{ct}). Given ct=(b,a)∈RQ2\mathsf{ct}=(b,a)\in\mathcal{R}_{Q}^{2} under key sk\mathsf{sk} and a switching key swksk→sk′∈RPQ2\mathsf{swk}_{\mathsf{sk}\to\mathsf{sk}'}\in\mathcal{R}_{PQ}^{2}, an encryption of P⋅skP\cdot\mathsf{sk} under sk′\mathsf{sk}' for an auxiliary modulus PP, returns

KSsk→sk′(ct)=(b,0)+⌊P−1a⋅swksk→sk′⌉∈RQ2.\mathrm{KS}_{\mathsf{sk}\to\mathsf{sk}'}(\mathsf{ct})=(b,0)+\left\lfloor P^{-1}a\cdot\mathsf{swk}_{\mathsf{sk}\to\mathsf{sk}'}\right\rceil\in\mathcal{R}_{Q}^{2}.

References

  1. [1][Alb17] Martin R. Albrecht. On dual lattice attacks against small-secret lwe and parameter choices in helib and seal. In Annual International Conference on the Theory and Applications of Cryptographic Techniques, pages 103–129. Springer, 2017.DOI
  2. [2][BCC+22] Youngjin Bae, Jung Hee Cheon, Wonhee Cho, Jaehyung Kim, and Taekyung Kim. META-BTS: Bootstrapping precision beyond the limit. In ACM SIGSAC CCS, 2022.
  3. [3][BCK+23] Youngjin Bae, Jung Hee Cheon, Jaehyung Kim, Jai Hyun Park, and Damien Stehlé. HERMES: Efficient ring packing using MLWE ciphertexts and application to transciphering. In Advances in Cryptology – CRYPTO, pages 37–69, 2023.
  4. [4][BGV12] Zvika Brakerski, Craig Gentry, and Vinod Vaikuntanathan. (leveled) fully homomorphic encryption without bootstrapping. In Proceedings of the 3rd Innovations in Theoretical Computer Science Conference, pages 309–325, 2012.
  5. [5][Bra12] Zvika Brakerski. Fully homomorphic encryption without modulus switching from classical GapSVP. In Advances in Cryptology – CRYPTO, pages 868–886, 2012.DOI
  6. [6][BZ10] Richard P. Brent and Paul Zimmermann. Modern Computer Arithmetic. Cambridge University Press, 2010.DOI
  7. [7]Jung Hee Cheon, Wonhee Cho, Jaehyung Kim, and Damien Stehlé. Homomorphic multiple precision multiplication for CKKS and reduced modulus consumption. In ACM SIGSAC CCS, pages 696–710, 2023.DOI
  8. [8]Hao Chen, Ilaria Chillotti, and Yongsoo Song. Improved bootstrapping for approximate homomorphic encryption. In Advances in Cryptology – EUROCRYPT, 2019.DOI
  9. [9]Ronald Cramer, Léo Ducas, Chris Peikert, and Oded Regev. Recovering short generators of principal ideals in cyclotomic rings. In Annual International Conference on the Theory and Applications of Cryptographic Techniques, pages 559–585. Springer, 2016.DOI
  10. [10]Ilaria Chillotti, Nicolas Gama, Mariya Georgieva, and Malika Izabachène. TFHE: Fast fully homomorphic encryption over the torus. Journal of Cryptology, 33(1):34–91, 2020.DOI
  11. [11]Jung Hee Cheon, KyooHyung Han, Andrey Kim, Miran Kim, and Yongsoo Song. Bootstrapping for approximate homomorphic encryption. In Advances in Cryptology – EUROCRYPT, 2018.DOI
  12. [12]Jung Hee Cheon, Dongwoo Kim, and Duhyeong Kim. Efficient homomorphic comparison methods with optimal complexity. In Advances in Cryptology – ASIACRYPT, pages 221–256, 2020.DOI
  13. [13]Jung Hee Cheon, Andrey Kim, Miran Kim, and Yongsoo Song. Homomorphic encryption for arithmetic of approximate numbers. In International conference on the theory and application of cryptology and information security, pages 409–437. Springer, 2017.DOI
  14. [14]Hyeongmin Choe, Jaehyung Kim, Damien Stehlé, and Elias Suvanto. Leveraging discrete CKKS to bootstrap in high precision. In ACM SIGSAC CCS, 2025.DOI
  15. [15]Jung Hee Cheon and Junho Lee. High-precision CKKS with focal units. Cryptology ePrint Archive, Paper 2026/2531, 2026.
  16. [16]Hao Chen, Kim Laine, Rachel Player, and Yuhou Xia. High-precision arithmetic in homomorphic encryption. In Topics in Cryptology – CT-RSA, 2018.DOI
  17. [17]Jules Dumezy. Fully homomorphic encryption for small batches of complex numbers. Cryptology ePrint Archive, Paper 2026/2513, 2026.
  18. [18]Junfeng Fan and Frederik Vercauteren. Somewhat practical fully homomorphic encryption. Cryptology ePrint Archive, Paper 2012/144, 2012.
  19. [19]Robin Geelen and Frederik Vercauteren. Fully homomorphic encryption for cyclotomic prime moduli. In Advances in Cryptology – EUROCRYPT, 2025.DOI
  20. [20]Robin Geelen and Frederik Vercauteren. Better GBFV bootstrapping and faster encrypted edit distance computation. IACR Communications in Cryptology, 2(4), 2026.DOI
  21. [21]Mingyu Gao and Hongren Zheng. FHE for SIMD arithmetic logic units with amortized O(1) bootstrapping per ciphertext. In Advances in Cryptology – CRYPTO, 2026.DOI
  22. [22]Kyoo hyung Han, Minki Hhan, and Jung Hee Cheon. Improved homomorphic discrete fourier transforms and FHE bootstrapping. IEEE Access, 2019.DOI
  23. [23]Kyoo hyung Han and Dohyeong Ki. Better bootstrapping for approximate homomorphic encryption. In Topics in Cryptology – CT-RSA, 2020.DOI
  24. [24]Shai Halevi and Victor Shoup. Faster homomorphic linear transformations in HElib. In Advances in Cryptology – CRYPTO, 2018.DOI
  25. [25]David Harvey and Joris van der Hoeven. Integer multiplication in time O(n log n). Annals of Mathematics, 193(2):563–617, 2021.DOI
  26. [26]Daehyun Jang and Junho Lee. Arithmetic for large-characteristic finite fields in CKKS. Cryptology ePrint Archive, Paper 2026/1958, 2026.
  27. [27]Jaehyung Kim. Bootstrapping GBFV with CKKS. In Advances in Cryptology – ASIACRYPT, 2026. To appear; Cryptology ePrint Archive, Paper 2025/888.
  28. [28]Zhaoyang Liang, Runkun Liu, Jingwei Fang, and Dan Ding. A new approach to reducing modulus requirements in homomorphic computation: Precision allocation in CKKS. Cryptology ePrint Archive, Paper 2026/2562, 2026.
  29. [29]Joon-Woo Lee, Eunsang Lee, Yongwoo Lee, Young-Sik Kim, and Jong-Seon No. High-precision bootstrapping of RNS-CKKS homomorphic encryption using optimal minimax polynomial approximation and inverse sine function. In Advances in Cryptology – EUROCRYPT, 2021.DOI
  30. [30]Jiaming Liu, Shihe Ma, Anyu Wang, and Xiaoyun Wang. High-precision homomorphic ALU over arbitrary moduli with O(1) bootstrapping. Cryptology ePrint Archive, Paper 2026/1869, 2026.
  31. [31]Vadim Lyubashevsky, Chris Peikert, and Oded Regev. On ideal lattices and learning with errors over rings. In Advances in Cryptology – EUROCRYPT, pages 1–23, 2010.
  32. [33]Shihe Ma, Jiaming Liu, Anyu Wang, and Xiaoyun Wang. High-precision bootstrapping for GCKKS. Cryptology ePrint Archive, Paper 2026/2600, 2026.
  33. [34]Shihe Ma, Jiaming Liu, Anyu Wang, and Xiaoyun Wang. Homomorphic encryption for high-precision arithmetic of approximate numbers. Cryptology ePrint Archive, Paper 2026/2524, 2026.
  34. [35]Yuchen Wei, Kaisheng Ma, Mingyu Gao, and Hongren Zheng. FHE for ALU over large prime moduli and application to one-round threshold ECDSA. Cryptology ePrint Archive, Paper 2026/1836, 2026.

Paper details

vlnc:W_vexwfg63
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY-SA 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents