Paper 2026/1840
Arithmetic-to-Boolean Conversion in ALU with O(1) Bootstrapping via Overflow Cancellation
Abstract
Arithmetic logic unit (ALU) can combine word-level arithmetic with bit-level logic on encrypted machine words. Triangle encoding provides a CKKS-based representation for leveled word arithmetic, but its existing arithmetic-to-Boolean (A2B) conversion recovers only one window per bootstrapping. Consequently, converting an \(\ell\)-bit message requires \(\Theta(\ell)\) sequential functional-bootstrapping on the critical path of each input ciphertext. We first extend Triangle encoding from binary to general digit bases, allowing a larger base to shorten each Triangle word and increase the number of packed words per ciphertext. We then introduce shared overflow cancellation. For block modulus \(B=d^\omega\) and bounded overflow \(\lvert I_k\rvert<B/2\), a period-\(B\) functional bootstrap evaluates the remainders at all selected boundaries simultaneously, while the corresponding quotients are recovered by affine arithmetic. At consecutive boundaries, the current remainder and the preceding quotient contain the same shifted overflow coefficient. Their difference cancels this coefficient exactly and yields \(v_i=D_i+c_{i-1}-Bc_i,\) which contains only the block value \(D_i\) and its adjacent carry bits. All such values are available before any carry is resolved. The sign of this value determines carry behaviors, which obtained by functional bootstrapping. The corresponding transfer rules compose associatively, thus parallel carry propagation resolves all carries with \(O(\lceil\log_2 \ell \rceil)\) leveled multiplication depth. After carry correction, a final multi-value functional bootstrap extracts the bits of all blocks in parallel. The resulting A2B conversion has three sequential functional bootstrap stages per input ciphertext, independent of \(\ell\), and requires no cross ciphertext batching. We implement the proposed A2B conversion in OpenFHE and evaluate it for 64-, 128-, and 256-bit words. In a same-machine, single-threaded comparison with Gao--Zheng, base \(d=2\) achieves the lowest single ciphertext latency, yielding \(2.55\times\)--\(6.25\times\) speedups. Base \(d=4\) packs more words into each ciphertext and achieves the best amortized performance, yielding \(4.00\times\)--\(8.71\times\) speedups.
Metadata
- Available format(s)
-
PDF
- Category
- Public-key cryptography
- Publication info
- Preprint.
- Keywords
- Fully Homomorphic EncryptionCKKSTriangle EncodingArithmetic-to-Boolean ConversionFunctional Bootstrapping
- Contact author(s)
-
shenxuan @ iie ac cn
lzh458070 @ antgroup com
wangruida @ iie ac cn
luxianhui @ iie ac cn - History
- 2026-09-01: approved
- 2026-08-31: received
- See all versions
- Short URL
- https://ia.cr/2026/1840
- License
-
CC BY
BibTeX
@misc{cryptoeprint:2026/1840,
author = {Xuan Shen and Zhihao Li and Ruida Wang and Xianhui Lu},
title = {Arithmetic-to-Boolean Conversion in {ALU} with O(1) Bootstrapping via Overflow Cancellation},
howpublished = {Cryptology {ePrint} Archive, Paper 2026/1840},
year = {2026},
url = {https://eprint.iacr.org/2026/1840}
}