High-Precision Homomorphic ALU over Arbitrary Moduli with
O(1) Bootstrapping
This work extends homomorphic arithmetic to arbitrary plaintext moduli with $O(1)$ bootstrapping for both arithmetic and Boolean operations, generalizing Gao and Zheng's power-of-two-only triangle encoding. Its core framework represents plaintexts in flexible radices and uses a CVP-based search for defining polynomials with well-conditioned canonical embeddings and small norm growth under ring operations; when no suitable polynomial is found, it falls back to homomorphic Montgomery multiplication over radix-friendly plaintext rings, each reduction costing $O(1)$ bootstrapping calls. An arithmetic-to-digit conversion also using $O(1)$ bootstrapping, independent of the chosen radix, supports arithmetic-to-Boolean conversion. Implemented in OpenFHE, it reports lower latency than prior methods on Curve25519, P-384, and RSA-1024/2048, and faster A2B conversion than GZ26 for 64- to 256-bit messages.