NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Efficient Set Operations in the Presence of Malicious Adversaries

Carmit Hazay, Kobbi Nissim

Abstract

Secure two-party computation of set operations, such as intersection and union, is a fundamental building block for privacy-preserving data mining and secure information sharing. While efficient protocols exist for semi-honest participants, achieving security against malicious adversaries—who may actively deviate from protocol rules—has historically incurred significant computational and communication overhead. This paper introduces highly efficient, constant-round protocols for secure set intersection and union that achieve linear communication complexity and near-linear computation costs in the standard cryptographic model, avoiding the "Random Oracle" shortcut and the heavy costs of generic "cut-and-choose" techniques.

Introduction

In the field of Secure Function Evaluation (SFE), the goal is to allow two parties to compute a function of their private inputs without revealing any information beyond the output. Set operations, specifically Private Set Intersection (PSI) and Private Set Union (PSU), are among the most practically relevant functions in this domain. Applications range from identifying common contacts in mobile messaging to cross-referencing medical databases without exposing patient identities.

Historically, cryptographers have distinguished between two adversary models: the semi-honest model (where parties follow the protocol but try to learn extra information) and the malicious model (where parties may lie about inputs or skip steps). While efficient specialized protocols exist for the semi-honest case, malicious-model protocols often rely on generic compilers or "cut-and-choose" strategies that lead to quadratic complexity or massive constant factors. Hazay and Nissim aim to bridge this gap, providing protocols that are both provably secure in the standard model and efficient enough for real-world deployment.

Methodology and Technical Innovations

The authors build upon the foundation of the "FNP" protocol (proposed by Freedman, Nissim, and Pinkas), which represents sets as polynomials and uses oblivious polynomial evaluation to find common elements. To harden this approach against malicious actors without sacrificing performance, the authors introduce several key innovations:

1. Balanced Allocation via Hashing

To manage the computational load, the protocol employs a hashing scheme to map set elements into bins. This "balanced allocation" reduces the degree of the polynomials involved from $m$ (the total set size) to $O(\log \log m)$. This reduction is critical because it drastically cuts the number of expensive modular exponentiations required during the evaluation phase.

2. OPRF and Perfectly Hiding Commitments

A major challenge in the malicious model is preventing a party from changing their input set mid-protocol to "fish" for information. The authors address this by combining Pedersen commitments (which are perfectly hiding) with an Oblivious Pseudorandom Function (OPRF). This mechanism forces parties to commit to their inputs at the start. Because the randomness used in the polynomial evaluation is derived from the OPRF, and one party does not know the other's PRF key, the inputs become effectively "bound," preventing manipulation.

3. Cryptographic Primitive Selection

While many set protocols utilize Paillier encryption for its additive homomorphic properties, Hazay and Nissim opt for El Gamal encryption (multiplicatively homomorphic). This choice is strategic: it avoids the complex and computationally expensive key-setup phases required in the malicious model to ensure a party does not learn the secret key of the Paillier system. Furthermore, they incorporate efficient, non-generic Zero-Knowledge Proofs (ZKPs) to verify that polynomials are constructed correctly and that their degrees match the claimed set sizes, avoiding the overhead of generic ZKP compilers.

Key Insights

  • Standard Model Security: By utilizing OPRFs, the authors replace the need for a "Random Oracle" (a theoretical idealization of a hash function) with standard cryptographic primitives. This ensures the security proof holds in a more rigorous, realistic environment.
  • Efficiency via Mathematical Structure: The paper demonstrates that by exploiting the specific mathematical properties of polynomials and homomorphic encryption, one can prove "honesty" much more cheaply than using general-purpose zero-knowledge proofs.
  • The Randomness Binding: The core innovation lies in using the OPRF to determine the randomness of the polynomial evaluation. This ensures that even a malicious party cannot predict or manipulate the outcome to gain an unfair advantage.

Results and Performance

The proposed protocols achieve several significant benchmarks:

  • Linear Complexity: Communication complexity is reduced to $O(m_X + m_Y \cdot p(n))$ group elements, while computation complexity scales at $O(m_X + m_Y \cdot (\log \log m_X + p(n)))$ exponentiations. This represents a massive improvement over the quadratic $O(m_X \cdot m_Y)$ costs seen in earlier malicious-model protocols.
  • Constant Rounds: The number of communication rounds remains fixed regardless of the input set size, making the protocol suitable for high-latency network environments.
  • UC-Security: The protocols are shown to be compatible with the "Universally Composable" (UC) framework, ensuring they remain secure even when executed concurrently with other protocols on a global network.

Limitations and Future Directions

Despite the advancements, some bottlenecks remain. The specific OPRF used (Naor-Reingold) requires an oblivious transfer for every bit of the input, which could be improved by adopting more modern PRFs like Boneh-Boyen. Additionally, in the set-union protocol, one party can still deduce the size of the intersection ($|X \cap Y|$), which may be a privacy concern in specific contexts. Finally, while the asymptotic complexity is linear, the constant factors in the zero-knowledge proofs suggest that for very small sets (e.g., fewer than 10 elements), the protocol's overhead may still be noticeable compared to less secure alternatives.

Conclusion

Hazay and Nissim provide a robust framework for secure set operations that balances the rigorous requirements of the malicious adversary model with the practical need for efficiency. By moving away from the Random Oracle model and optimizing polynomial evaluations through hashing and OPRFs, they offer a path toward practical, privacy-preserving data collaboration in adversarial environments.

Summary updated

BibTeX
@inproceedings{hazay2010efficient,
  author = {Carmit Hazay and Kobbi Nissim},
  title = {{Efficient Set Operations in the Presence of Malicious Adversaries}},
  booktitle = {Public Key Cryptography},
  year = {2010},
  doi = {10.1007/978-3-642-13013-7\_19},
}
Figure