{
  "id": "2026/450",
  "url": "https://opencryptology.org/2026/450",
  "original_url": "https://eprint.iacr.org/2026/450",
  "title": "A unified toolkit for advanced arithmetic in FHE",
  "authors": [
    "Lorenzo Rovida"
  ],
  "affiliations": null,
  "abstract": "We suggest an extension of discrete--CKKS that enables advanced computations over real, Boolean and large integers (e.g., 64/128-bit), including standard arithmetic operations, comparison, shift, bit length, quotient, square root, and other non linear functions based on binary representation. The flexibility of our approach lies in the synergy between the integer and the real arithmetic layers. At the core of our approach  lies indeed a novel non-iterative binary decomposition technique extracting the $i$-th bit of $x$ by evaluating an approximation of $\\lfloor x/2^i \\rfloor \\bmod 2$, very efficient when $x$ has at most 8 bits.\n\nWe show how such procedure can decompose not only a value $x$, but also a more general $g(x)$ at no additional cost by generalizing the evaluation to $\\lfloor g(x)/2^i \\rfloor$, enabling fast LUT evaluation over integers. Interestingly, the output of our LUTs can be arbitrarily large at the cost of requiring redundant slots: this unlocks the computation of large seeds for Newton--Raphson algorithms, enabling for the first time the practical evaluation of (exact) non linear functions over large integers such as square root and quotient within the discrete--CKKS family of schemes.\n\nBy supporting computations over different domains, our framework is usable in various applications: smart contracts naturally fit our framework, as it efficiently supports both arbitrary logical gates and operations over large integers. It also allows integer computations on the output class of a real-valued neural network, such as metadata lookup. \n\nCompared to the state-of-the-art by Gao and Zheng (CRYPTO '26), our solution does not require ad-hoc encoding or expensive integer to Boolean conversions, making it more suitable when some non arithmetic structure is involved. %has lower latency on all standard integer operations  (additions, multiplications, comparisons and logical shifts), and we additionally support nonlinear integer operations. \nOur current limitation lies in the throughput, which is lower. \nWe additionally provide an open source proof of concept for GPU, showing that our work has better latency and throughput than TFHE-rs on most arithmetic and non-arithmetic operations.",
  "category": "Applications",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“A unified toolkit for advanced arithmetic in FHE” by Lorenzo Rovida, Cryptology ePrint Archive, Paper 2026/450, https://eprint.iacr.org/2026/450. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2026-03-04T15:10:16Z",
    "updated": "2026-10-04T13:19:28Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2026/450.pdf",
    "sha256": "78214c3886a5613d385e5977001b629cbc9fef22c6045fed24da194934392bd0",
    "size": 2202288,
    "source": "upload",
    "source_date": "2026-11-14T03:39:51.800Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2026/450/versions/20261114T033951Z.pdf",
      "captured_at": "2026-11-14T03:39:51.800Z",
      "label": "copy captured 2026-11-14",
      "source": "upload",
      "source_url": null,
      "size": 2202288,
      "sha256": "78214c3886a5613d385e5977001b629cbc9fef22c6045fed24da194934392bd0",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2026/450/versions/20260928T162350Z.pdf",
      "captured_at": "2026-09-28T16:23:50Z",
      "label": "copy captured 2026-09-28",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20260928162350id_/https://eprint.iacr.org/2026/450.pdf",
      "size": 2096148,
      "sha256": "df76729e3213fac6303c6eef39e7bb5cdb2e97f186cb68b5d4e09a4d073f3b74",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2026/450/versions/20260512T112848Z.pdf",
      "captured_at": "2026-05-12T11:28:48Z",
      "label": "copy captured 2026-05-12",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2026/450.pdf",
      "size": 975948,
      "sha256": "176c416632cf0e339ec893229bd53c2e084abe9a0b3ac7956fc682db70c25535",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2026/450/versions/20260307T074201Z.pdf",
      "captured_at": "2026-03-07T07:42:01Z",
      "label": "copy captured 2026-03-07",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20260307074201id_/https://eprint.iacr.org/2026/450.pdf",
      "size": 975187,
      "sha256": "f609fc3e7f0a19be2dafb081580f92245160c4f6a42d39d2d312a2a6565472bb",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260928162400id_/https://eprint.iacr.org/2026/450.pdf",
      "captured_at": "2026-09-28T16:24:00Z",
      "size": 1903917
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2026/450.pdf",
      "captured_at": "2026-05-12T11:28:48Z",
      "size": 975948
    }
  ],
  "bibtex": "@misc{cryptoeprint:2026/450,\n      author = {Lorenzo Rovida},\n      title = {A unified toolkit for advanced arithmetic in FHE},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2026/450},\n      year = {2026},\n      url = {https://eprint.iacr.org/2026/450}\n}"
}
