Answering queries using pairings

Alberto Trombetta, Giuseppe Persiano, Stefano BraghinarXiv 2014

Abstract

As organizations increasingly migrate data to cloud environments, the conflict between data utility and privacy becomes more pronounced. This paper introduces a system for executing SQL-like queries on encrypted databases without revealing data content or query parameters to the untrusted cloud provider. Utilizing Hidden Vector Encryption (HVE) based on Dual Pairing Vector Spaces (DPVS), the proposed method supports conjunctive selection-projection queries. The authors implement an amortized encryption scheme to reduce storage overhead and a three-tier architecture to manage query processing. Experimental results on synthetic datasets demonstrate the feasibility of the approach for privacy-critical applications with moderate database sizes.

Introduction

The adoption of cloud-based database management systems (DBMS) offers scalability and cost-efficiency but introduces significant security risks. Standard encryption techniques like AES render data unsearchable, while Fully Homomorphic Encryption (FHE) remains computationally prohibitive for practical database operations. Existing Searchable Symmetric Encryption (SSE) often lacks the flexibility to handle complex queries. This research addresses the need for a practical middle ground: a system capable of performing "Select-From-Where" queries on structured relational tables while keeping both the data and the query predicates hidden from the cloud server.

System Architecture and Methodology

The core of the system relies on Hidden Vector Encryption (HVE) implemented via Dual Pairing Vector Spaces (DPVS). Unlike traditional HVE schemes optimized for binary data, this DPVS-based construction efficiently handles the large alphabets typical of relational databases.

The architecture follows a three-tier model:

  1. Data Owner (U): Responsible for encrypting the database and issuing search keys.
  2. Untrusted DBMS (S): Stores encrypted data and performs the primary database scan.
  3. Trusted Query Processor (P): A proxy that decrypts specific keys to unlock matching rows for the user.

The system supports conjunctive queries, allowing users to filter records based on multiple attributes simultaneously.

Example of conjunctive selection-projection queries supported by the system.

A key innovation is the support for parametric queries, where the data owner can issue a template key. Users can then instantiate this template with specific search values without further interaction with the data owner, enhancing operational flexibility.

Data Representation and Encryption

To manage the storage overhead associated with cryptographic primitives, the authors introduce amortized encryption. Instead of encrypting each attribute independently, they use a vector-based approach that reduces the total ciphertext size. The system was tested using synthetic relational tables designed to simulate sensor or service data.

Sample relational table structure used in the evaluation, featuring attributes like ServiceId, TypeId, and Position.

The evaluation utilized three databases (DB1, DB2, and DB3) ranging from approximately 234 KB to 934 KB. Attributes included categorical data (e.g., Position, Availability) and timestamps, representing a realistic mix of data types.

Experimental Evaluation and Results

The implementation was developed using Python's Charm library and SQLite. Performance was measured on a standard laptop across different security levels (elliptic curve configurations).

  • Query Performance: Executing a query with three search predicates on a 1MB database took between 20 and 140 seconds. The time required scales linearly with the number of columns, ensuring predictable performance.
  • Storage Overhead: The encrypted database exhibited a space expansion factor of approximately 5.5x compared to the plaintext version.
  • Privacy Features: The cloud server remains oblivious to the search parameters; it only identifies which rows match an opaque token. Furthermore, access control is decoupled from encryption, allowing the data owner to grant specific column-level search rights without re-encrypting the dataset.

Discussion and Future Work

While the results demonstrate feasibility, several challenges remain. The current implementation requires a full table scan, which becomes a bottleneck as database size increases. Future work will focus on developing encrypted indexes to improve search efficiency. Additionally, the system currently supports only "AND" (conjunctive) queries; extending support to "OR" (disjunctive) queries, joins, and aggregate functions (e.g., SUM, AVG) is a priority. Ensuring the integrity of the results—verifying that the untrusted server has not omitted matching records—is another critical area for future research.

Conclusion

"Answering queries using pairings" provides a robust framework for privacy-preserving database operations in the cloud. By combining HVE with an amortized encryption strategy, the authors offer a solution that balances security and functionality for moderate-sized relational databases.

Summary updated

BibTeX
@misc{trombetta2014answering,
  author = {Alberto Trombetta and Giuseppe Persiano and Stefano Braghin},
  title = {{Answering queries using pairings}},
  year = {2014},
  eprint = {1403.2514},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1403.2514},
}
Figure