Revealing Encryption for Partial Ordering

Helene Haagh, Yue Ji, Chenxing Li, Claudio Orlandi, Yifan Song

TL;DR

This paper introduces a practical "Revealing Encryption" (RE) scheme for the partial ordering of vectors. It allows a third party to determine if one encrypted vector is greater than, less than, equal to, or incomparable to another, without ever seeing the underlying data or relying on heavy, impractical tools like cryptographic obfuscation.

What Problem Does This Paper Address?

In cloud computing, we often want to store sensitive data on a server and have that server perform computations for us. While Fully Homomorphic Encryption (FHE) allows a server to compute on data without seeing it, the server also doesn't learn the result of that computation. In many cases—like spam filtering or database searching—the server needs to know the result (e.g., "Is this message spam?") to take action.

Existing solutions like Order Preserving Encryption (OPE) and Order Revealing Encryption (ORE) solve this for simple numbers (total orders), but they fail when dealing with multi-dimensional data (vectors). For example, if you are comparing job candidates based on "years of experience" and "test scores," candidate A might be better in one and worse in the other, making them "incomparable." This paper fills the gap by providing a way to handle these complex partial orders securely and efficiently.

Methods

The authors generalize a prior ORE construction (by Chenette et al., 2016) to handle arbitrary functions, specifically focusing on the partial order of $d$-dimensional vectors.

  • The Core Mechanism: The scheme uses Pseudorandom Functions (PRFs) to encrypt data. Instead of just encrypting a value, it encrypts the "path" to that value in a way that allows comparison.
  • Matrix-Based Encoding: For a 2-dimensional case, the ciphertext includes a matrix $cm$ and two bit-strings. The evaluation algorithm finds the first position where the vectors differ (using the bit-strings) and then uses those coordinates to look up the relationship (greater, less, equal, or incomparable) in the encrypted matrix.
  • Avoiding "Heavy" Crypto: Unlike previous theoretical attempts at this problem, this construction does not use multilinear maps or indistinguishability obfuscation ($iO$), which are currently too slow for real-world use. It relies on standard symmetric-key primitives like AES.

Datasets

The paper does not use a specific pre-existing public dataset. Instead, the authors evaluated their implementation using synthetic data to benchmark performance across a wide range of parameters:

  • Dimensions ($d$): Tested from 2 up to 8 dimensions.
  • Bit length ($n$): Tested for values up to 8192 bits.
  • Sample size: Timings were averaged over 100 encryption executions and 500 evaluation pairs.

Key Insights and Ideas

  • RE as a Generalization: The authors frame "Revealing Encryption" as a broad category where the goal is to reveal the output of a specific function $f(x, y)$ while keeping $x$ and $y$ private. ORE is just the special case where $f$ is a numeric comparison.
  • The "Skyline Query" Application: A major motivation is the "skyline query"—finding the set of points in a database that are not "dominated" by any other point. This is crucial for multi-criteria decision-making (e.g., finding hotels that are both cheap and close to the beach).
  • Structured Leakage: The authors acknowledge that their scheme leaks the index of the first bit where two vectors differ. While not "perfect" security, this "limited leakage" is a calculated trade-off that allows for massive gains in speed and practicality.

Key Results

  • Efficiency: For a 2-dimensional vector with 16-bit entries, encryption takes only 49.2 microseconds. Even for 5 dimensions, it takes about 110 milliseconds.
  • Lightning-Fast Evaluation: Once data is encrypted, comparing two ciphertexts is incredibly fast, typically taking between 0.3 and 1.5 microseconds.
  • Complexity: The storage and computational complexity scale as $O(n^d)$, where $n$ is the bit length and $d$ is the number of dimensions.
  • Practicality: The authors demonstrated that for many common parameters, the ciphertexts are small enough to fit in a CPU's L2 cache, leading to highly optimized performance.

Limitations and Future Work

  • The Curse of Dimensionality: Because the complexity is $O(n^d)$, the scheme does not scale well to very high dimensions (e.g., $d=100$). It is best suited for applications with a modest number of comparison criteria.
  • Leakage Concerns: While the leakage is "limited," it is still more than an ideal (but currently impossible) scheme would reveal. Future work could involve applying techniques to further hide the position of the first differing bit.
  • Expanding the Library: The authors suggest that the RE framework could be extended to other useful functions, such as Hamming distance or absolute distance, which they briefly explore in the appendices.

Summary updated

BibTeX
@inproceedings{haagh2017revealing,
  author = {Helene Haagh and Yue Ji and Chenxing Li and Claudio Orlandi and Yifan Song},
  title = {{Revealing Encryption for Partial Ordering}},
  booktitle = {IMACC},
  year = {2017},
  doi = {10.1007/978-3-319-71045-7\_1},
}
Figure