Skip to Content
ElectronicsElectronics
  • Article
  • Open Access

19 December 2025

30 Pages

Post-Quantum Private Set Intersection with Ultra-Efficient Online Performance

,
,
and
1
School of Cyber Science and Technology, Beihang University, Beijing 100191, China
2
Beijing Institute of Mathematical Sciences and Applications, Beijing 101408, China
3
Department of Mathematical Sciences, Tsinghua University, Beijing 100084, China
4
School of Mathematics and Physics, Xi’an Jiaotong-Liverpool University, Suzhou 215123, China

Abstract

While tremendous progress has been made towards achieving highly efficient and practical Private Set Intersection (PSI) protocols during the last decade, the development of post-quantum PSI is still far from satisfactory. Existing post-quantum PSI protocols encounter a dilemma: while those based on fully homomorphic encryption (FHE) achieve low online communication, they suffer from significant online computation; conversely, protocols based on post-quantum Oblivious Pseudorandom Functions (OPRFs) exhibit excellent online computational performance but incur substantially high online communication. To overcome this dilemma, we present a lattice-based PSI protocol that achieves optimal online performance in both communication and computation. Our solution introduces two core innovations: a robust signal comparison algorithm based on RLWE key exchange, which determines the intersection through signal consistency rather than direct shared key comparison, and an optimized Oblivious Key–Value Stores (OKVS) implementation featuring a composite key–value mapping for efficient handling of high-dimensional RLWE polynomials. We implement the protocol and conduct extensive benchmarks in both symmetric and asymmetric set-size settings. The results show that our construction achieves the lowest online overhead in both computation and communication among all tests. For example, with asymmetric set sizes ( 2 12 , 11041 ) , the online phase requires only 0.132 s, yielding 19 × and 282 × improvements over FHE-based (CCS’21) and OPRF-based (EUROCRYPT’25) protocols, respectively. Even at ( 2 24 , 11041 ) , our online communication time is only 0.201 s, which is 226 × and 184 × that of FHE-based and OPRF-based PSI, respectively. Additionally, our online communication overhead is the lowest in all tests; however, this comes at the cost of heavy offline communication overhead for very large set sizes, revealing a clear trade-off between pre-computation and online efficiency. This work addresses a critical gap in post-quantum PSI by delivering a protocol that achieves balanced online communication and computational overhead, thereby enabling broader practical deployment.

1. Introduction

Private Set Intersection (PSI) protocols are one of the commonly used two-party secure computation primitives, which enables two parties (i.e., a receiver and a sender), each of whom has a set (respectively, X and Y), to privately learn the intersection X ∩ Y without disclosing additional information to the other party. This unique capability positions PSI as an ideal tool for facilitating data collaboration in privacy sensitive environments [1,2,3]. Over the years, PSI has found numerous applications in practice, including private contact discovery [4,5], online advertising [6,7], and privacy-preserving contact tracing for infectious diseases [8,9], among others. Due to its wide applications, tremendous progress has been made towards realizing PSI efficiently [10,11,12,13,14,15].
Given that the security of most widely used PSI protocols mostly relies on assumptions of classical number-theoretic hard problems, such as the discrete logarithm and integer factorization problems, which underpin the security of their core building blocks like Oblivious Transfer (OT) and Oblivious Pseudorandom Functions (OPRFs), it gives us confidence in the protocols’ security nowadays. However, the rapid advancement of quantum computing technology has posed a significant challenge to the underlying hardness assumptions, and it is expected that Diffie–Hellman (DH) assumptions for elliptic curves can be broken by a quantum computer. This is not only a future threat since protocol transcripts collected today can be recorded and saved until a quantum computer is available, then decrypted in a Harvest Now, Decrypt Later attack [16,17]. Motivated by these concerns, alongside conventional security and performance considerations, the development and deployment of PSI protocols resilient to quantum attacks have become an essential research problem.
The problem of constructing post-quantum-based PSI protocols has been studied extensively in the literature. Debnath et al. [18] proposed a two-party Private Set Intersection cardinality (PSI-CA) protocol based on the hardness of the learning-with-errors problem, which achieves linear computational and communication complexity of the size of the inputs, i.e., O ( | X | + | Y | ) , where | X | and | Y | are the set sizes of the sender and receiver, respectively. Follow-up work [19] proposed a lattice-based multi-party PSI protocol under a star topology, achieving linear complexity of the input set size. Recently, Abudaqa et al. [20] presented instantiations of PSI from prominent post-quantum key encapsulation mechanisms, i.e., Crystals-Kyber and Classic-McEliece. While their Kyber-based PSI protocol which utilizes the multiplicative homomorphic property, requires 2681.22 KB of communication and 228.1 ms to compute an intersection on two sets with 700 elements each, their McEliece-based protocol that uses additive homomorphism in conjunction with a bloom filter data structure requires 1515.11 KB of communication and 19.70 ms of running time. As Abudaqa et al. [20] pointed out, the Kyber-based PSI will suffer from prohibitive computational and communication overhead when a large number of items are involved in the multiplication operation, which significantly limits its scalability in practice, while the McEliece-based PSI demonstrates better efficiency in performance but raises fundamental concerns regarding its security.
Chen et al. [2] proposed an efficient PSI protocol leveraging fully homomorphic encryption (FHE), which works particularly well when the receiver’s set is significantly smaller than the sender’s. It achieves communication complexity linear in the size of the smaller set, and logarithmic in the larger set. Chen et al. [2] strategically decoupled the protocol into a pre-processing phase that can be performed entirely offline without involving the counterpart and an efficient online phase. During pre-processing, the sender with the larger set locally performs computationally intensive tasks, such as hashing its set and pre-computing polynomial coefficients. During the online phase, the receiver encrypts each of its items y and sends ciphertexts to the sender. For each y, the sender then evaluates homomorphically the product of differences of y with all of the sender’s items x, randomizes the product by multiplying it with a uniformly random non-zero plaintext, and sends the result back to the receiver. The result decrypts to zero precisely when y is in the sender’s set, and to a uniformly random non-zero plaintext otherwise, revealing no information about the sender’s set to the receiver. To intersect a large set of size | X | = 2 24 with a much smaller set | Y | = 11041 , the FHE-based PSI [2] protocol requires an online running time of 44.7 s and a communication cost of 23.2 MB. Later, Chen et al. [21] used an Oblivious Pseudorandom Function (OPRF) pre-processing phase to significantly improve the performance of FHE-based PSI over [2], which achieves an online running time of 20.1 s and online communication cost of 41.48 MB when computing intersections on sets with size | X | = 2 24 and | Y | = 11041 . The follow-up work of Cong et al. [22] goes a step further to promote the efficiency of FHE-based PSI, and yields a protocol with better computation cost, requiring only O ( | X | ) homomorphic multiplications, and communication complexity sublinear in the larger set size. For intersecting 2 24 and 11041 item sets, their FHE-based PSI protocol reduces the online communication overhead by 71% over [21] (from 41.48 MB to 11.87 MB). Notice that an significant advantage of the FHE-based PSI is that it has zero communication overhead during the offline phase; however, its primary drawback lies in the substantial computational overhead and latency introduced by the intensive homomorphic operations required during the online phase, which remains a critical bottleneck for real-time applications.
Recently, Heimberger et al. [23] proposed a post-quantum OPRF protocol (called LEAP) based on a lattice-based PRF. By incorporating LEAP with the OPRF-based PSI framework proposed by Kiss et al. [24], Heimberger et al. [23] also achieved a post-quantum PSI protocol in the context of unbalanced settings, resulting in a highly efficient implementation. Their PSI protocol based on LEAP follows a two-phase structure. In the offline phase, the sender pre-processes its large set by computing PRF values and constructing a Cuckoo filter. During the online phase, the sender and receiver interact to evaluate the OPRF for each element in the receiver’s set, after which the receiver performs a local filter lookup to identify the intersection. This architecture effectively offloads the majority of the computational load to the sender, thereby optimizing the receiver’s online efficiency. For instance, with parameters targeting an intersection of sets of sizes | X | = 2 24 and | Y | = 2 15 , the entire online phase takes approximately 90 s and incurs a total communication cost of about 722 MB. The outstanding online computation time of the LEAP-based PSI comes at the cost of high communication overhead.
Concurrently, Heimberger et al. [25] proposed an isogeny-based OPRF (called OPUS), and instantiated Kiss et al.’s PSI framework using OPUS to achieve a post-quantum PSI protocol. However, OPUS-based PSI has significantly higher computational and communication overhead compared to LEAP-based PSI. For instance, in a balanced PSI scenario with set sizes | X | = | Y | = 2 10 , the computational latency of OPUS-based PSI becomes substantial, with the total online running time exceeding 16,000 s and the communication overhead increasing to approximately 53 MB.
The practical deployment of existing post-quantum PSI protocols is currently hindered by a performance gap where no protocol achieves high efficiency in both communication and computation. On one hand, FHE-based PSI protocols achieve low online communication, yet they suffer from significant online computation. On the other hand, post-quantum OPRF-based PSI protocols exhibit excellent online computational performance but incur substantially high online communication. Such a dilemma makes us ask following question:
Can we design a post-quantum PSI protocol that achieves optimal online communication and computational overhead simultaneously?
In this paper, we aim to design a post-quantum PSI protocol that achieves optimal online efficiency. Our primary objective is to minimize the online computation and communication overhead while ensuring robust security against quantum attacks. The target protocol is designed to deliver exceptional online performance across both balanced and unbalanced scenarios, handling set sizes ranging from small ( 2 7 ) to large ( 2 24 ). We anticipate that our work will not only bridge the current gap in high-performance post-quantum PSI design but also create new opportunities for the widespread application of privacy-preserving technologies in the quantum era.

1.1. Contributions

In this paper, we make positive progress towards addressing the above question by presenting a lattice-based PSI protocol that demonstrates ultra online performance. By shifting the majority of computational operations to the offline phase, we significantly minimize both online computation and communication overhead while maintaining efficient offline performance. In our proposed PSI protocol, we introduce a robust signal comparison algorithm ( C o m p a r e ( · ) ). Unlike traditional Diffie–Hellman (DH)-based PSI, which compares shared keys, our PSI protocol determines the intersection by comparing signal consistency, while preserving the structural elegance of its DH-based counterparts. Furthermore, we optimize the Oblivious Key–Value Stores (OKVS) implementation from [26] with a dedicated composite key–value mapping for high-dimensional polynomials. This enhancement enables efficient polynomial encoding/decoding, facilitating high-performance storage and single-query retrieval of polynomials, which is crucial for our PSI protocol’s efficiency.
Our PSI protocol delivers the lowest online running time among compared protocols, which only relies on the size of the receiver’s set n 2 . In the asymmetric setting, regardless of whether n 1 is small or large, for ours the online time remains between 0.063 and 0.116  s for n 2 = 5535 . The results in the large-scale set size ( n 1 = 2 24 ) scenario highlight this gap, at n 2 = 5535 , where ours achieves speedups of 360 × and 184 × that of FHE-based [22] and post-quantum OPRF-based [23] PSI protocols, respectively.
Our PSI incurs the lowest and constant online communication which only depends on n 2 . In the asymmetric setting, for ours the online communication is a constant 2.787  MB for n 2 = 5535 . Compared with FHE-based and post-quantum OPRF-based PSI, the communication overhead is reduced by up to 3.12 × and 44 × , respectively.
The key reason of our protocol outperforming the state-of-the-art lies in the fact that the dominant communication overhead of our online phase is bounded by the receiver’s set size n 2 which is significantly smaller than the sender’s. As a result, the online communication is nearly independent of the sender’s set size and remains close to constant. In addition, the signal comparison algorithm used to determine the intersection in the online phase only requires lightweight bitwise operations that scale with n 2 , thereby enabling extremely low online computation for our post quantum PSI protocol.
Overall, our PSI has ultra online performance, with the lowest online time and online communication overhead among all the comparison experiments.
We note that the online performance gain is accompanied with higher offline communication costs. Nevertheless, for small and medium-size datasets (e.g., n 1 ≤ 2 16 ) the total communication of our protocol remains the lowest. For large datasets (e.g., n 1 ≥ 2 20 ), the offline communication is much heavier compared to the others.

