KryptRoomBook a Demo
All resources

Technical guide

How Private Set Intersection Works

Understand what private set intersection reveals, how cardinality-only matching differs, and why output policy matters.

Two organizations may need to learn whether their sets overlap without sending their full lists to one another. A manufacturer might hold supplier identifiers and a logistics partner might hold provider identifiers. A private set intersection protocol compares inputs while constraining what is revealed under a stated security model.

Choose between identities and a count

Imagine one set contains three sample identifiers and the other contains four. Exactly two appear in both. An intersection output can disclose those two identifiers to the designated recipient. A cardinality-only output discloses the number two to that recipient, without returning the matching identifiers. The permitted output still reveals information. In a tiny set, a count can be sufficient to infer membership. Repeated queries, input choice and observables such as set size can also matter.

Why normalization matters

Matching usually assumes both parties agree on what constitutes an equal item. Different casing, punctuation or identifier systems can change the result before any cryptographic comparison takes place. Deduplication and normalization should be defined in advance. The security assumptions and algorithm mode need to match the deployment and its output policy.

The bounded KryptRoom experiment

KryptRoom exercised exact ECDH cardinality-only matching using OpenMined PSI v2.0.6 on a synthetic fixture. That evidence covers a specific mode and does not certify arbitrary datasets, malicious participants or deployment readiness. A subsequent private join or analysis is a separate operation with its own inputs, output policy and trust assumptions. The walkthrough shows sample values and does not run PSI in the browser.

A small worked example

Let A = {S01, S02, S03} and B = {S02, S03, S04, S05}. A cardinality-only result is 2. The recipient learns the overlap count but not the protocol-returned identities. If that recipient already knows enough about the other input, the count may still reveal membership. These identifiers are fictional; this example is not a live execution.

Read the NIST PSI overview, the OpenMined PSI implementation, and the KryptRoom implementation evidence.