Paper 2022/1298 Original: eprint.iacr.org/2022/1298 ↗

BLEACH: Cleaning Errors in Discrete Computations over CKKS

Nir Drucker
Guy Moshkowich
Tomer Pelleg
Hayim Shaul
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 128x128, these tools achieved an order 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.

Metadata
Available format(s)
PDF
Category
Public-key cryptography
Publication info
Preprint.
History
2022-10-18: last updated
2022-09-29: published
Short URL
https://ia.cr/2022/1298
License
https://creativecommons.org/licenses/by/4.0/

BibTeX

@misc{cryptoeprint:2022/1298,
      author = {Nir Drucker and Guy Moshkowich and Tomer Pelleg and Hayim Shaul},
      title = {BLEACH: Cleaning Errors in Discrete Computations over CKKS},
      howpublished = {Cryptology {ePrint} Archive, Paper 2022/1298},
      year = {2022},
      url = {https://eprint.iacr.org/2022/1298}
}
Note: In order to protect the privacy of readers, this archive does not use cookies or embedded third party content.