1.2. Related Work

Existing research on PSI can be divided into two main categories. One is classical constructions, which use public keys and symmetric cryptography. The other is post-quantum constructions, which are instantiated based on assumptions related to Learning with Errors (LWE), Ring Learning with Errors (RLWE), or learning parity with noise (LPN).

1.2.1. Classical PSI

The design of the PSI protocol is highly dependent on the relationship between the set sizes of the two participating parties. Accordingly, its technical approach can be clearly divided into two main strands: balanced PSI and unbalanced PSI. There are significant differences between the two in terms of design objectives, technical selections, and optimization strategies.
In balanced PSI, it is assumed that the sizes of the two parties’ sets are on the same order of magnitude ( | X | ≈ | Y | = n ). The core objective is to minimize the total overhead of the protocol execution (both computational cost and communication cost), that is, to seek the optimal asymptotic complexity with respect to n.
Public-key-based PSI. The PSI protocol based on the Diffie–Hellman key exchange was initially proposed by Meadows [27] and later refined for practical systems by Huberman et al. [28]. Its core idea is to exploit the commutativity property of DH key exchange, enabling intersecting elements to yield identical values after being encrypted by both parties. Freedman et al. [29] introduced a polynomial-based method, encoding sets as polynomial roots and using oblivious evaluation to find intersections. Kissner and Song [30] later generalized this with polynomial homomorphic encryption for broader set operations. Additionally, RSA blind signature technology can be utilized, where [31] transforms the comparison of sets into the comparison of blind signature results.
OT Extension and OPRF-based PSI. A pivotal advancement in practical balanced PSI came with the adoption of the Oblivious Transfer (OT) extension [10], which efficiently transforms a limited number of costly public-key operations into a large volume of low-cost symmetric-key operations. In the OPRF-PSI framework, the server computes tags for its elements using a secret key, while the client securely retrieves tags for its own elements via OT without disclosing them. Pinkas, Schneider, and Zohner [30] conducted a comprehensive analysis of OT extension-based PSI, comparing it favorably with alternative approaches and spurring its widespread adoption. The PSI protocol in [11] later marked a significant milestone by introducing an efficient batch OPRF construction, setting a new performance benchmark for balanced PSI with its remarkably low communication overhead and high computational efficiency. Further enhancements included permutation-based hashing by Pinkas, Schneider, and Zohner [32] to minimize collisions, along with subsequent refinements such as faster OPRF implementations [33] and additional optimizations in communication and computation costs via a simple-OT-based OPRF [34].
Circuit-based PSI. Huang et al. in 2012 [35] utilized Yao’s garbled circuits to construct a sorting-comparison-shuffling circuit, enabling secure set intersection under the semi-honest model. However, this approach incurred substantial circuit size and communication overhead. Subsequently, Pinkas et al. [32] introduced permutation hashing techniques, significantly reducing computational costs. In 2018, they further adopted two-dimensional cuckoo hashing [36], bringing computational and communication overheads close to linear complexity. In 2019, by integrating Oblivious Programmable Pseudorandom Functions (OPPRF), they achieved the first circuit protocol with linear communication complexity [37]. Chandran et al. [38] further optimized the approach using batched OPPRFs, making progress in achieving linear computational and communication complexity.
In an unbalanced PSI scenario, the sizes of the two parties’ sets vary greatly, requiring specialized protocol design to reduce the computational burden on the resource-constrained party.
OT/OPRF-based PSI. The work of [12] was groundbreaking, introducing the OT extension paradigm that shifted computational asymmetry to the server side, achieving linear complexity relative to the larger set size and enabling practical deployments where clients with small datasets could interact efficiently with servers holding large amounts of records. Later, OT/OPRF-based schemes incorporating hashing-to-bins emerged as the mainstream approach. This is attributed to their linear encoders and minimal public key cost on the critical path as demonstrated in studies such as [3,10,11,13]. Resende and Aranha [39] proposed a protocol in which the sender applies an Oblivious Pseudorandom Function (OPRF) to the receiver’s set Y. To reduce communication overhead, the sender compresses X ′ before transmitting it. However, this compression scales linearly with the size of the larger set. Kiss et al. [24] proposed another protocol following a similar framework, differing primarily in the implementation of the OPRF and the compression strategy. Resende and Aranha [39] uses a Diffie–Hellman-based OPRF, while Kiss et al. [24] uses oblivious evaluation of the AES function using garbled circuits. This modification makes local OPRF evaluation more efficient at the sender but at the expense of higher communication and computational costs at the receiver.
OKVS-based PSI. A significant advancement came with the utilization of Oblivious Key–Value Stores (OKVS). The foundational work of [40] demonstrated how a specific OKVS construction (PaXoS) could be leveraged to create fast PSI protocols, even in the malicious security model. This was subsequently amplified and formalized by [41], who provided a comprehensive study of OKVS and showed how they can be used to amplify PSI protocols, leading to improved communication complexity. The work of [42] pioneered this direction, constructing a fast OPRF and circuit-PSI from VOLE, which inherently utilizes an OKVS-like structure. This synergy was further optimized by [15], who achieved blazing-fast PSI rates by employing improved OKVS constructions and subfield Vector Oblivious Linear Evaluation (VOLE), marking a state-of-the-art performance.

1.2.2. Post-Quantum PSI

Post-quantum unbalanced PSI faces the challenge of maintaining the client efficiency advantages of classical approaches while incorporating quantum-resistant cryptographic primitives that typically involve larger parameters and more expensive operations.
FHE-based PSI. Chen et al. [2] proposed an unbalanced PSI protocol with low communication overhead by using RLWE-based leveled fully homomorphic encryption (FHE). In this work, the communication overhead is linear in the size of the (smaller) receiver’s set and only logarithmic in the size of the (larger) sender’s set. This foundational work was subsequently refined and extended in [21], which bolstered the security model through the integration of an OPRF, supported arbitrary-length items, and generalized the protocol to the Labeled PSI setting, enabling the transfer of arbitrary-length labels associated with the intersecting items. Building on this, an important recent advance is proposed in [22]. It achieves an asymptotically optimal computational cost of only O ( | X | ) homomorphic multiplications and achieves sublinear communication complexity in larger sets | X | .
OPRF-based PSI. Constructions based on isogenies between supersingular elliptic curves represent an early line of research into post-quantum OPRFs. Boneh, Kogan, and Woo [43] proposed several isogeny-based OPRFs. However, an initial supersingular isogeny Diffie–Hellman (SIDH)-based construction was broken and later fixed within a framework of higher-dimensional isogenies. Another line of work uses commutative supersingular isogeny Diffie–Hellman (CSIDH) but often requires trusted setup or has high communication complexity [44]. A common challenge for isogeny-based OPRFs is their high computational overhead, with client requests taking seconds and server responses over a minute. This makes them generally unsuitable for PSI scenarios involving many OPRF evaluations.
Lattice assumptions are a promising foundation for practical post-quantum cryptography, leading to several OPRF proposals. The work of Heimberger et al. [23] introduces a highly efficient lattice-based OPRF based on the heuristic Ring-Learning with Rounding (RLWR) assumption. It builds upon the Spring PRF and uses OT and oblivious linear evaluation (OLE) for oblivious evaluation. Leap achieves online computation times of 750 microseconds for the server and 11 microseconds for the client, with online communication of just 23 kB. This efficiency profile makes Leap highly suitable for unbalanced PSI, where a client with a smaller set performs many fast, low-communication OPRF evaluations against a server’s large set.
Other recent advances on post-quantum OPRFs, such as LeOPaRd [45] and distributed OPRFs from Legendre PRFs [46], focus on verifiable or multi-server OPRF functionalities and do not directly yield two-party PSI protocols comparable to the schemes discussed above.

1.3. Road Map

The remainder of this paper is organized as follows. Section 2 introduces the notations and provides the necessary preliminaries. Subsequently, Section 3 details the construction of our proposed post-quantum PSI protocol, which achieves ultra-efficient online performance. It elaborates on the core components, with a particular focus on the implementation of the signal comparison algorithm. Section 4 presents the design of our optimized OKVS implementation. Section 5 focuses on the experimental evaluation, where we evaluate the performance, scalability, and overhead of our proposed solutions in comparison to state-of-the-art baselines across various realistic scenarios. Finally, Section 6 wraps up the paper by summarizing the key findings and discussing the broader implications of our work.

2. Preliminaries

2.1. Notations

Let n be a power of two, and let q > 2 be a prime modulus. Define the ring R q = Z q [ x ] / ( x n + 1 ) . Each element in R q is represented as a polynomial of degree less than n with coefficients in Z q . Let χ α denote a discrete Gaussian distribution over Z n with standard deviation α , which is extended to R q by sampling each coefficient independently. All polynomials are in bold. λ denotes the cryptographic security parameter of the protocol.

2.2. Private Set Intersection

Private Set Intersection (PSI) enables two parties with private inputs to compute the intersection while revealing nothing beyond it. A protocol involves a sender S with input X = { x 1 , … , x n 1 } and a receiver R with input Y = { y 1 , … , y n 2 } , where only R obtains I = X ∩ Y . Security is formalized via the ideal functionality F PSI , which, on inputs X and Y, returns X ∩ Y to R and nothing to S (see Figure 1).
Figure 1. Ideal functionality F PSI .
A protocol Π is secure if its execution is indistinguishable from F PSI under simulation.

Semi-Honest Security

Let view 1 Π ( X , Y ) and view 2 Π ( X , Y ) be the views of S and R , and let output Π ( X , Y ) be R ’s output. Denote by F PSI ( X , Y ) the ideal output.
Correctness.  Π is correct if for all X , Y ,
Pr output Π ( X , Y ) ≠ F PSI ( X , Y ) ≤ negl ( λ ) .
Privacy.  Π preserves privacy against semi-honest adversaries if there exist PPT simulators S 1 , S 2 such that
S 1 ( 1 λ , X ) ≈ c view 1 Π ( X , Y ) ,
S 2 ( 1 λ , Y , F PSI ( X , Y ) ) ≈ c view 2 Π ( X , Y ) .
Thus, the sender’s view can be simulated from X alone, and the receiver’s view from Y and the intersection, ensuring that Π securely emulates F PSI in the semi-honest model.

2.3. RLWE-Based Key Exchange Protocol

We present an alternative description of the RLWE-based key exchange protocol introduced by Ding et al. [47], which enables two parties, denoted as P 1 and P 2 , to establish a shared secret key over an insecure channel. The protocol relies on the hardness of the Ring Learning with Errors (RLWE) problem and employs a reconciliation mechanism to handle inherent noise.

2.3.1. RLWE Problems

The Ring Learning with Errors (RLWE) problem, introduced by Lyubashevsky et al. [48], is a structured variant of the Learning with Errors (LWE) problem. Let R = Z [ x ] / ( x n + 1 ) with n being a power of two, and define R q = Z q [ x ] / ( x n + 1 ) for an integer modulus q ≥ 2 .
The RLWE distribution A s , χ over R q × R q is parameterized by a secret s ∈ R q , and is defined by sampling a ← R q uniformly and outputting ( a , b = a · s + e ) , where e ← χ is an error polynomial drawn from a discrete Gaussian distribution.
The decision RLWE problem is to distinguish whether a sequence of samples is drawn from A s , χ or uniformly from R q × R q . The RLWE problem is shown to be as hard as approximating the Shortest Vector Problem (SVP) on ideal lattices in the worst case, under quantum reductions.
The algebraic structure of R q enables efficiency improvements, such as applying the Number Theoretic Transform (NTT) for fast polynomial multiplication. Variants of RLWE, such as the HNF-RLWE problem where the error is sampled from the entire ring, are also assumed to be hard.

2.3.2. RLWE-Based Post Quantum Key Exchange Protocol STEPS

