Paper 2025/1150

Lightweight Sorting in Approximate Homomorphic Encryption

Lorenzo Rovida, Politecnico di Torino
Alberto Leporati, University of Milano-Bicocca
Simone Basile, University of Milano-Bicocca
Abstract

Sorting encrypted values is an open research problem that plays a crucial role in the broader objective of providing efficient and practical privacy-preserving online services. The current state of the art work by Mazzone, Everts, Hahn and Peter (USENIX Security '25) proposes efficient algorithms for indexing and sorting based on the CKKS scheme, which deviates from the compare-and-swap paradigm, typically used by sorting networks, using a permutation-based approach. In this work, we follow up their work and explore different approaches to approximate the nonlinear functions required by the circuit. We propose simpler and concrete solutions that allow for faster computations, smaller memory requirements and higher precision. For example, our framework allows to sort 128 real elements in roughly 22 seconds, while maintaining a precision of $0.001$ and requiring 3 GB of memory. Furthermore, we propose an implementation of a swap-based bitonic network that is not based on approximations of the $\text{sgn}(x)$ function, which scales linearly with the number of values, useful when the number of available slots is small.

Metadata
Available format(s)
PDF
Category
Applications
Publication info
Published by the IACR in CIC 2026
DOI
10.62056/a3ksdkmol
Keywords
FHECKKSSortingComputing on encrypted data
Contact author(s)
lorenzo rovida @ polito it
alberto leporati @ unimib it
s basile @ campus unimib it
History
2026-05-27: last of 4 revisions
2025-06-18: received
See all versions
Short URL
https://ia.cr/2025/1150
License
Creative Commons Attribution-ShareAlike
CC BY-SA

BibTeX

@misc{cryptoeprint:2025/1150,
      author = {Lorenzo Rovida and Alberto Leporati and Simone Basile},
      title = {Lightweight Sorting in Approximate Homomorphic Encryption},
      howpublished = {Cryptology {ePrint} Archive, Paper 2025/1150},
      year = {2025},
      doi = {10.62056/a3ksdkmol},
      url = {https://eprint.iacr.org/2025/1150}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.