{
  "id": "2019/417",
  "url": "https://opencryptology.org/2019/417",
  "original_url": "https://eprint.iacr.org/2019/417",
  "title": "Numerical Method for Comparison on Homomorphically Encrypted Numbers",
  "authors": [
    "Jung Hee Cheon",
    "Dongwoo Kim",
    "Duhyeong Kim",
    "Hun Hee Lee",
    "Keewoo Lee"
  ],
  "affiliations": null,
  "abstract": "We propose a new method to compare numbers which are encrypted by Homomorphic Encryption (HE).\nPreviously, comparison and min/max functions were evaluated using Boolean functions where input numbers are encrypted bit-wisely. However, the bit-wise encryption methods require relatively expensive computation of basic arithmetic operations such as addition and multiplication.\n\nIn this paper, we introduce iterative algorithms that approximately compute the min/max and comparison operations of several numbers which are encrypted word-wisely. From the concrete error analyses, we show that our min/max and comparison algorithms have $\\Theta(\\alpha)$ and $\\Theta(\\alpha\\log\\alpha)$ computational complexity to obtain approximate values within an error rate $2^{-\\alpha}$, while the previous minimax polynomial approximation method requires the exponential complexity $\\Theta(2^{\\alpha/2})$ and $\\Theta(\\sqrt{\\alpha}\\cdot 2^{\\alpha/2})$, respectively.\nWe also show the (sub-)optimality  of our min/max and comparison algorithms in terms of asymptotic computational complexity among polynomial evaluations to obtain approximate min/max and comparison results. Our comparison algorithm is extended to several applications such as computing the top-$k$ elements and counting numbers over the threshold in encrypted state.\n\nOur new method enables word-wise HEs to enjoy comparable performance in practice with bit-wise HEs for comparison operations while showing much better performance on polynomial operations. Computing an approximate maximum value of any two $\\ell$-bit integers encrypted by HEAAN, up to error $2^{\\ell-10}$, takes only $1.14$ milliseconds in amortized running time, which is comparable to the result based on bit-wise HEs.",
  "category": "Applications",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Numerical Method for Comparison on Homomorphically Encrypted Numbers” by Jung Hee Cheon, Dongwoo Kim, Duhyeong Kim, Hun Hee Lee, Keewoo Lee, Cryptology ePrint Archive, Paper 2019/417, https://eprint.iacr.org/2019/417. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2019-04-24T13:28:12Z",
    "updated": "2019-11-11T05:10:56Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2019/417.pdf",
    "sha256": "4899d39c4957acc66d0d9c67491e6cc15e5d0b99386a3197103bae1174242fd1",
    "size": 723505,
    "source": "github-mirror",
    "source_date": "2020-04-17T10:36:14Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2019/417/versions/20200417T103614Z.pdf",
      "captured_at": "2020-04-17T10:36:14Z",
      "label": "copy captured 2020-04-17",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2019/417.pdf",
      "size": 723505,
      "sha256": "4899d39c4957acc66d0d9c67491e6cc15e5d0b99386a3197103bae1174242fd1",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20240419034330id_/https://eprint.iacr.org/2019/417.pdf",
      "captured_at": "2024-04-19T03:43:30Z",
      "size": 710174
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2019/417.pdf",
      "captured_at": "2020-04-17T10:36:14Z",
      "size": 723505
    }
  ],
  "bibtex": "@misc{cryptoeprint:2019/417,\n      author = {Jung Hee Cheon and Dongwoo Kim and Duhyeong Kim and Hun Hee Lee and Keewoo Lee},\n      title = {Numerical Method for Comparison on Homomorphically Encrypted Numbers},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2019/417},\n      year = {2019},\n      url = {https://eprint.iacr.org/2019/417}\n}"
}