Based on the hardness of the RLWE problem, the following protocol enables two parties to establish a shared secret key resistant to quantum adversaries. The protocol proceeds as follows:
1.
Initialization: The public polynomial a ∈ R q is distributed to both parties.
2.
P 1 ’s initial message: P 1 samples secret polynomial s 1 ← χ α and error polynomial e 1 ← χ α . Then P 1 computes p 1 = a · s 1 + 2 e 1 mod q and sends p 1 to P 2 .
3.
P 2 ’s response: P 2 samples secret polynomial s 2 ← χ α , error polynomials e 2 ← χ α , and e 2 ′ ← χ α . And computes p 2 = a · s 2 + 2 e 2 mod q , k 2 = p 1 · s 2 + 2 e 2 ′ mod q . After that, P 2 generates a signal σ = S i g ( k 2 ) , where S i g is the signal function (defined below). Computes the shared key SK 2 = Mod 2 ( k 2 , σ ) , where Mod2 is the robust extractor and sends ( p 2 , σ ) to P 1 .
4.
P 1 ’s key derivation: P 1 first samples e 1 ′ ← χ α . Computes k 1 = s 1 · p 2 + 2 e 1 ′ mod q and the shared key SK 1 = Mod 2 ( k 1 , σ ) .

2.4. Signal and Extraction Functions

The signal function S i g : R q → R 2 is defined coefficient-wise. For a polynomial x = ∑ i = 0 n − 1 x i X i ∈ R q , the signal is computed as
S i g ( x ) = ∑ i = 0 n − 1 σ b ( x i ) X i ,
where b ← $ { 0 , 1 } is chosen uniformly at random for each invocation, and the functions σ 0 , σ 1 : Z q → { 0 , 1 } are defined as
σ 0 ( x ) = 0 if x ∈ [ − ⌊ q / 4 ⌋ , ⌊ q / 4 ⌋ ] , 1 otherwise , σ 1 ( x ) = 0 if x ∈ [ − ⌊ q / 4 ⌋ + 1 , ⌊ q / 4 ⌋ + 1 ] , 1 otherwise .
The robust extractor Mod 2 : Z q × { 0 , 1 } → { 0 , 1 } is defined for each coefficient as
Mod 2 ( x , ω ) = x + ω · q − 1 2 mod q mod 2 .
For a polynomial x ∈ R q and a signal polynomial ω ∈ R 2 , the extraction is applied coefficient-wise.

2.4.1. Correctness

Under the condition 8 ( α q ) 2 n ≤ q 4 − 2 , the values k 1 and k 2 satisfy
k 1 − k 2 = 2 e 1 · s 2 + 2 e 1 ′ − 2 s 1 · e 2 − 2 e 2 ′ mod ( q , x n + 1 ) ,
In [47] (Lemma2), the magnitude of each coefficient in the difference is bounded by q 4 − 2 with overwhelming probability. And Lemma4 in [47] shows that if 8 ( α q ) 2 · n ⩽ q 4 − 2 , then S K 1 = S K 2 with overwhelming probability.

2.4.2. Security

The protocol is secure against passive adversaries under the RLWE assumption, which asserts that distinguishing between RLWE samples and uniform polynomials is computationally hard. The signal function does not leak information about the shared key due to the randomization in the choice of b, and the extracted key is uniformly random given the signal.

2.5. Oblivious Key–Value Stores (OKVS)

2.5.1. Definition of Oblivious Key–Value Stores (OKVS)

An OKVS enables encoding a set of n key–value pairs ( k i , v i ) i = 1 n with k i ∈ K and v i ∈ V into an array S ∈ V m while preserving the confidentiality of the keys when the values are uniformly random. Formally, an OKVS scheme consists of two polynomial-time algorithms as follows.
The probabilistic encoding algorithm Encode ( I ; R ) → S takes as inputs a set of n key–value pairs I = ( k i , v i ) i = 1 n ∈ ( K × V ) n with n distinct keys and randomness R, and outputs an encoding S ∈ V m ∪ { ⊥ } . The deterministic decoding algorithm Decode ( S , k ; R ) → v takes as inputs the encoding S ∈ V m and randomness R, and outputs a value v ∈ V .
The scheme must satisfy two crucial properties. Correctness requires that for all sets of n key–value pairs I = ( k i , v i ) i = 1 n ⊆ ( K × V ) n with n distinct keys, the probability Pr [ Decode ( S , k i ) ≠ v i ∣ S ← Encode ( I ; R ) ] is bounded by ϵ for all i ∈ [ n ] , where the probability is taken over the choice of randomness R. Obliviousness guarantees that for any two sets of n distinct keys A = { k 1 , … , k n } ⊆ K n and B = { k 1 ′ , … , k n ′ } ⊆ K n and values v 1 , … , v n each drawn uniformly at random from V , the distributions Encode ( { ( k i , v i ) } i ∈ [ n ] ) and Encode ( { ( k i ′ , v i ) } i ∈ [ n ] ) are computationally indistinguishable.

2.5.2. Construction of OKVS [26]

We recall the OKVS framework over a finite field F with key space K . Given n distinct key–value pairs { ( k i , v i ) } i = 1 n , OKVS encodes them into an array S ∈ F m of length m = ( 1 + ϵ ) n , where ϵ > 0 is a redundancy factor. Each key k determines a band of width w in a length-m row r ( k ) ∈ { 0 , 1 } m : exactly w consecutive positions are non-zero and the rest are zeros. The band start index a ∈ [ m − w + 1 ] and the band contents are derived from independent hash functions (modeled as random oracles) H 1 , H 2 seeded by public randomness. Stacking the rows r ( k i ) yields a random band matrix M ∈ { 0 , 1 } n × m . The encoder outputs any solution S ∈ F m to M · S = v 1 , … , v n ⊤ ∈ F n . Decoding a query key k is the dot product r ( k ) · S , which touches only the w-cell band. For parameters m = ( 1 + ϵ ) n , w = Θ λ OKVS ϵ + log n , the matrix M has full row rank except with probability at most 2 − λ OKVS to ensure correctness. Encoding runs in O ( n w ) word operations using band-aware Gaussian elimination, while decoding takes O ( w ) . We denote the resulting encode and decode algorithms by Enc RB and Dec RB , respectively, and give them in Algorithms 1 and 2.
Algorithm 1:  Enc RB (OKVS Encode)
Electronics 15 00013 i001
Algorithm 2:  Dec RB (OKVS Decode)
Electronics 15 00013 i002

3. Our Post-Quantum PSI Protocol

3.1. Construction

Our post-quantum PSI protocol, called signal-based PSI Π Sig − PSI , is constructed from the RLWE-based Ding Key Exchange scheme. The design goal is to enable two parties, referred to as the sender holding a set X = { x i } i ∈ [ n 1 ] and the receiver holding a set Y = { y j } j ∈ [ n 2 ] , to compute the intersection X ∩ Y while revealing no additional information. The novelty of our approach lies in leveraging signal comparison rather than shared key extraction, combining with the usage of OKVS Encode/Decode technology to reduce the computation and communication overhead.
Our protocol is presented in Figure 2, which proceeds with two phases, an offline phase and an online phase. The offline phase begins with the sender sampling its secret key s 1 and error terms e 1 , i ← χ α for i ∈ [ n 1 ] . For each input element x i , the sender computes a public key P 1 , i = H ( x i ) s 1 + 2 e 1 , i ( mod q ) . These public keys are then embedded into an OKVS, resulting in an encoded structure S = OKVS . Encode ( { ( h ( x i ) , P 1 , i ) } i ∈ [ n 1 ] ) , which is transmitted to the receiver.
Figure 2. Our Post-Quantum PSI Π Sig - PSI .
Upon receiving S, the online phase begins. The receiver samples its own secret key s 2 and error terms e 2 , j for j ∈ [ n 2 ] , and computes its corresponding public keys P 2 , j = H ( y j ) s 2 + 2 e 2 , j ( mod q ) . These public keys are returned to the sender. After receiving { P 2 , j } j ∈ [ n 2 ] , the sender derives intermediate auxiliary values K 1 , j = P 2 , j s 1 + 2 g 1 , j ( mod q ) , where g 1 , j ← χ α are fresh error terms. Each K 1 , j is then mapped to a signal ω 1 , j = S i g ( K 1 , j ) , and the set ω 1 = { ω 1 , j } j ∈ [ n 2 ] is transmitted to the receiver. In parallel, the receiver decodes the OKVS on its input h ( y j ) to obtain P 1 , j ′ = OKVS . Decode ( S , h ( y j ) ) , and computes its own intermediate auxiliary values K 2 , j = P 1 , j ′ s 2 + 2 g 2 , j ( mod q ) with g 2 , j ← χ α . The receiver then computes signals ω 2 = { ω 2 , j } j ∈ [ n 2 ] = S i g ( K 2 , j ) for each input element.
Finally, the intersection is obtained through the signal matching procedure. The receiver executes the algorithm C o m p a r e ( ω 1 , ω 2 , n 2 ) , which determines whether signals generated by the two parties correspond to the same input element. The correctness of this comparison follows from the property that if x i = y j , then the difference K 1 , j − K 2 , j reduces to a small noise term with overwhelming probability. As a consequence, the signals ω 1 , j and ω 2 , j will be equal with high probability. This guarantees that the receiver outputs I = X ∩ Y correctly, while ensuring that no information about non-intersecting elements is revealed.

3.2. Implementation of the Compare (·) Algorithm

The C o m p a r e ( · ) algorithm operates by analyzing two signal sets w 1 and w 2 , each of which consists of n 2 signals, corresponding to two private sets X and Y to determine their intersection I. The correctness of C o m p a r e ( · ) algorithm is ensured by the fact that a signal match occurs if and only if the corresponding elements from the two private sets are equal. In order to efficiently implement C o m p a r e ( · ) between two sets of signals, a sub-algorithm for a one-to-one signal matching M a t c h ( · ) is provided firstly, which takes as inputs signals w 1 , i and w 2 , j from each set of w 1 and w 2 and returns a bit to indicate if two signals match or not, i.e., 0 (mismatch) or 1 (match). The C o m p a r e ( · ) algorithm invokes the M a t c h ( · ) subroutine ( n 2 ) 2 times to identify all matching signal pairs, thereby allowing the receiver to output the intersection X ∩ Y = { y j ∣ ∃ i ∈ [ n 2 ] s . t . M a t c h ( w 1 , i , w 2 , j ) = 1 for j ∈ [ n 2 ] } .
The M a t c h ( · ) sub-algorithm specifically operates on a pair of input signals w 1 , i ∈ w 1 and w 2 , j ∈ w 2 , which are derived from the ring elements K 1 , i and K 2 , j respectively via the signal function S i g ( · ) . Thus, we can determine the relationship between K 1 , i and K 2 , j by comparing whether the signals match, and further infer whether y j ∈ X . If y j = x i ∈ X , the signal values corresponding to the ring elements K 1 , i and K 2 , j obtained from y j are consistent, and M a t c h ( · ) outputs 1; otherwise it outputs 0. According to the definition of the signal function Equation (4), when K 1 , i or K 2 , j lies within the interval ( − q 2 , − q 4 ) ∪ ( q 4 , q 2 ) the output value is 1, and a value of 0 when it is within [ − ⌊ q / 4 ⌋ , ⌊ q / 4 ⌋ ] . Intuitively, these two cases correspond to the blue and white segments, respectively, as illustrated in the top bar of the Figure 3. We denote ± τ = ± ⌊ q / 4 ⌋ as the signal flips point, which means the signals may be different if K 1 , i and K 2 , j are around ± τ . The errors upper bound is denoted as η . Accordingly, three regions are delineated as illustrated in Figure 3:
  • certain-1 region (orange segments): ( − q 2 , − τ − η ) ∪ ( τ + η , q 2 ) . If K 2 , j resides in this region, and | K 2 , j − K 1 , i | ≤ η , then it has S i g ( K 1 , i ) = S i g ( K 2 , j ) = 1 .
  • certain-0 region (white segment): ( − τ + η , τ − η ) . If K 2 , j is located in this region, and | K 2 , j − K 1 , i | ≤ η , then it has S i g ( K 1 , i ) = S i g ( K 2 , j ) = 0 .
  • uncertain region (shaded segment): ( − τ − η , − τ + η ) ∪ ( τ − η , τ + η ) . If K 2 , j falls within this region, signal flipping may occur due to errors. However, since this uncertain region is very small (with q ≈ 2 20 significantly larger than the error upper bound η ), its impact on matching correctness is negligible.
