Paper 2024/1894 Original: eprint.iacr.org/2024/1894 ↗

A non-comparison oblivious sort and its application to private k-NN

Sofiane Azogagh
Marc-Olivier Killijian
Félix Larose-Gervais
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.

Metadata
Available format(s)
PDF
Category
Applications
Publication info
Preprint.
History
2025-04-20: last updated
2024-11-21: published
Short URL
https://ia.cr/2024/1894
License
https://creativecommons.org/licenses/by/4.0/

BibTeX

@misc{cryptoeprint:2024/1894,
      author = {Sofiane Azogagh and Marc-Olivier Killijian and Félix Larose-Gervais},
      title = {A non-comparison oblivious sort and its application to private k-NN},
      howpublished = {Cryptology {ePrint} Archive, Paper 2024/1894},
      year = {2024},
      url = {https://eprint.iacr.org/2024/1894}
}
Note: In order to protect the privacy of readers, this archive does not use cookies or embedded third party content.