Paper 2025/1170

Optimized Rank Sort for Encrypted Real Numbers

Seunghu Kim, Chung-Ang University
Eymen Ünay, Istanbul Technical University
Ayse Yilmazer-Metin, Istanbul Technical University
Hyung Tae Lee, Chung-Ang University
Abstract

Sorting arrays encrypted under fully homomorphic encryption remains a fundamental challenge due to the high cost of private comparisons and the incompatibility of conventional sorting algorithms with the encrypted domain. Recently, Hong et al. (IEEE Transactions on Information Forensics and Security, 2021) proposed a $k$-way sorting network tailored to encrypted real numbers, but its reliance on multiple comparison stages incurs substantial multiplicative depth and significant bootstrapping overhead, even for modest array sizes. In this work, we propose a novel rank-based sorting algorithm for encrypted real numbers that performs only a single comparison stage, thereby eliminating the need for bootstrapping operations. Our empirical evaluation demonstrates that the proposed method significantly outperforms the $k$-way approach for small to medium array sizes $(n\leq 1024)$, achieving a $46.91\times$ speedup at $n=256$ with a total runtime of $79$ seconds. Furthermore, we examine the recent matrix-based rank sort method by Mazzone et al. (USENIX Security '25) and show that integrating our optimized rank construction improves its efficiency. Specifically, we achieve $1.77\times$ and $2.43\times$ performance gains for $n=128$ and $n=512$, respectively.

Metadata
Available format(s)
PDF
Category
Applications
Publication info
Preprint.
Keywords
Blind sortrank sortsorting encrypted arrayfully homomorphic encryptionCKKS
Contact author(s)
rlatmdgn77 @ cau ac kr
unay19 @ itu edu tr
yilmazerayse @ itu edu tr
hyungtaelee @ cau ac kr
History
2025-06-23: approved
2025-06-20: received
See all versions
Short URL
https://ia.cr/2025/1170
License
Creative Commons Attribution-NonCommercial
CC BY-NC

BibTeX

@misc{cryptoeprint:2025/1170,
      author = {Seunghu Kim and Eymen Ünay and Ayse Yilmazer-Metin and Hyung Tae Lee},
      title = {Optimized Rank Sort for Encrypted Real Numbers},
      howpublished = {Cryptology {ePrint} Archive, Paper 2025/1170},
      year = {2025},
      url = {https://eprint.iacr.org/2025/1170}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.