Co-operative Private Equality Test

Ronghua Li, Chuankun WuInt. J. Netw. Secur 2005

Introduction

This paper introduces the Co-operative Private Equality Test (CPET), a cryptographic protocol designed to allow two parties to determine if their secret inputs are identical with the assistance of a third-party facilitator. By leveraging the additive homomorphic properties of the Paillier cryptosystem, the authors present a solution that achieves constant-time complexity, significantly improving upon traditional bit-by-bit comparison methods.

Problem Statement

The authors address a variation of the "Socialist Millionaires' Problem," where two parties (A and B) wish to know if $a = b$ without revealing their actual values. The "Co-operative" variant introduces a third party (C) to facilitate the test under strict privacy constraints:

  1. A and B must learn nothing about each other's inputs beyond the equality result.
  2. Party C must learn nothing about the inputs $a$ or $b$, except for the final outcome of the test.

Previous solutions typically scaled linearly with the bit-length of the inputs (e.g., requiring 128 encryptions for 128-bit numbers). CPET aims for a constant-time primitive that remains efficient regardless of input size.

Methodology

The core of the CPET protocol is the use of Paillier’s Cryptosystem, which allows mathematical operations on encrypted data. Specifically, it enables the computation of an encrypted sum (or difference) from individual ciphertexts without requiring decryption.

Protocol Execution

The protocol proceeds in three main steps:

  1. Setup and Masking: Party C generates a public/private key pair. Parties A and B jointly agree on a secret random number, $r_{ab}$, which serves as a "random mask."
  2. Encrypted Exchange: Party A encrypts their input multiplied by the mask ($r_{ab} \cdot a$) and sends it to B. Party B then encrypts their own masked input ($r_{ab} \cdot b$).
  3. Homomorphic Comparison: Using homomorphic subtraction, B computes the encryption of the difference: $E(r_{ab}(a - b))$. This single ciphertext is sent to Party C.
  4. Decryption: Party C decrypts the message. If the result is $0$, then $a = b$. If the result is non-zero, the random factor $r_{ab}$ masks the actual difference, ensuring C learns nothing about the original values. C then broadcasts the result to A and B.

Key Insights

  • The Random Mask Trick: The use of $r_{ab}(a - b)$ is the protocol's most elegant feature. If $a = b$, the result is always 0. If $a \neq b$, the result is a pseudorandom value that prevents Party C from back-calculating the difference between the original inputs.
  • Efficiency Leap: By treating inputs as single elements in a large mathematical group rather than bit-strings, the protocol moves from $O(l)$ complexity (where $l$ is bit length) to $O(1)$ complexity.
  • Trust Distribution: The security model assumes Party C is "semi-honest"—meaning they follow the protocol but are curious—and does not collude with A or B. This makes the protocol suitable for automated cloud facilitators.

Results and Performance

  • Communication Efficiency: The protocol requires exactly 3 rounds of communication.
  • Message Complexity: The total data transferred is approximately $3c$ bits, where $c$ is the length of a single ciphertext.
  • Computational Efficiency: The protocol calls the encryption primitive a constant number of times, regardless of input length.
  • Security: The authors provide a security proof sketch showing the protocol is secure against passive adversaries under the standard semantic security assumptions of the Paillier cryptosystem.

Limitations and Future Work

  • Collusion Risk: The protocol's security breaks if Party C colludes with either A or B. Sharing internal states would allow the recovery of the other party's secret input.
  • Semi-Honest Model: The current design protects against "passive" adversaries who follow the rules. It does not inherently defend against "active" adversaries who might provide malicious data to manipulate the result.
  • Fairness: The protocol relies on Party C to broadcast the result honestly to both parties. Future research could focus on hardening the protocol against active cheating and ensuring guaranteed output delivery for all participants.

Summary updated

BibTeX
@article{li2005co,
  author = {Ronghua Li and Chuankun Wu},
  title = {{Co-operative Private Equality Test}},
  journal = {Int. J. Netw. Secur.},
  year = {2005},
}
Figure