Figure 3. Top bar: partition induced by S i g ( · ) on the centered axis [ − q 2 , q 2 ] (blue: | u | ≥ τ ⇒ signal = 1 ). Bottom bar: orange represents the certain-1 region ( | u | ≥ τ + η ), white represents the certain-0 region ( | u | ≤ τ − η ), hatched represents uncertain around ± τ . Vertical red lines mark the signal flips point at ± τ with τ = ⌊ q / 4 ⌋ .
In our PSI protocol, if the receiver’s element y j ∉ X , the value P 1 ′ ( y j ) obtained from the decoding of OKVS on y j is random, then the corresponding K 2 , j is also random. Therefore, the probability that two signals w 1 , i and w 2 , j match is negligible, i.e., M a t c h ( w 1 , i , w 2 , j ) = 0 with overwhelming probability. If y j = x i ∈ X , then H ( y j ) = H ( x i ) . We have OKVS.Decode( H ( y j ) ) = P 1 ′ ( y j ) = P 1 , i = H ( x i ) s 1 + 2 e 1 , i ( mod q ) . The corresponding signals are
ω 1 , i = Sig ( K 1 , i ) = Sig ( ( H ( y j ) s 1 s 2 + 2 ( e 2 , j s 1 + g 1 , j ) ) mod q ) , ω 2 , j = Sig ( K 2 , j ) = Sig ( ( H ( y j ) s 1 s 2 + 2 ( e 1 , i s 2 + g 2 , j ) ) mod q ) .
Since K 2 , j − K 1 , i = 2 ( e 1 , i s 2 + g 2 , j − e 2 , j s 1 − g 1 , j ) , given that the upper bound of the error term is η , then we have that S i g ( K 1 , i ) = S i g ( K 2 , j ) = 0 if K 2 , j is in the certain-0 region, and S i g ( K 1 , i ) = S i g ( K 2 , j ) = 1 if K 2 , j is in the certain-1 region. Owing to the large value of q, certain regions take up approximately 99% of the domain. If K 2 , j lies in the uncertain region, e.g., ( − τ , − τ + η ) , then S i g ( K 2 , j ) = 0 . Otherwise, it may happen that K 1 , i lies in ( − τ − η , − τ ) , which implies S i g ( K 1 , i ) = 1 , leading to inconsistency between two signals. Given that the range of the uncertainty region is extremely small, in this case, M a t c h ( · ) determines whether two signals match by counting the proportion of consistent signal bits between the two signals and setting a threshold (e.g., 99%) to ensure high accuracy.

3.2.1. Match (·) Algorithm

All operations are in R q = Z q [ x ] / ( x n + 1 ) . We use the unique centered set of residues D q = − q 2 , q 2 ∩ Z , and henceforth assume all coefficients are represented in D q .
Under the assumptions of Theorem 2 (random oracle for H, i.i.d. discrete-Gaussian secrets and errors), the per-coefficient difference noise between K 1 , j and K 2 , j is subgaussian with proxy
α ξ = 8 n α 4 + 8 α 4 , h 1 = 5 α ξ .
To reason on the integer lattice, we use the discrete margin η = ⌈ h 1 ⌉ ∈ N .
A centered ring element u ∈ D q is in the certain region C τ , η Z (or uncertain region U τ , η Z ) if it is at a distance of at least η from the decision boundaries ± τ :
C τ , η Z = { | u | ≤ τ − η } ∪ { | u | ≥ τ + η } , U τ , η Z = | | u | − τ | < η .
The procedure of M a t c h ( · ) is shown in Algorithm 3, which compares two signals ω 1 , i , ω 2 , j ∈ { 0 , 1 } ℓ derived from K 1 , i , K 2 , j using K 2 , j as an object of reference. For t = { 1 , … , ℓ } , two steps are performed: (i) if the coefficient u t (the t-th coefficient of K 2 , j ) lies in C τ , η Z and the signal bits are unequal, it immediately rejects; (ii) whenever the signals bits are consistent, regardless of whether u t is in the certain region or the uncertain region, a consistency counter C o u n t is incremented. The two signals are considered equal if and only if the final consistency count reaches the threshold ψ ℓ .

3.2.2. Compare (·) Algorithm

Algorithm 4 shows the procedure of C o m p a r e ( · ) . Given two sets of signals ω 1 = { ω 1 , 1 , … , ω 1 , n 2 } and ω 2 = { ω 2 , 1 , … , ω 2 , n 2 } , for each pair of signals ω 1 , i , ω 2 , j where i , j ∈ [ n 2 ] , it invokes the M a t c h ( ω 1 , i , ω 2 , j ; K 2 , j , ψ ) (Algorithm 3) to determine whether any two signals match or not. For each j = 1 , … , n 2 , if there exists i ∈ [ n 2 ] such that M a t c h ( ω 1 , i , ω 2 , j ; K 2 , j , ψ ) = 1 , then we include y j in the intersection set.
Algorithm 3: Match ( ω 1 , i , ω 2 , j ; K 2 , j , ψ )
Electronics 15 00013 i003
Algorithm 4:  Compare ( ω 1 , ω 2 , K 2 )
Electronics 15 00013 i004

3.2.3. Completeness and Soundness

Assumption 1 (Errors tail per coefficient).
For each coefficient t, Pr [ | ξ [ t ] | > h 1 ] ≤ 2 − 21.73 , where h 1 = 5 α ξ and α ξ = 8 n α 4 + 8 α 4 .
Assumption 2 (Errors bound).
With overwhelming probability, ∥ ξ ∥ ∞ ≤ h 1 for the accumulated noise ξ = 2 ( e 2 , j s 1 + g 1 , j − e 1 , i s 2 − g 2 , j ) .
Lemma 1 (Coefficient-wise Signal Consistency under Bounded Perturbation).
Under Assumptions 1 and 2, for any coefficient position t ∈ { 1 , … , ℓ } , let u = ⟨ K 2 , j [ t ] ⟩ q and v = ⟨ K 1 , i [ t ] ⟩ q = u + ξ [ t ] mod q with | ξ [ t ] | ≤ h 1 . Then we have the following:
1.
If u ∈ C τ , η Z , then ω 1 , i [ t ] = ω 2 , j [ t ] with probability 1.
2.
If u ∉ C τ , η Z , then ω 1 , i [ t ] = ω 2 , j [ t ] with probability at least 1 2 .
Proof of Lemma 1.
We consider each case separately.
1. u ∈ C τ , η Z
We have two cases based on the definition of C τ , η Z :
(1) | u | ≤ τ − η :
Since | ξ [ t ] | ≤ h 1 and η = [ h 1 ] , we have h 1 ≤ η + 1 . Therefore,
| v | = | u + ξ [ t ] | ≤ | u | + | ξ [ t ] | ≤ ( τ − η ) + h 1 ≤ τ
Thus, both u and v fall within the interval [ − τ , τ ] where σ 0 ( x ) = 0 .
For σ 1 , the interval for 0 is [ − τ + 1 , τ + 1 ] . Since | u | ≤ τ − η ≤ τ − 1 (as η ≥ 1 ) and | v | ≤ τ , both values are within this interval, so σ 1 ( u ) = σ 1 ( v ) = 0 .
Therefore, regardless of the random bit b chosen for the signal function, ω 1 , i [ t ] = ω 2 , j [ t ] .
(2) | u | ≥ τ + η :
We have
| v | = | u + ξ [ t ] | ≥ | u | − | ξ [ t ] | ≥ ( τ + η ) − h 1 ≥ τ
since h 1 ≤ η + 1 .
For σ 0 : If | v | > τ , then σ 0 ( v ) = 1 = σ 0 ( u ) . The edge case | v | = τ occurs only when ξ [ t ] = τ − u , but since | u | ≥ τ + η , we have | ξ [ t ] | ≥ η . Given that | ξ [ t ] | ≤ h 1 and h 1 = 5 α ξ is chosen to make large deviations exponentially unlikely, this edge case occurs with negligible probability.
For σ 1 : The interval for 0 is [ − τ + 1 , τ + 1 ] . Since | u | ≥ τ + η ≥ τ + 1 (as η ≥ 1 ), we have σ 1 ( u ) = 1 . Similarly, | v | ≥ τ , and if | v | ≥ τ + 1 , then σ 1 ( v ) = 1 . The edge case | v | = τ requires | ξ [ t ] | = η , which again occurs with negligible probability.
Therefore, with overwhelming probability, ω 1 , i [ t ] = ω 2 , j [ t ] in this case.
2. u ∉ C τ , η Z
Refer to Figure 3. For any coefficient u in the uncertain region (hatched area where τ − η < | u | < τ + η ), we prove that Pr [ ω 1 , i [ t ] = ω 2 , j [ t ] ] ≥ 1 2 .
Focus on a fixed u in the uncertain (hatched) region. Partition the bounded noise values d (where | d | ≤ h 1 ) into two sets:
A = { d : σ b ( u ) = σ b ( u + d ) } ( Agreement ) B = { d : σ b ( u ) ≠ σ b ( u + d ) } ( Disagreement )
Set A contains all noise values d for which the signal remains consistent, meaning σ b ( u ) = σ b ( u + d ) . Conversely, set B contains all noise values d that cause a disagreement, meaning σ b ( u ) ≠ σ b ( u + d ) .
The proof hinges on constructing a symmetry mapping f : B → A defined simply by f ( d ) = − d . The geometric intuition from Figure 3 clarifies why this mapping works. Consider a point u in the right hatched region. A positive noise term d might be just large enough to push u + d across the red threshold line at τ into the blue region, thereby flipping the signal and causing a disagreement. However, the symmetric negative noise term − d would pull u further left, away from the threshold and deeper into the white region. This movement ensures that both u and u − d remain on the same side of the threshold, thus preserving signal agreement. An analogous situation occurs for a point u in the left hatched region.
Crucially, the symmetry of the noise distribution guarantees that Pr [ ξ = d ] = Pr [ ξ = − d ] . Furthermore, the symmetric nature of the signal function’s decision boundaries, mirrored around zero, ensures that the mapping f is a probability-preserving bijection from the disagreement set B into the agreement set A. This directly implies that the total probability mass of B cannot exceed that of A. Formally, p agree = ∑ d ∈ A Pr [ ξ = d ] ≥ ∑ d ∈ B Pr [ ξ = d ] = p disagree .
Given that the probabilities of agreement and disagreement must sum to 1, the inequality p agree ≥ p disagree necessarily leads to the conclusion that p agree ≥ 1 2 .
This completes the proof of Lemma 1.    □
Theorem  1 (Correctness of Algorithm 3).
Assume the RLWE problem is hard, and parameters are chosen such that Pr [ ∥ ξ ∥ ∞ > h 1 ] is negligible. Then we have the following:
1.
Completeness: For matching keys with K 1 , i = K 2 , j + ξ mod q and ∥ ξ ∥ ∞ ≤ h 1 , Algorithm 5 outputs γ = 1 with probability at least 1 − ϵ 1 , where ϵ 1 is negligible in the security parameter λ.
2.
Soundness: For non-matching keys or keys with excessive noise ( ∥ ξ ∥ ∞ > h 1 ), Algorithm  3 outputs γ = 0 with probability at least 1 − ϵ 2 , where ϵ 2 is negligible in λ.
Proof of Theorem 1.
We prove each property separately.
1. Completeness:
Let X t be the indicator random variable for the event that ω 1 , i [ t ] = ω 2 , j [ t ] at position t. From Lemma 1, we have the following:
  • If u ∈ C τ , η Z (which occurs with probability p C ), then Pr [ X t = 1 ] = 1 .
  • If u ∉ C τ , η Z (which occurs with probability 1 − p C ), then Pr [ X t = 1 ] ≥ 1 2 .
