{
  "id": "2024/1894",
  "url": "https://opencryptology.org/2024/1894",
  "original_url": "https://eprint.iacr.org/2024/1894",
  "title": "A non-comparison oblivious sort and its application to private k-NN",
  "authors": [
    "Sofiane Azogagh",
    "Marc-Olivier Killijian",
    "Félix Larose-Gervais"
  ],
  "affiliations": null,
  "abstract": "In this paper, we introduce an adaptation of the counting sort algorithm that leverages the data obliviousness of the algorithm to enable the sorting of encrypted data using Fully Homomorphic Encryption (FHE). Our approach represents the first known sorting algorithm for encrypted data that does not rely on comparisons. The implementation takes advantage of some basic operations on TFHE's Look-Up-Tables (LUT). We have integrated these operations into RevoLUT, a comprehensive open-source library built on tfhe-rs. We demonstrate the effectiveness of our Blind Counting Sort algorithm by developing a top-k selection algorithm and applying it to privacy-preserving k-Nearest Neighbors classification. This proves to be approximately 4 times faster than state-of-the-art methods.",
  "category": "Applications",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“A non-comparison oblivious sort and its application to private k-NN” by Sofiane Azogagh, Marc-Olivier Killijian, Félix Larose-Gervais, Cryptology ePrint Archive, Paper 2024/1894, https://eprint.iacr.org/2024/1894. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2024-11-21T18:23:02Z",
    "updated": "2025-04-20T23:16:43Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2024/1894.pdf",
    "sha256": "7b66a6d76c2692ff0422af8ec0b64a47a9ec7f329aff055a8aeb26327b597e51",
    "size": 1090582,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "eprint_size": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2024/1894/versions/20260428T172000Z.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "label": "copy captured 2026-04-28",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/1894.pdf",
      "size": 1090582,
      "sha256": "7b66a6d76c2692ff0422af8ec0b64a47a9ec7f329aff055a8aeb26327b597e51",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2024/1894/versions/20250223T124950Z.pdf",
      "captured_at": "2025-02-23T12:49:50Z",
      "label": "copy captured 2025-02-23",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20250223124950id_/https://eprint.iacr.org/2024/1894.pdf",
      "size": 1049667,
      "sha256": "2e10c81436526dd9be4fff342dbfc2ab83faf0861ebbcc662a68ff10754e6d22",
      "is_default_pdf": false
    },
    {
      "url": "https://opencryptology.org/2024/1894/versions/20241122T073205Z.pdf",
      "captured_at": "2024-11-22T07:32:05Z",
      "label": "copy captured 2024-11-22",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20241122073205id_/https://eprint.iacr.org/2024/1894.pdf",
      "size": 821696,
      "sha256": "acfc997b9d3747ee56d6b0155866fa7d6d3387170468792b22bcc9892159bb18",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/1894.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 1090582
    },
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20250223124950id_/https://eprint.iacr.org/2024/1894.pdf",
      "captured_at": "2025-02-23T12:49:50Z",
      "size": 1028694
    }
  ],
  "bibtex": "@misc{cryptoeprint:2024/1894,\n      author = {Sofiane Azogagh and Marc-Olivier Killijian and Félix Larose-Gervais},\n      title = {A non-comparison oblivious sort and its application to private k-NN},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2024/1894},\n      year = {2024},\n      url = {https://eprint.iacr.org/2024/1894}\n}"
}
