{
  "id": "2021/315",
  "url": "https://opencryptology.org/2021/315",
  "original_url": "https://eprint.iacr.org/2021/315",
  "title": "Faster homomorphic comparison operations for BGV and BFV",
  "authors": [
    "Ilia Iliashenko",
    "Vincent Zucca"
  ],
  "affiliations": null,
  "abstract": "Fully homomorphic encryption (FHE) allows to compute any function on encrypted values. However, in practice, there is no universal FHE scheme that is efficient in all possible use cases. In this work, we show that FHE schemes suitable for arithmetic circuits (e.g. BGV or BFV) have a similar performance as FHE schemes for non-arithmetic circuits (TFHE) in basic comparison tasks such as less-than, maximum and minimum operations. Our implementation of the less-than function in the HElib library is up to 3 times faster than the prior work based on BGV/BFV. It allows to compare a pair of 64-bit integers in 11 milliseconds, sort 64 32-bit integers in 19 seconds and find the minimum of 64 32-bit integers in 9.5 seconds on an average laptop without multi-threading.",
  "category": "Cryptographic protocols",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Faster homomorphic comparison operations for BGV and BFV” by Ilia Iliashenko, Vincent Zucca, Cryptology ePrint Archive, Paper 2021/315, https://eprint.iacr.org/2021/315. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": true,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2021-03-11T18:41:52Z",
    "updated": "2021-04-08T15:36:47Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2021/315.pdf",
    "sha256": "9b16e9b35e4dd5f4218654467e5edb684162a7b1a5944a4d27264f3e9da5e92d",
    "size": 450893,
    "source": "github-mirror",
    "source_date": "2024-01-14T06:13:28Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2021/315/versions/20240114T061328Z.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "label": "copy captured 2024-01-14",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/315.pdf",
      "size": 450893,
      "sha256": "9b16e9b35e4dd5f4218654467e5edb684162a7b1a5944a4d27264f3e9da5e92d",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260921052034id_/https://eprint.iacr.org/2021/315.pdf",
      "captured_at": "2026-09-21T05:20:34Z",
      "size": 452221
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/315.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "size": 450893
    }
  ],
  "bibtex": "@misc{cryptoeprint:2021/315,\n      author = {Ilia Iliashenko and Vincent Zucca},\n      title = {Faster homomorphic comparison operations for BGV and BFV},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2021/315},\n      year = {2021},\n      url = {https://eprint.iacr.org/2021/315}\n}"
}