The expected number of agreeing positions is
E [ Count ] = ∑ t = 1 ℓ E [ X t ] ≥ ℓ · p C · 1 + ℓ · ( 1 − p C ) · 1 2 = ℓ · 1 + p C 2
Using the Chernoff bound, for any δ > 0 :
Pr [ Count < ( 1 − δ ) · E [ Count ] ] ≤ exp − δ 2 · E [ Count ] 2
Setting ψ = ( 1 − δ ) · 1 + p C 2 , we have
Pr [ Count < ψ ℓ ] ≤ exp − δ 2 · ℓ · ( 1 + p C ) 4
For sufficiently large ℓ, this probability becomes negligible. Therefore, Algorithm 3 outputs γ = 1 for matching keys with high probability.
2. Soundness:
For non-matching keys, ω 1 , i and ω 2 , j are essentially independent random bit strings. Thus, for each position t, Pr [ ω 1 , i [ t ] = ω 2 , j [ t ] ] = 1 2 .
The expected value of the count is
E [ Count ] = ℓ 2
Using the Chernoff bound,
Pr [ Count ≥ ψ ℓ ] ≤ exp − 2 ( ψ − 1 2 ) 2 ℓ
For ψ > 1 2 , this probability becomes negligible for sufficiently large ℓ. Therefore, Algorithm 3 outputs γ = 0 for non-matching keys with high probability.
This completes the proof of Theorem 1.    □

3.3. Correctness and Security Analysis

Based on the ideal functionality F PSI and the semi-honest security definitions introduced in Section 2.2, we now provide the correctness and formal verification that our proposed protocol  Π Sig − PSI securely realizes F PSI .
Theorem  2 (Correctness).
All operations are over R q = Z q [ x ] / ( x n + 1 ) . Let H : { 0 , 1 } ∗ → R q be modeled as a random oracle. Secrets and errors are sampled i.i.d. from a discrete Gaussian χ α . Let the sender hold X = { x i } i ∈ [ n 1 ] , the receiver hold Y = { y j } j ∈ [ n 2 ] , and the intersection I ★ = X ∩ Y . Based on the properties of OKVS and C o m p a r e ( · ) , the receiver’s output I = C o m p a r e ( ω 1 , ω 2 , K 2 ) in Π Sig − PSI equals I ★ except with negligible probability in λ.
Proof of Theorem 2.
For any y j ∈ Y , we have
O K V S . D e c o d e ( S , h ( y j ) ) = P 1 , i .
(1) If y j = x i ∈ X ,
O K V S . D e c o d e ( S , h ( y j ) ) = P 1 , i = H ( y j ) s 1 + 2 e 1 , i .
Then,
K 1 , j = P 2 , j s 1 + 2 g 1 , j = H ( y j ) s 1 s 2 + 2 ( e 2 , j s 1 + g 1 , j ) mod q , K 2 , j = P 1 , i s 2 + 2 g 2 , j = H ( y j ) s 1 s 2 + 2 ( e 1 , i s 2 + g 2 , j ) mod q ,
and therefore
K 1 , j = K 2 , j + ξ mod q , ξ = 2 e 2 , j s 1 + g 1 , j − e 1 , i s 2 − g 2 , j .
Each coefficient of ξ is a sum of the independent discrete Gaussian; standard variance calculations give Var ( ξ [ t ] ) ≤ α ξ = 8 n α 4 + 8 α 4 . With h 1 = 5 α ξ , the tail bound Pr [ ∥ ξ ∥ ∞ > h 1 ] ≤ 2 − 21.73 per coefficient. If the per-coefficient noise is bounded by h 1 and the robustness of SigMa,
ω 1 , j = Sig ( K 1 , j ) = Sig ( K 2 , j ) = ω 2 , j .
That is, every intersection element will be accepted by C o m p a r e ω 1 , j , ω 2 , j = 1 .
(2) If y j ∉ X , then P 1 ′ ( y j ) = O K V S . D e c o d e ( S , h ( y j ) ) is pseudorandom and independent of P 1 , i ( i ∈ [ n 1 ] ) . Then, K 1 , j and K 2 , j behave (nearly) independently across coefficients, and the chance that S i g ( · ) outputs identical signals on a non-match is negligible.    □
Theorem  3 (Honest but Curious Security against Receiver in the protocol Π Sig − PSI ).
There exists a PPT simulator SIM B such that for all security parameters λ and inputs X , Y , letting I = X ∩ Y and n 1 = | X | ,
REAL Π S i g - P S I λ , Receiver ( X , Y ) ≈ SIM B ( 1 λ , Y , n 1 , I ) ,
under the RLWE assumption in R q , the random-oracle model for H, the unpredictability of OKVS on non-programmed keys, and the robustness of Sig .
Proof of Theorem 3.
We describe the simulator algorithm SIM B ( 1 λ , Y , n 1 , I ) in Algorithm 5. We argue that REAL Π Sig - PSI λ , Receiver ( X , Y ) ≈ SIM B ( 1 λ , Y , n 1 , I ) using a multi-step hybrid argument, where each neighboring pair of hybrid distributions is computationally indistinguishable.
Algorithm 5: The simulator algorithm SIM B ( 1 λ , Y , n 1 , I ) .
    Input: 1 λ ,Y, n 1 , I
 1 Sends a random OKVS S which encodes n 1 key–value pairs as Sender’s message
      in step 3.
 2 Samples s 2 , e 2 , j ← χ α for j ∈ [ n 2 ] .
 3 For each j ∈ [ n 2 ] , honestly computes P 2 , j = H ( y j ) s 2 + 2 e 2 , j mod q , and sends
       { P 2 , j } j ∈ I as Receiver’s message in step 5.
 4 For each j ∈ [ n 2 ] , honestly computes P 1 ′ ( y j ) = OKVS . Decode ( S , h ( y j ) ) ,
       K 2 , j = P 1 ′ ( y j ) s 2 + 2 g 2 , j ( mod q ) and ω 2 , j = S i g ( K 2 , j ) , where g 2 , j is randomly
      sampled from χ α .
 5 Computes { j ∈ [ n 2 ] : y j ∈ I } = J ⊆ [ n 2 ] . Create { ω 1 , j } j ∈ [ n 2 ] as Sender’s message
      in step 6 as follows, for j ∈ [ n 2 ] ∖ J , let ω 1 , j = S i g ( h 1 , j ) where h 1 , j is randomly
      selected from R q ; for j ∈ J , let ω 1 , j = ω 2 , j .
 6 Outputs Receiver’s view in the simulated execution above.
  • Hyb 0 : The view of Receiver in the real execution of the protocol Π Sig - PSI .
  • Hyb 1 : The same as Hyb 0 , except in step 3, the OKVS S sent by the Sender is replaced with a random OKVS that encodes n 1 key–value pairs. Note that the values of encoding in the real execution, P 1 , i = H ( x i ) s 1 + 2 e 1 , i mod q , are RLWE samples with key s 1 held by the Sender. Therefore, if H is modeled as a random oracle, the doubly obliviousness of OKVS and the RLWE assumption in R q holds, then Hyb 0 and Hyb 1 are computationally indistinguishable.
  • Hyb 2 : The same as Hyb 1 , except in step 7, all P 1 ′ ( y j ) , K 2 , j and ω 2 , j are computed using S in Hyb 2 instead of S sent by the Sender in the real execution. If the random decoding property of OKVS and the RLWE assumption in R q holds, then Hyb 1 and Hyb 2 are computationally indistinguishable.
  • Hyb 3 : The same as Hyb 2 , except in step 6, those ω 1 , j ( j ∈ [ n 2 ] ∖ J ) sent by the Sender are replaced with ω 1 , j = S i g ( h 1 , j ) where h 1 , j are random elements from R q . Note that K 1 , i = P 2 , j s 1 + 2 g 1 , i mod q is an RLWE sample with key s 1 held by the Sender. Therefore, if the RLWE assumption in R q holds, then Hyb 2 and Hyb 3 are computationally indistinguishable.
  • Hyb 4 : The same as Hyb 3 , except in step 6, those ω 1 , j ( j ∈ J ) sent by the Sender are replaced with ω 1 , j = ω 2 , j . If the robustness of S i g and the RLWE assumption in R q holds, then Hyb 3 and Hyb 4 are computationally indistinguishable.
Note that Hyb 4 is the view of the Receiver output by SIM B ( 1 λ , Y , n 1 , I ) , and thus the proof completes.    □
Theorem  4 (Honest but Curious Security against Sender in the protocol Π Sig - PSI ).
There exists a PPT simulator S I M A such that for all security parameters λ and inputs X , Y ,
REAL Π S i g - P S I λ , S e n d e r ( X , Y ) ≈ S I M A ( 1 λ , X , n 2 ) ,
where n 2 = | Y | .
Proof of Theorem 4.
We describe the simulator algorithm SIM A ( 1 λ , X , n 2 ) in Algorithm 6. We argue that REAL Π Sig - PSI λ , Sender ( X , Y ) ≈ SIM A ( 1 λ , X , n 2 ) using a multi-step hybrid argument, where each neighboring pair of hybrid distributions is computationally indistinguishable.
Algorithm 6: The simulator algorithm SIM A ( 1 λ , X , n 2 ) .
    Input: 1 λ , X, n 2
 1 Samples s 1 , e 1 , i ← χ α for i ∈ [ n 1 ] .
 2 Simulate step 2 and 3 honestly.
 3 For each j ∈ [ n 2 ] , randomly selects P 2 , j from R q and sends { P 2 , j } j ∈ [ n 2 ] to Sender as
      Receiver’s message in step5.
 4 For each j ∈ [ n 2 ] , samples g 1 , j ← χ α , honestly computes
       K 1 , j = P 2 , j s 1 + 2 g 1 , j mod q and ω 1 , j = S i g ( K 1 , j ) .
 5 Sends { ω 1 , j } j ∈ [ n 2 ] in the order corresponding to { P 2 , j } j ∈ [ n 2 ] as Sender’s message in
      step 6.
 6 Outputs Sender’s view in the simulated execution above.
  • Hyb 0 : The view of the Sender in the real execution of the protocol Π Sig − PSI .
  • Hyb 1 : The same as Hyb 0 , except in step 5, all P 2 , j sent by the Receiver are replaced with random elements P 2 , j from R q . Note that P 2 , j = H ( y j ) s 2 + 2 e 2 , j mod q are RLWE samples with key s 2 held by the Receiver. Therefore, if H is modeled as a random oracle and the RLWE assumption in R q holds, then Hyb 0 and Hyb 1 are computationally indistinguishable.
  • Hyb 2 : The same as Hyb 1 , except in step 6, all K 1 , j and ω 1 , j are computed using P 2 , j in Hyb 1 instead of P 2 , j sent by the Receiver in the real execution, and these newly generated ω 1 , j are sent to the Receiver in step 6. If the RLWE assumption in R q holds, then Hyb 1 and Hyb 2 are computationally indistinguishable.
Note that Hyb 2 is the view of the Sender output by SIM A ( 1 λ , X , n 2 ) , and thus the proof completes.    □

4. Optimization on Implementation of OKVS

