{
  "id": "2021/551",
  "url": "https://opencryptology.org/2021/551",
  "original_url": "https://eprint.iacr.org/2021/551",
  "title": "Efficient Sorting of Homomorphic Encrypted Data with $k$-way Sorting Network",
  "authors": [
    "Seungwan Hong",
    "Seunghong Kim",
    "Jiheon Choi",
    "Younho Lee",
    "Jung Hee Cheon"
  ],
  "affiliations": null,
  "abstract": "In this study, we propose an efficient sorting method for encrypted data using fully homomorphic encryption (FHE). The proposed method extends the existing 2-way sorting method by applying the $k$-way sorting network for any prime $k$ to reduce the depth in terms of comparison operation from $O(\\log_2^2 n)$ to $O(k\\log_k^2 n)$, thereby improving performance for $k$ slightly larger than $2$, such as $k=5$.\nWe apply this method to approximate FHE which is widely used due to its efficiency of homomorphic arithmetic operations. In order to build up the $k$-way sorting network, the $k$-sorter, which sorts $k$-numbers with a minimal comparison depth, is used as a building block.\n\nThe approximate homomorphic comparison, which is the only type of comparison working on approximate FHE, cannot be used for the construction of the $k$-sorter as it is because the result of the comparison is not binary, unlike the comparison in conventional bit-wise FHEs. To overcome this problem, we propose an efficient $k$-sorter construction utilizing the features of approximate homomorphic comparison.\nAlso, we propose an efficient construction of a $k$-way sorting network using cryptographic SIMD operations.\n\nTo use the proposed method most efficiently, we propose an estimation formula that finds the appropriate $k$ that is expected to reduce the total time cost when the parameters of the approximating comparisons and the performance of the operations provided by the approximate FHE are given.\nWe also show the implementation results of the proposed method, and it shows that sorting $5^6=15625$ data using $5$-way sorting network can be about $23.3\\%$ faster than sorting $2^{14}=16384$ data using $2$-way.",
  "category": "Applications",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“Efficient Sorting of Homomorphic Encrypted Data with $k$-way Sorting Network” by Seungwan Hong, Seunghong Kim, Jiheon Choi, Younho Lee, Jung Hee Cheon, Cryptology ePrint Archive, Paper 2021/551, https://eprint.iacr.org/2021/551. 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-04-27T06:12:19Z",
    "updated": "2021-09-16T05:53:20Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2021/551.pdf",
    "sha256": "4d4913e6f10b56bfd1bf68012d28d476d22795ccd5a9766d1f37bd1ae2e7d5ca",
    "size": 1911640,
    "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/551/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/551.pdf",
      "size": 1911640,
      "sha256": "4d4913e6f10b56bfd1bf68012d28d476d22795ccd5a9766d1f37bd1ae2e7d5ca",
      "is_default_pdf": true
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260103141958id_/https://eprint.iacr.org/2021/551.pdf",
      "captured_at": "2026-01-03T14:19:58Z",
      "size": 1568311
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2021/551.pdf",
      "captured_at": "2024-01-14T06:13:28Z",
      "size": 1911640
    }
  ],
  "bibtex": "@misc{cryptoeprint:2021/551,\n      author = {Seungwan Hong and Seunghong Kim and Jiheon Choi and Younho Lee and Jung Hee Cheon},\n      title = {Efficient Sorting of Homomorphic Encrypted Data with $k$-way Sorting Network},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2021/551},\n      year = {2021},\n      url = {https://eprint.iacr.org/2021/551}\n}"
}
