Skip to main navigation Skip to search Skip to main content

Flexway O-Sort: Enclave-Friendly and Optimal Oblivious Sorting

  • Tianyao Gu
  • , Yilei Wang
  • , Afonso Tinoco
  • , Bingnan Chen
  • , Ke Yi
  • , Elaine Shi

Research output: Chapter in Book/Conference Proceeding/ReportConference Paper published in a bookpeer-review

Abstract

Oblivious algorithms are being deployed at large scale in real world to enable privacy-preserving applications such as Signal’s private contact discovery. Oblivious sorting is a fundamental building block in the design of oblivious algorithms for numerous computation tasks. Unfortunately, there is still a theory-practice gap for oblivious sort. The commonly implemented bitonic sorting algorithm is not asymptotically optimal, whereas known asymptotically optimal algorithms suffer from large constants. In this paper, we construct a new oblivious sorting algorithm called flexway o-sort, which is asymptotically optimal, concretely efficient, and suitable for implementation in hardware enclaves such as Intel SGX. For moderately large inputs of 12 GB, our flexway o-sort algorithm outperforms known oblivious sorting algorithms by 1.32× to 28.8× when the data fits within the hardware enclave, and by 4.1× to 208× when the data does not fit within the hardware enclave. We also implemented various applications of oblivious sorting, including histogram, database join, and initialization of an ORAM data structure. For these applications and data sets from 8GB to 32GB, we achieve 1.44 ∼ 2.3× speedup over bitonic sort when the data fits within the enclave, and 4.9 ∼ 5.5× speedup when the data does not fit within the enclave.

Original languageEnglish
Title of host publicationProceedings of the 34th USENIX Security Symposium
PublisherUSENIX Association
Pages7563-7582
Number of pages20
ISBN (Electronic)9781939133526
Publication statusPublished - Aug 2025
Event34th USENIX Security Symposium, USENIX Security 2025 - Seattle, United States
Duration: 13 Aug 202515 Aug 2025

Publication series

NameProceedings of the 34th USENIX Security Symposium

Conference

Conference34th USENIX Security Symposium, USENIX Security 2025
Country/TerritoryUnited States
CitySeattle
Period13/08/2515/08/25

Bibliographical note

Publisher Copyright:
© 2025 by The USENIX Association All Rights Reserved.

Fingerprint

Dive into the research topics of 'Flexway O-Sort: Enclave-Friendly and Optimal Oblivious Sorting'. Together they form a unique fingerprint.

Cite this