In Step 3 of our proposed PSI in Figure 2, the sender encodes a set of key–value pairs ( k i , v i ) : = ( h ( x i ) , P 1 , i ) to obtain an OKVS, i.e., S ← OKVS . Encode { ( h ( x i ) , P 1 , i ) } i ∈ [ n 1 ] , where each P 1 , i is a polynomial of degree d over a ring R = Z q [ x ] / ( x n + 1 ) , with d coefficients. For simplicity, we denote the d coefficients of P 1 , i as P 1 , i = v i = ( v i , 1 , … , v i , d ) . We observe that directly plugging the most efficient OKVS construction from [26] into our protocol will lead to the following issues. First, it requires each value v i to belong to a finite field F , whereas our polynomial coefficients lie in Z q d . Concatenating the d coefficients into a single value would result in a length of log 2 q · d , exceeding the maximum allowed value length in the OKVS. Second, treating each coefficient independently would cause the same key k i to be associated with d distinct values, violating the requirement that all keys must be distinct. To ensure all keys remain unique while keeping each value within the allowed length, we introduce a composite key–value pair generation procedure. This method maps one original key–value pair ( k i , v i = ( v i , 1 , … , v i , d ) ) into d derived key–value pairs ( k ^ i , j , v i , j ) for j ∈ [ d ] , where each key is distinct. Specifically, we define k ^ i , j = Hash ( j ‖ k i ) . This results in a total of N = d · n 1 distinct key–value pairs, which can be efficiently encoded in a single OKVS structure. During the decoding phase, for a query key k, the corresponding derived keys k ^ j for j ∈ [ d ] are computed, allowing all v i , j to be retrieved efficiently.

4.1. Generation of Composite Key–Value Pairs

Let K be the key space and R a coefficient ring (e.g., Z q ). Each database item is D i = ( k i , v i ) , where k i ∈ K and v i = ( v i , 1 , … , v i , d ) ∈ R d are the d coefficients of polynomial i. Our OKVS materializes d scalar pairs per item by defining a composite key
k ^ i , j = H ( j , k i ) = Hash le 32 ( j ) ‖ k i for j ∈ [ d ] ,
where le 32 ( j ) is a fixed-length little-endian encoding of j ∈ [ d ] . This ensures that each k ^ i , j is related to j and all k ^ i , 1 , … , k ^ i , d are distinct. Therefore, each D i = ( k i , v i ) is converted into d distinct pairs { ( k ^ i , j , v i , j ) } j ∈ [ d ] . The procedure is summarized in Algorithm 7.
Algorithm 7: OKVS.CompositeKVGen
Electronics 15 00013 i005

4.2. Encoding of OKVS

Given database items D = { ( k i , v i ) } i = 1 n with fixed polynomial dimension d (e.g., d = 128 ), encoding proceeds by first invoking OKVS.CompositeKVGen (Algorithm 7) to materialize the scalarized set D ′ = { ( k ^ i , j , v i , j ) } under composite keys k ^ i , j = Hash ( le 32 ( j ) ‖ k i ) . Let N = | D ′ | = d n . We then set OKVS parameters with redundancy ϵ > 0 , choose a bandwidth w for security parameter λ ), fix m = ( 1 + ϵ ) N , and sample public randomness R = ( R 1 , R 2 ) . Finally, our OKVS.Encode (Algorithm 8) directly calls OKVS encoder Enc RB (Algorithm 1) to solve the banded linear system and produce the encoding array S ∈ F m .
Algorithm 8:  OKVS . Encode (using OKVS encoding algorithm Enc RB of Algorithm 1).
    Input   : D = { ( k i , v i ) } i = 1 n , dimension d;
                  OKVS params: redundancy ϵ > 0 , security λ , band width w;
                  field F ; OKVS randomness R = ( R 1 , R 2 ) .
    Output: OKVS encoding S ∈ F m .
 1 D ′ ← OKVS . CompositeKVGen ( D , d )                                                                             //  ( Algorithm 7 (
 2 N ← | D ′ |                                                                                                                                      //  ( N = d n (
 3 m ← ( 1 + ϵ ) N
 4 S ← Enc RB ( D ′ , m , w , R )                                                                                                //  ( Algorithm 1 (
 5 return S

4.3. Decoding of OKVS

Given an encoding array S and a queried key k, we reconstruct the full coefficient vector by first obtaining the composite keys { k ^ j } j ∈ [ d ] ] from k. Our OKVS.Decode (Algorithm 9) then invokes the OKVS decode algorithm Dec RB (Algorithm 2) independently for each k ^ j and assembles v = ( v 1 , … , v d ) .
Algorithm 9: OKVS.Decode (using OKVS decoding algorithm Dec RB of Algorithm 2)
Electronics 15 00013 i006

4.4. Correctness

The correctness of our OKVS scheme is inherited from the correctness of underlying OKVS construction [26]. For parameters m = ( 1 + ϵ ) N and w = O ( λ / ϵ + log N ) , the random band matrix is solvable with probability at least 1 − 2 − λ , ensuring the scalar decoder fails for any individual coefficient with a negligible probability P RB ( λ ) ≤ 2 − λ . In our composite key generation, defined by k ^ i , j = H ( j , k i ) for a cryptographic hash function, guarantees that decoding events for different coefficients are independent. Therefore, by the union bound, the probability of failing to decode any coefficient for a given polynomial key k i is upper-bounded by d · P RB . For a constant dimension d, this probability remains negligible in the security parameter λ OKVS , thereby upholding the overall correctness guarantee. Any decoding failure is confined to a single coefficient and does not affect the recovery of others.

4.5. Complexity

The computational and spatial complexity of our OKVS scheme scales efficiently with the total number of scalar elements N = d · n . The composite key generation is performed in linear time, O ( N ) . The cost of encoding is dominated by the O ( N w ) = O ( d n w ) operations required for the band-aware Gaussian elimination algorithm of the underlying OKVS. Decoding on a queried key is a constant-time operation relative to the bandwidth, requiring O ( w ) time. Consequently, reconstructing a full d-dimensional polynomial sequentially requires O ( d w ) time. A key practical advantage is the potential for parallelization. Since decoding each coefficient is independent, the wall-clock time for full polynomial reconstruction can be reduced to nearly O ( w ) in a multi-core environment. The storage overhead is determined by the encoding length m poly = ( 1 + ϵ ) d n , indicating linear growth in the size of the OKVS structure with respect to N.

5. Performance

5.1. Implementation

