International Association for Cryptologic Research

International Association
for Cryptologic Research

CryptoDB

BLEACH: Cleaning Errors in Discrete Computations Over CKKS

Authors:
Nir Drucker
Guy Moshkowich
Tomer Pelleg
Hayim Shaul
Download:
DOI: 10.1007/s00145-023-09483-1
Search ePrint
Search Google
Abstract: Approximated homomorphic encryption (HE) schemes such as CKKS are commonly used to perform computations over encrypted real numbers. It is commonly assumed that these schemes are not “exact” and thus they cannot execute circuits with unbounded depth over discrete sets, such as binary or integer numbers, without error overflows. These circuits are usually executed using BGV and B/FV for integers and TFHE for binary numbers. This artificial separation can cause users to favor one scheme over another for a given computation, without even exploring other, perhaps better, options. We show that by treating step functions as “clean-up” utilities and by leveraging the SIMD capabilities of CKKS, we can extend the homomorphic encryption toolbox with efficient tools. These tools use CKKS to run unbounded circuits that operate over binary and small-integer elements and even combine these circuits with fixed-point real numbers circuits. We demonstrate the results using the Turing-complete Conway’s Game of Life. In our evaluation, for boards of size 256 $$\times $$ × 256, these tools achieved orders of magnitude faster latency than previous implementations using other HE schemes. We argue and demonstrate that for large enough real-world inputs, performing binary circuits over CKKS, while considering it as an “exact” scheme, results in comparable or even better performance than using other schemes tailored for similar inputs.
BibTeX
@article{jofc-2023-33819,
  title={BLEACH: Cleaning Errors in Discrete Computations Over CKKS},
  journal={Journal of Cryptology},
  publisher={Springer},
  volume={37},
  doi={10.1007/s00145-023-09483-1},
  author={Nir Drucker and Guy Moshkowich and Tomer Pelleg and Hayim Shaul},
  year=2023
}