We implement our PSI protocol in C++, following the design in Figure 2. Private elements are hashed using SHA-256, and the OKVS Encode/Decode routines are adapted from the open-source implementation (https://github.com/google/private-membership/tree/main/research/okvs (accessed on 14 December 2025)).
All experiments are conducted with the statistical security parameter λ = 128 and the OKVS-specific parameter λ OKVS = 40 , the latter controlling the decoding failure probability of the OKVS construction.
The experiments are executed on a server with dual 2.0 GHz Intel Xeon Gold 8470 CPUs and 1024 GB RAM. Network conditions are emulated as a 10 Gbps LAN with 0.2 ms round-trip latency using Linux tc. For comparison, we evaluate post-quantum PSI protocols based on FHE [22] and lattice-based OPRF [23] in the same environment, using their publicly available implementations (https://github.com/Microsoft/APSI (accessed on 14 December 2025), https://github.com/meyira/leap (accessed on 14 December 2025)).
All implementations are tested under both single-threaded and multi-threaded settings with T ∈ { 1 , 32 } , and reported values are averaged over 10 runs. In the following tables, the best-performing protocols in terms of runtime and communication are highlighted.
Our protocol supports an offline–online execution paradigm:
  • Offline phase: The sender hashes its input set, samples randomness, and computes public keys and encoded into an OKVS encoded structure. Since costs scale with the sender’s set size, offline time is measured as the sender’s computation time.
  • Online phase: Upon receiving the receiver’s input, both parties compute signals in parallel, and the receiver determines the intersection using a signal matching mechanism. Online time is defined as the receiver’s total computation time, including hashing, key generation, OKVS decode, signal computation, and signal matching.
The total runtime equals the sum of the sender’s offline time and the receiver’s total time. The communication overhead is partitioned accordingly: the OKVS encoded structure sent by the sender in the offline phase, and the receiver’s public keys plus sender’s signals in the online phase.
We evaluate protocol performance under varying set sizes. For symmetric size inputs, we consider n 1 = n 2 ∈ { 2 8 , 2 12 , 2 16 , 2 20 } . For asymmetric size inputs, we fix n 1 ∈ { 2 12 , 2 16 , 2 20 , 2 24 } and n 2 ∈ { 2 7 , 2 8 , 2 10 , 2 12 , 2 16 , 2 20 } , executing all combinations with n 2 ≤ n 1 .
To instantiate OKVS for our PSI protocol, we require concrete band length parameters ( n 1 , ϵ ) under λ OKVS = 40 . Table 1 reports the values used in our experiments. Since the band length parameters given in [26] cannot be used directly, the data in Table 1 are calculated by linear regression of the published data points, following the method outlined in Section 6.1 of [26] (details are provided in Appendix A).
Table 1. OKVS band length data for different ϵ and n 1 values.
The parameter ϵ controls the slack in the OKVS band length: a larger ϵ yields a longer band and thus higher communication but lower encoding/decoding cost, whereas a smaller ϵ shortens the band and reduces communication at the price of increased computation.
We employ Number Theoretic Transforms (NTTs) to expedite polynomial multiplication within DingKE. The key exchange parameters are set as follows: n = 128 , σ = 4.19 , q = 2255041 , and we set ψ = 0.9 in Algorithm 3 (detailed theoretical values of ψ are given in Appendix B).
Intuitively, ψ acts as a signal-consistency threshold in our RLWE-based comparison: a larger ψ makes the matching criterion stricter, improving completeness but increasing sensitivity to noise, while a smaller ψ relaxes the criterion, enhancing robustness to random errors but potentially reducing correctness. The choice ψ = 0.9 provides a practical balance between these effects in our parameter regime.

5.2. Benchmarks

Table 2 summarizes the offline/online running time (single-threaded and multi-threaded) and communication overhead, and performs systematic measurements under different set sizes ( n 1 , n 2 ) , parallelism T ∈ { 1 , 32 } and OKVS parameters ε = 0.10 .
Table 2. Runtime and communication overhead for all phases of our improved OKVS-based PSI protocol. T represents the number of threads used by the sender and receiver simultaneously.
A first observation is that, for a fixed n 2 , the online running time is essentially insensitive to n 1 . As shown in Table 2, within each fixed n 2 the online time remains nearly flat as n 1 increases from small to very large. Because the online phase is only related to the receiver’s data (calculating the signal, public key, and signal matching), its cost depends on n 2 rather than n 1 . For example, when n 2 = 2 7 and n 1 grows from 2 7 to 2 20 and T = 1 , the online time stays within 0.0002 s ± 0.0002 s . In practice, this implies that even when the sender’s dataset varies substantially over time, the online latency remains both efficient and predictable. Using multi-thread can significantly reduce the communication time, particularly in the offline phase. For larger n 1 , we observe near-linear speedup with increasing T. As for online time, in large-scale settings (e.g., n 1 = 2 24 , n 2 = 2 20 ), when T increases from 1 to 32, the online time decreases by 1.36 – 1.42 × , from 12.98 – 13.92  s to 9.57 – 9.78  s, while the total time decreases by 1.29 – 1.38 × .
The same decoupling shows up in the online communication. When n 2 is fixed, the online communication overhead does not change with n 1 . Because only the sender’s signals and receiver’s public key are transmitted, both are proportional to n 2 . As shown in Table 2, regardless of the value of n 1 , the online communication overhead is always 2.06  MB when n 2 = 2 12 , and is fixed at 33 MB and 528 MB for n 2 = 2 16 and 2 20 , respectively. Furthermore, the offline communication cost grows roughly linearly with n 1 : offline communication rises from about 1–2 MB when n 1 ≤ 2 12 to roughly 24–26 MB, and near 4 GB at 2 24 .
Overall, Table 2 shows a consistent picture: the online phase scales with n 2 and is essentially independent of n 1 in both time and communication; the offline phase scales with n 1 and benefits strongly from parallelism.

5.3. Comparison with APSI [22] and Leap [23] in Symmetric Set Sizes

We compare our protocol with APSI [22] and Leap [23] under symmetric set sizes, i.e., n 1 = n 2 ∈ { 2 8 , 2 12 , 2 16 , 2 20 } , as shown in Table 3. Unless stated otherwise, we report single-thread results ( T = 1 ) for fairness: Leap’s open-source implementation is single-threaded (columns for T = 32 are unavailable), and it fails with out-of-memory at 2 20 as reflected by missing entries.
Table 3. OKVS-based performance comparison of protocols for symmetric set sizes. T represents the number of threads used by the sender and receiver simultaneously. The purple highlights indicate the best performance for each parameter setting among the different protocols.
As illustrated in Figure 4a, across all tested sizes, our protocol is consistently faster than both APSI [22] and Leap. In small set size, i.e., n 1 = n 2 = 2 8 , our 2.934  ms is 55.56 × faster than APSI’s 163 ms and 286.98 × faster than Leap’s 842 ms. At 2 16 , our 812.003  ms improves over APSI ( 210 , 581  ms) and Leap ( 221 , 834  ms) by 259.34 × and 273.19 × , respectively. At 2 20 , we finish in 12 , 992.003  ms, a 1156.73 × reduction relative to APSI 15 , 028 , 196  ms. Likewise, the total time results show that our protocol is optimal in all tests. Across symmetric sizes 2 8 – 2 20 , our total time is faster by 19.57 × – 658.38 × than APSI and by 215.42 × – 239.49 × than Leap.
Figure 4. Performance comparison for symmetric set sizes ( n 1 = n 2 ) with single-thread execution ( T = 1 ). APSI and Leap correspond to Table 3 baselines.
As illustrated in Figure 4b, our online communication is consistently the lowest across symmetric sizes, achieving roughly 2–3× lower bandwidth than APSI and 44 × lower than Leap wherever Leap reports results. At 2 20 , Leap is unavailable, and we still transmit 2.92 × less than APSI.

5.4. Comparison with APSI [22] & Leap [23] in Asymmetric Set Sizes

Our PSI protocol delivers the lowest online running time among all compared schemes, and its online cost essentially depends only on the size of the receiver’s set n 2 . As shown in Figure 5a of the asymmetric setting, regardless of whether n 1 is small or large, our online time remains in the range 0.063 – 0.116  s for n 2 = 5535 . The large-scale case n 1 = 2 24 further highlights this gap: at n 2 = 5535 , our protocol is about 360 × and 184 × faster than the FHE-based [22] and post-quantum OPRF-based [23] PSI protocols, respectively. The results in Table 4 confirm the same trend against APSI and Leap: for example, at ( 2 12 , 11041 ) , our scheme achieves an online time of 0.132  s, which is 19.2 × and 282.3 × faster than APSI ( 2.532  s) and Leap ( 37.265  s); even at ( 2 20 , 11041 ) the online time is still only 0.150  s, yielding 45.5 × and 246.4 × improvements over APSI and Leap. Overall, these results show that the online phase of our protocol mainly scales with n 2 and remains around 0.1  s across a wide range of parameters.
Figure 5. Online performance comparison at n 1 = { 2 12 , 2 16 , 2 20 , 2 24 } and n 2 = 5535 with single-thread execution ( T = 1 ). APSI and Leap correspond to Table 4 baselines.
Table 4. OKVS-based improved performance comparison of protocols for asymmetric set sizes under single-thread execution. The purple highlights indicate the best performance for each parameter setting among the different protocols.
To further understand where this small latency comes from, we analyze the receiver’s online phase for the largest asymmetric parameters (e.g., ( n 1 , n 2 ) = ( 2 24 , 5535 ) ). Specifically, approximately 50 % of the online time is spent on OKVS decoding, about 45 % on hashing and NTT-based public-key generation and signal computation, and less than 5 % on the final signal-matching step that identifies the intersection. This allocation remains stable across different configurations, and similar proportions are observed for smaller set sizes.
In terms of communication, our protocol incurs the lowest and constant online communication with respect to n 1 , depending only on n 2 . As shown in Figure 5b of the asymmetric setting, our online bandwidth is a constant 2.787  MB for n 2 = 5535 , whereas the FHE-based PSI requires 4.167 – 8.696  MB and the post-quantum OPRF-based PSI uses 121.999  MB. Table 4 shows a similar advantage over APSI and Leap: for n 2 = 11041 , our protocol needs 5.560  MB online, compared with APSI’s 7.805  MB and Leap’s 243.358  MB; when n 2 = 5535 , the communication further reduces to 2.787  MB, outperforming APSI by about 33 × and Leap by more than 40 × . Taken together, these results confirm that our PSI achieves the lowest online time and online communication overhead among all considered baselines.
It should be noted, however, that this online performance gain is accompanied by higher offline communication costs. While the offline communication remains modest at smaller scales (e.g., around 1.6  MB for ( 2 12 , 11041 ) and about 25 MB for ( 2 16 , 11041 ) ), it grows significantly at large set sizes, reaching 395–422 MB for ( 2 20 , 11041 ) and approximately 4 GB at ( 2 24 , 11041 ) . This indicates that, although our method attains state-of-the-art online performance and communication efficiency, future work should focus on mitigating the offline overhead to further improve scalability.

6. Conclusions

This paper demonstrates that the proposed RLWE-based post-quantum PSI protocol achieves ultra online performance among state-of-the-art post-quantum PSI protocols. The experiments indicate that our proposed PSI’s online time is consistently sub-second and nearly invariant to n 1 and ϵ (e.g., ≤0.10 s for n 2 = 5535 and around 0.2  s for n 2 = 11041 ), while online communication is constant across settings (5.560 MB for n 2 = 11041 and 2.787 MB for n 2 = 5535 ). This achieves significant improvements in both computation and communication compared to APSI and Leap in both asymmetric and symmetric schemes.
While our proposed PSI protocol exhibits excellent online performance, it incurs higher offline computation and communication overhead for very large set sizes, which may put pressure on memory and computation time in bandwidth-constrained settings. Thus, we will further consider how to balance the efficiency of the online and offline phases in the future. In parallel, we plan to extend security from semi-honest to malicious. These directions aim to enhance the practicality of post-quantum PSI in production environments and accelerate its adoption under more stringent threat models.
While our proposed PSI protocol exhibits excellent online performance, it incurs higher offline computation and communication overhead for very large set sizes, which may put pressure on memory and running time in bandwidth-constrained settings. We identify this as an inherent trade-off between pre-computation and online efficiency. Thus, our further work will aim to balance the efficiency of the online and offline phases for very large set size. In addition, we plan to extend security from semi-honest to malicious. These directions aim to enhance the practicality of post-quantum PSI in production environments and accelerate its adoption under more stringent threat models.

Author Contributions

Conceptualization, Y.Q. and B.L.; methodology, Y.Q., B.L. and J.D.; software, Y.Q.; validation, Y.Q. and B.L.; formal analysis, Y.Q., H.C. and B.L.; investigation, Y.Q. and B.L.; resources, B.L. and J.D.; data curation, Y.Q.; writing—original draft preparation, Y.Q., H.C. and B.L.; writing—review and editing, Y.Q. and B.L.; visualization, Y.Q. and B.L.; supervision, Y.Q., B.L. and J.D.; project administration, Y.Q., B.L. and J.D.; funding acquisition, J.D. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by National Key R&D Program of China (No. 2023YFC3305501).

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A. Band Length Calculation Algorithm

The original work of Bienstock et al. [26] provides regression formulas for OKVS parameters, expressed as λ = a w + b , where ( a , b ) are best-fit coefficients reported for specific ( n , ϵ ) configurations, λ is the computational security parameter, and w denotes the band length. However, only a subset of parameter values were explicitly tabulated in their appendix.
Algorithm A1: OKVS Band Length Calculator
Electronics 15 00013 i007
For completeness of our evaluation, we reproduce their methodology by extracting the regression coefficients ( a , b ) and computing the missing band length parameters w for λ OKVS = 40 . This yields an extended parameter set covering all ( n 1 , ϵ ) required by our experiments. To ensure the reproducibility of the parameter selection process, we provide a complete algorithm for calculating the RB-OKVS band length w as shown in Algorithm 8.
Our implementation is built on a data-driven approach. The coefficients a and b are directly obtained from the experimental best-fit lines shown in Figure 17 of [26]. It also boasts robust extrapolation functionality. When dealing with values of n = d n 1 that fall outside the experimentally verified range, we employ linear extrapolation in the logarithmic domain. This allows us to generate reliable estimates for large-scale deployments. Additionally, it can support all relevant ϵ values and automatically handle the entire range of n 1 values, from 2 7 to 2 24 .

Appendix B. Theoretical Value of ψ

The probability p C that a random coefficient u falls in C τ , η Z is
p C = | { u ∈ D q : | u | ≤ τ − η } | + | { u ∈ D q : | u | ≥ τ + η } | q
For large q, this expression can be approximated as p C ≈ 1 − 4 η q . To guarantee both completeness and soundness in Theorem 1, the threshold ψ must satisfy 1 2 < ψ < 1 + p C 2 .
Using the concrete parameters α = 4.19 , n = 128 , q = 2255041 , we compute the relevant values as follows. First, we obtain α ξ = 8 n α 4 + 8 α 4 ≈ 564.014 , from which h 1 = 5 α ξ ≈ 2820.07 and thus η = [ h 1 ] = 2820 . The flip point is τ = ⌊ q / 4 ⌋ = 563,760, yielding p C ≈ 0.99500 and consequently 1 + p C 2 ≈ 0.9975 . Therefore, the theoretical range for ψ is 0.5 < ψ < 0.9975 .
For practical implementation, we recommend setting ψ = 0.9 , which provides a good balance between completeness and soundness while allowing for a small margin of error.

References

  1. Morales, D.; Franquesa, A.; Domingo-Ferrer, J. Private set intersection: A systematic literature review. Comput. Sci. Rev. 2023, 49, 100567. [Google Scholar] [CrossRef] [Scilit]
  2. Chen, H.; Laine, K.; Rindal, P. Fast private set intersection from homomorphic encryption. In Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security, Dallas, TX, USA, 30 October–3 November 2017; pp. 1243–1255. [Google Scholar]
  3. Falk, B.H.; Noble, D.; Pinkas, B.; Rosulek, M.; Roy, A.; Trieu, N. Private Set Intersection with Linear Communication from General Assumptions. In Proceedings of the 18th ACM Workshop on Privacy in the Electronic Society, London, UK, 11 November 2019; pp. 14–25. [Google Scholar]
  4. Kales, D.; Rechberger, C.; Schneider, T.; Senker, M.; Weinert, C. Mobile Private Contact Discovery at Scale. In Proceedings of the 28th USENIX Security Symposium (USENIX Security 19), Santa Clara, CA, USA, 14–16 August 2019; pp. 1447–1464. [Google Scholar]
  5. Demmler, D.; Gusev, L.; Müller-Quade, J.; Schneider, T. PIR-PSI: Scaling Private Contact Discovery. Proc. Priv. Enhancing Technol. 2018, 4, 159–178. [Google Scholar] [CrossRef] [Scilit]
  6. Ion, M.; Kreuter, B.; Nergiz, A.E.; Patel, S.; Raykova, M.; Saxena, S.; Seth, K.; Shanahan, D.; Yung, M. Private Intersection-Sum Protocol with Applications to Attributing Aggregate Ad Conversions. IACR ePrint 2017/738. 2017. Available online: https://eprint.iacr.org/2017/738 (accessed on 14 December 2025).
  7. Blog, G.S. Helping Organizations Do More Without Collecting More Data (Private Join and Compute). Web Article. 2019. Available online: https://security.googleblog.com/2019/06/helping-organizations-do-more-without-collecting-more-data.html (accessed on 14 December 2025).
  8. Trieu, N.; Shehata, K.; Saxena, P.; Shokri, R.; Song, D. Epione: Lightweight contact tracing with strong privacy. arXiv 2020, arXiv:2004.13293. [Google Scholar] [CrossRef] [Scilit]
  9. Chan, J.; Foster, D.; Gollakota, S.; Horvitz, E.; Jaeger, J.; Kakade, S.; Kohno, T.; Langford, J.; Larson, J.; Sharma, P.; et al. Pact: Privacy sensitive protocols and mechanisms for mobile contact tracing. arXiv 2020, arXiv:2004.03544. [Google Scholar] [CrossRef] [Scilit]
  10. Pinkas, B.; Schneider, T.; Zohner, M. Faster Private Set Intersection Based on OT Extension. In Proceedings of the 23rd USENIX Security Symposium (USENIX Security 14), San Diego, CA, USA, 20–22 August 2014; pp. 797–812. [Google Scholar]
  11. Kolesnikov, V.; Kumaresan, R.; Rosulek, M.; Trieu, N. Efficient batched oblivious PRF with applications to private set intersection. In Proceedings of the 2016 ACM SIGSAC Conference on Computer and Communications Security, Vienna, Austria, 24–28 October 2016; pp. 818–829. [Google Scholar]
  12. Pinkas, B.; Schneider, T.; Zohner, M. Scalable private set intersection based on OT extension. ACM Trans. Priv. Secur. (TOPS) 2018, 21, 1–35. [Google Scholar] [CrossRef] [Scilit]
  13. Pinkas, B.; Rosulek, M.; Trieu, N.; Yanai, A. SpOT-light: Lightweight private set intersection from sparse OT extension. In Advances in Cryptology–CRYPTO 2019: Proceedings of the 39th Annual International Cryptology Conference, Santa Barbara, CA, USA, 18–22 August 2019; Proceedings, Part III 39; Springer: Berlin/Heidelberg, Germany, 2019; pp. 401–431. [Google Scholar]
  14. Rosulek, M.; Trieu, N. Compact and malicious private set intersection for small sets. In Proceedings of the 2021 ACM SIGSAC Conference on Computer and Communications Security, Virtual, 15–19 November 2021; pp. 1166–1181. [Google Scholar]
  15. Raghuraman, S.; Rindal, P. Blazing Fast PSI from Improved OKVS and Subfield VOLE. In Proceedings of the 2022 ACM SIGSAC Conference on Computer and Communications Security, Los Angeles, CA, USA, 7–11 November 2022; CCS ’22. pp. 2505–2517. [Google Scholar]
  16. Shor, P.W. Algorithms for quantum computation: Discrete logarithms and factoring. In Proceedings of the 35th Annual Symposium on Foundations of Computer Science, Santa Fe, NM, USA, 20–22 November 1994; pp. 124–134. [Google Scholar]
  17. Shor, P.W. Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer. SIAM Rev. 1999, 41, 303–332. [Google Scholar] [CrossRef] [Scilit]
  18. Debnath, S.K.; Stănică, P.; Choudhury, T.; Kundu, N. Post-quantum protocol for computing set intersection cardinality with linear complexity. IET Inf. Secur. 2020, 14, 661–669. [Google Scholar] [CrossRef] [Scilit]
  19. Debnath, S.K.; Choudhury, T.; Kundu, N.; Dey, K. Post-quantum secure multi-party private set-intersection in star network topology. J. Inf. Secur. Appl. 2021, 58, 102731. [Google Scholar] [CrossRef] [Scilit]
  20. Abudaqa, A.A.; Alshehri, K.; Felemban, M. On the Homomorphic Properties of Kyber and McEliece with Application to Post-Quantum Private Set Intersection. Cryptography 2025, 9, 66. [Google Scholar] [CrossRef] [Scilit]
  21. Chen, H.; Huang, Z.; Laine, K.; Rindal, P. Labeled PSI from Fully Homomorphic Encryption with Malicious Security. In Proceedings of the 2018 ACM SIGSAC Conference on Computer and Communications Security, Toronto, ON, Canada, 15–19 October 2018; CCS ’18. pp. 1223–1237. [Google Scholar]
  22. Cong, K.; Moreno, R.C.; da Gama, M.B.; Dai, W.; Iliashenko, I.; Laine, K.; Rosenberg, M. Labeled PSI from Homomorphic Encryption with Reduced Computation and Communication. In Proceedings of the 2021 ACM SIGSAC Conference on Computer and Communications Security, Virtual, 15–19 November 2021; CCS ’21. pp. 1135–1150. [Google Scholar]
  23. Heimberger, L.; Kales, D.; Lolato, R.; Mir, O.; Ramacher, S.; Rechberger, C. Leap: A Fast, Lattice-based OPRF with Application to Private Set Intersection. In Advances in Cryptology—EUROCRYPT 2025: 44th Annual International Conference on the Theory and Applications of Cryptographic Techniques, Madrid, Spain, 4–8 May 2025; Proceedings, Part VII; Springer: Cham, Switzerland, 2025; pp. 254–283. [Google Scholar]
  24. Kiss, Á.; Liu, J.; Schneider, T.; Asokan, N.; Pinkas, B. Private Set Intersection for Unequal Set Sizes with Mobile Applications. Priv. Enhancing Technol. 2017, 2017, 177–197. [Google Scholar] [CrossRef] [Scilit]
  25. Heimberger, L.; Hennerbichler, T.; Meisingseth, F.; Ramacher, S.; Rechberger, C. OPRFs from Isogenies: Designs and Analysis. In Proceedings of the 19th ACM Asia Conference on Computer and Communications Security, Singapore, 1–5 July 2024; ASIA CCS ’24. pp. 575–588. [Google Scholar] [CrossRef] [Scilit]
  26. Bienstock, A.; Patel, S.; Seo, J.Y.; Yeo, K. Near-Optimal Oblivious Key-Value Stores for Efficient PSI,PSU and Volume-HidingMulti-Maps. In Proceedings of the 32nd USENIX Security Symposium (USENIX Security 23), Anaheim, CA, USA, 9–11 August 2023; pp. 301–318. [Google Scholar]
  27. Meadows, C. A more efficient cryptographic matchmaking protocol for use in the absence of a continuously available third party. In Proceedings of the 1986 IEEE Symposium on Security and Privacy, Oakland, CA, USA, 7–9 April 1986; p. 134. [Google Scholar]
  28. Huberman, B.A.; Franklin, M.; Hogg, T. Enhancing privacy and trust in electronic communities. In Proceedings of the 1st ACM Conference on Electronic Commerce, Denver, CO, USA, 3–5 November 1999; pp. 78–86. [Google Scholar]
  29. Freedman, M.J.; Nissim, K.; Pinkas, B. Efficient private matching and set intersection. In Proceedings of the International Conference on the Theory and Applications of Cryptographic Techniques, Interlaken, Switzerland, 2–6 May 2004; pp. 1–19. [Google Scholar]
  30. Kissner, L.; Song, D. Privacy-preserving set operations. In Proceedings of the Annual International Cryptology Conference, Santa Barbara, CA, USA, 14–18 August 2005; Springer: Berlin/Heidelberg, Germany, 2005; pp. 241–257. [Google Scholar]
  31. De Cristofaro, E.; Tsudik, G. Practical Private Set Intersection Protocols with Linear Complexity. In Financial Cryptography and Data Security; Sion, R., Ed.; Springer: Berlin/Heidelberg, Germany, 2010; pp. 143–159. [Google Scholar]
  32. Pinkas, B.; Schneider, T.; Segev, G.; Zohner, M. Phasing: Private set intersection using permutation-based hashing. In Proceedings of the 24th USENIX Security Symposium (USENIX Security 15), Washington, DC, USA, 12–14 August 2015; pp. 515–530. [Google Scholar]
  33. Rindal, P.; Rosulek, M. Malicious-secure private set intersection via dual execution. In Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security, Dallas, TX, USA, 30 October–3 November 2017; pp. 1229–1242. [Google Scholar]
  34. Chase, M.; Miao, P. Private Set Intersection in the Internet Setting from Lightweight Oblivious PRF. In Advances in Cryptology—CRYPTO 2020; Micciancio, D., Ristenpart, T., Eds.; Springer: Cham, Switzerland, 2020; pp. 34–63. [Google Scholar]
  35. Huang, Y.; Evans, D.; Katz, J. Private set intersection: Are garbled circuits better than custom protocols? In Proceedings of the NDSS, San Diego, CA, USA, 5–8 February 2012. [Google Scholar]
  36. Pinkas, B.; Schneider, T.; Weinert, C.; Wieder, U. Efficient circuit-based PSI via cuckoo hashing. In Proceedings of the Annual International Conference on the Theory and Applications of Cryptographic Techniques, Zurich, Switzerland, 26–30 May 2024; Springer: Berlin/Heidelberg, Germany, 2024; pp. 125–157. [Google Scholar]
  37. Pinkas, B.; Schneider, T.; Tkachenko, O.; Yanai, A. Efficient Circuit-Based PSI with Linear Communication. In Advances in Cryptology—EUROCRYPT 2019; Ishai, Y., Rijmen, V., Eds.; Springer International Publishing: Cham, Switzerland, 2019; pp. 122–153. [Google Scholar]
  38. Chandran, N.; Gupta, D.; Shah, A. Circuit-PSI with Linear Complexity via Relaxed Batch OPPRF. Proc. Priv. Enhancing Technol. 2021, 2022, 353–372. [Google Scholar] [CrossRef] [Scilit]
  39. Resende, A.C.D.; Aranha, D.F. Faster unbalanced private set intersection. In Proceedings of the International Conference on Financial Cryptography and Data Security, Nieuwpoort, Curaçao, 26 February–2 March 2018; Springer: Berlin/Heidelberg, Germany, 2018; pp. 203–221. [Google Scholar]
  40. Pinkas, B.; Rosulek, M.; Trieu, N.; Yanai, A. PSI from PaXoS: Fast, malicious private set intersection. In Proceedings of the Annual International Conference on the Theory and Applications of Cryptographic Techniques, Zagreb, Croatia, 10–14 May 2020; pp. 739–767. [Google Scholar]
  41. Garimella, G.; Pinkas, B.; Rosulek, M.; Trieu, N.; Yanai, A. Oblivious Key-Value Stores and Amplification for Private Set Intersection. In Proceedings of the CRYPTO 2021, Part II (LNCS 12826), Virtual, 16–20 August 2021; pp. 395–425. [Google Scholar]
  42. Rindal, P.; Schoppmann, P. VOLE-PSI: Fast OPRF and circuit-PSI from vector-OLE. In Proceedings of the Annual International Conference on the Theory and Applications of Cryptographic Techniques, Madrid, Spain, 4–8 May 2021; pp. 901–930. [Google Scholar]
  43. Boneh, D.; Kogan, D.; Woo, K. Oblivious pseudorandom functions from isogenies. In Proceedings of the International Conference on the Theory and Application of Cryptology and Information Security, Virtually, 7–11 December 2020; pp. 520–550. [Google Scholar]
  44. Delpech de Saint Guilhem, C.; Pedersen, R. New proof systems and an OPRF from CSIDH. In Proceedings of the IACR International Conference on Public-Key Cryptography, Sydney, NSW, Australia, 15–17 April 2024; pp. 217–251. [Google Scholar]
  45. Esgin, M.F.; Steinfeld, R.; Tairi, E.; Xu, J. LeOPaRd: Towards Practical Post-Quantum Oblivious PRFs via Interactive Lattice Problems. IACR ePrint 2024/1615. 2024. Available online: https://eprint.iacr.org/2024/1615.pdf (accessed on 14 December 2025).
  46. Kaluderovic, N.; Cheng, N.; Mitrokotsa, K. A Post-Quantum Distributed OPRF from the Legendre PRF. IACR ePrint 2024/544. 2024. Available online: https://eprint.iacr.org/2024/544.pdf (accessed on 14 December 2025).
  47. Ding, J.; Xie, X.; Lin, X. A Simple Provably Secure Key Exchange Scheme Based on the Learning with Errors Problem. Cryptology ePrint Archive, Report 2012/688. 2012. Available online: https://eprint.iacr.org/2012/688 (accessed on 14 December 2025).
  48. Lyubashevsky, V.; Peikert, C.; Regev, O. On ideal lattices and learning with errors over rings. In Advances in Cryptology—EUROCRYPT 2010: 29th Annual International Conference on the Theory and Applications of Cryptographic Techniques, French Riviera, France, 30 May–3 June 2010; Springer: Berlin/Heidelberg, Germany, 2010; pp. 254–283. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.