Privacy at Scale:
Efficient Private Computation and Accountability in Encrypted Messaging

Linsheng Liu

A dissertation submitted in partial fulfillment of the requirements for the degree of Doctor of Philosophy
December 4, 2026

Acknowledgments

I am deeply grateful to my advisor, Arkady Yerukhimovich, for the guidance, support, and patience throughout my doctoral studies. Arkady’s insight and feedback shaped every work in this dissertation, and the advice and encouragement I received have been invaluable to my growth as a researcher.

I thank the members of my dissertation committee, Adam Aviv, Daniel S. Roche, and Timothy Wood, for their time, their careful reading of this dissertation, and their thoughtful feedback.

This dissertation is based on joint work, and I am grateful to my coauthors, Seung Geol Choi, Dana Dachman-Soled, S. Dov Gordon, Mingyu Liang, Daniel S. Roche, Austin Theriault, Mayank Varia, and Arkady Yerukhimovich, for the collaborations that made it possible.

I also thank the faculty, staff, and my fellow students in the Department of Computer Science at the George Washington University for their support.

Finally, I thank my family and friends for their constant encouragement and support.

Abstract

This dissertation investigates the design of efficient privacy-preserving protocols and systems for large-scale applications. It develops two complementary directions towards this goal.

The first direction studies how sublinear communication can be achieved for fundamental privacy-preserving tasks. For secure search over encrypted datasets, we develop compressed oblivious encoding schemes that allow efficient retrieval of matching records with communication that primarily depends on the number of matches rather than the database size. For secure collaborative sampling, we develop protocols for sampling from distributions defined by jointly held private vectors with sublinear communication, and investigate the fundamental limitations and privacy trade-offs of such protocols. For private set similarity estimation, we investigate whether the inherent randomness of Min-Hash, a widely used sublinear-communication sketching technique for set similarity, is sufficient to provide privacy, and establish conditions under which it satisfies differential privacy (DP) or distributional differential privacy (DDP) without the need for additional DP noise. Together, these works provide common building blocks and theoretical foundations across a wide range of privacy-preserving applications.

The second direction focuses on the design of practical and scalable privacy-preserving systems for accountability in end-to-end encrypted messaging. We develop two complementary frameworks, FACTS (Fuzzy Anonymous Complaint Tally System) and BoSS (The Bane of Super Spreaders). FACTS enables threshold-based traceback to reveal widely reported messages and identify their originators using probabilistic complaint counting, while BoSS identifies superspreaders of unwanted content by tallying distinct outgoing message edges along reported forwarding paths. Both systems provide provably secure threshold-based accountability while preserving the security and privacy properties of the underlying encrypted messaging system, except for the information disclosed as specified by their respective security models.

To achieve scalability, FACTS introduces a compact data structure, the collaborative counting Bloom filter (CCBF), whose size is determined by the anticipated complaint workload per epoch rather than the total volume of messages. Similarly, the server-side auditing cost of BoSS depends on the reporting workload rather than the overall messaging activity. Both systems introduce low computational overhead and modest additional communication costs on the client side, while maintaining practical computational and communication costs on the server side. Our experimental evaluations demonstrate the feasibility of operating these systems at scale.

Together, these works contribute both theoretical foundations and practical systems toward making privacy-preserving computation efficient at scale.

Collaborators and Publications

The research in this dissertation was carried out jointly with collaborators. Coauthors are listed below in the order in which they appear on each publication.

I thank all of my coauthors for their contributions to this work.

1 Introduction

The modern digital landscape is defined by a fundamental tension between the exponential growth of data and the imperative to protect the privacy of the individuals generating it. As datasets continue to grow and an increasing number of applications rely on the collection and analysis of sensitive data, the efficiency of privacy-preserving computation becomes increasingly important. Cryptographic techniques, such as Secure Multi-Party Computation (MPC) and Fully Homomorphic Encryption (FHE), enable secure computation over sensitive data while providing privacy. Differential privacy (DP), on the other hand, provides formal guarantees that limit what can be inferred about individual contributions to a dataset from the outputs of a computation. However, the communication and computational overhead associated with providing these guarantees can become substantial as the size of the underlying data grows. In particular, protocols that require large amounts of data to be exchanged, many sequential rounds of communication, or a large number of expensive cryptographic operations may become impractical when applied to large-scale datasets. Furthermore, a low communication volume does not necessarily imply low communication latency, as network delays can accumulate across sequential rounds.

Consequently, an important research question is how to efficiently perform privacy-preserving computation at scale while maintaining the desired security and privacy guarantees. In particular, we investigate how privacy-preserving protocols can achieve communication complexity sublinear in the input size or dependent primarily on the output size, while keeping the number of communication rounds small and reducing or avoiding expensive cryptographic operations where possible. We further investigate how similar efficiency considerations can guide the design of practical and scalable privacy-preserving systems. This dissertation addresses these questions through five studies organized into two complementary research directions.

The first direction, Secure Protocols with Sublinear Communication, comprises three studies that investigate the design and analysis of communication-efficient privacy-preserving protocols. These works introduce compressed oblivious encoding schemes for homomorphically encrypted search to allow for parallel retrieval with sublinear communication when the number of matching records is small, develop protocols for secure collaborative sampling with sublinear communication and investigate their fundamental limitations, and study the inherent privacy properties of Min-Hash, a widely used sketching technique for sublinear-communication estimation of set similarity.

The second direction, Privacy-Preserving Accountability in End-to-End Encrypted Messaging, addresses the challenges of introducing accountability mechanisms into end-to-end encrypted messaging systems. Here, the challenge is not merely computational efficiency but the architectural reconciliation of user privacy with platform accountability. We develop two complementary frameworks, the Fuzzy Anonymous Complaint Tally System (FACTS) and The Bane of Super Spreaders (BoSS), to support threshold-based accountability for widely reported messages and superspreaders of unwanted content, respectively. Both systems aim to preserve the security and privacy properties of the underlying encrypted messaging system, except for the information disclosed as specified by their respective security models, while minimizing the additional computational and communication overhead imposed on clients and maintaining practical server-side costs at scale.

A unifying theme across both research directions is the study of how problem-specific structures and workload characteristics can be exploited to reduce the costs of privacy-preserving computation. Rather than designing protocols and systems whose costs necessarily grow with the full size of the underlying data, we investigate how these costs can depend on other parameters relevant to the computation, such as the size of the desired output, the properties of the input distributions, the size of a compact representation, or the volume of user reports. Through these studies, we aim to understand both the theoretical possibilities and limitations of efficient privacy-preserving computation and how such efficiency can be achieved in practical systems.

1.1 Communication Bottlenecks in Privacy-Preserving Computation

Communication is an important bottleneck in privacy-preserving computation, particularly when the computation involves multiple parties holding large private datasets or a client interacting with a remote server. For example, consider a two-party computation where Party A holds a private vector \(x\) and Party B holds a private vector \(y\), and the parties wish to compute a function \(f(x,y)\). Generic secure computation techniques often incur communication costs that grow with the size of the inputs or the circuit representing the function. Such costs can become substantial when the input vectors are large, even when the desired output is small.

In addition to the total amount of data exchanged, the number of sequential rounds of communication is another important factor determining the efficiency of a protocol. While a large communication volume can lead to substantial bandwidth consumption and data transfer time, a large number of communication rounds can introduce significant network latency, even when the amount of data exchanged in each round is small.

In many applications, however, the information that we wish to obtain from a computation is considerably smaller than the size of its inputs. For example, a search over a large database may return only a small number of matching records, a sampling task may require only a single sample from a large distribution, and a statistical estimation task may admit a compact representation of its inputs. Our research on sublinear-communication protocols targets such scenarios, aiming for protocols where communication costs are sublinear in the input size and depend primarily on the output size, the security parameter, or other problem-specific parameters. At the same time, we aim to keep the number of communication rounds small to reduce the impact of network latency.

Nevertheless, a small output does not necessarily imply that a computation can be performed with low communication. Similarly, an algorithm that achieves sublinear communication does not necessarily provide the desired privacy guarantees. This motivates several fundamental research questions: how can we exploit the structure of a computation to achieve sublinear communication? Under what conditions is sublinear communication possible, and what limitations are inherent to the problem? Furthermore, what privacy guarantees can be provided by existing communication-efficient algorithms?

1.2 Secure Protocols with Sublinear Communication

This line of research explores the design and analysis of secure protocols with sublinear communication for three fundamental tasks: secure search over encrypted datasets, secure collaborative sampling, and private set similarity estimation. In addition to developing communication-efficient protocols, we investigate the theoretical limitations of achieving such efficiency and the privacy guarantees that existing sublinear algorithms can provide.

1.2.0.1 Secure Search over Encrypted Datasets.

The first work tackles the communication and computational bottlenecks in FHE-based secure search. In this setting, a client stores an encrypted dataset on a remote server and wishes to retrieve all records matching a private query. While FHE enables the server to evaluate the query over the encrypted dataset, efficiently retrieving all matching records without revealing which records match the query remains a challenge. In the prior secure search framework we consider, matching records are retrieved sequentially, requiring repeated protocol executions. Alternatively, returning the entire encrypted matching vector would incur communication linear in the database size, even when only a small number of records match the query.

Our key observation is that when the number of matching records is small relative to the database size, the matching vector is sparse and can therefore be represented by a much smaller encoding. To exploit this property without revealing the matching results to the server, we introduce the notion of Compressed Oblivious Encoding (COE), which allows the server to compress a sparse vector directly over encrypted data. We develop constructions that encode either the indices of matching records (Compressed Oblivious Index Encoding, or COIE) or the matching records themselves (Compressed Oblivious Data Encoding, or CODE). These constructions enable parallel retrieval in a constant number of communication rounds, with sublinear communication when the search results are sufficiently sparse.

Furthermore, our encoding algorithms avoid expensive ciphertext-ciphertext homomorphic multiplications, reducing the computational overhead of the fetching procedure. Our experimental evaluations demonstrate a speedup of approximately \(1800\times\) over the fetching procedure of prior work when retrieving 16 matching records, resulting in an estimated \(26\times\) speedup for the overall search functionality.

1.2.0.2 Secure Collaborative Sampling.

The second work addresses the problem of securely sampling from joint distributions defined by private inputs held by two parties. Random sampling is an important tool for computation over large-scale datasets and serves as a fundamental building block in many algorithms, statistical estimation procedures, and privacy-preserving applications. In this work, we consider a setting where two parties hold large private vectors \(w_1\) and \(w_2\), respectively, with non-negative entries, and wish to jointly sample from a distribution defined by their vectors. While this functionality can be realized using generic secure two-party computation techniques, such an approach typically requires communication linear in the dimension of the input vectors, even though the desired output consists of only a single sampled index. This motivates us to investigate whether the structure of the target distribution can be exploited to achieve sublinear communication while preserving privacy in the semi-honest security model.

We investigate several types of sampling, including \(L_1\), \(L_2\), and product sampling, which differ in how the target distribution is derived from the two private vectors. In \(L_1\) and \(L_2\) sampling, an index \(i\) is sampled with probability proportional to \(w_{1,i}+w_{2,i}\) and \((w_{1,i}+w_{2,i})^2\), respectively. In product sampling, the sampling probability is proportional to \(w_{1,i}\cdot w_{2,i}\).

For \(L_1\) sampling, we develop protocols based on obliviously sampling from the individual distributions and securely selecting one of the samples using an appropriately biased coin toss. Unlike \(L_1\) sampling, the normalization factor in \(L_2\) sampling cannot be computed simply by combining the norms of the individual vectors, and computing it exactly requires linear communication in general. To overcome this challenge, we introduce Corrective Sampling, a technique that transforms samples from an efficiently samplable distribution into samples from the desired distribution through rejection sampling, without explicitly computing the normalization factor of the target distribution. This allows us to achieve secure \(L_2\) sampling with constant round complexity and polylogarithmic communication in the dimension of the input vectors. We further show how this technique can be extended to \(L_p\) sampling for constant \(p\).

For product sampling, we investigate the fundamental limitations of achieving sublinear communication. We establish a communication lower bound showing that, without appropriate restrictions on the input distributions, sublinear-communication product sampling is impossible even in the absence of privacy requirements. On the other hand, when the input distributions are sufficiently correlated, we develop secure product sampling protocols with sublinear communication and investigate the trade-offs between communication efficiency and information leakage. We further develop a constant-round variant based on a communication-efficient approximation of the inner product, with precisely characterized additional leakage.

An important application of product sampling is the distributed realization of the exponential mechanism for differential privacy, where the scores associated with the possible outputs are additively distributed across two parties. The exponential of the sum of the two private scores can be expressed as the product of their individual exponentials, naturally reducing the problem to product sampling. However, directly applying our product sampling protocols introduces additional leakage that may violate the desired differential privacy guarantees. To address this issue, we develop a differentially private approximation of the inner product and demonstrate how it can be used to realize a secure two-party exponential mechanism with sublinear communication under appropriate assumptions on the input distributions.

1.2.0.3 Privacy of Min-Hash.

The third work investigates the privacy properties of Min-Hash, a widely used sketching technique for estimating the similarity between two sets. One common measure of set similarity is the Jaccard index, defined as \(J(A,B)=|A\cap B|/|A\cup B|\). Computing the Jaccard index exactly can be expensive when the input sets are large. Min-Hash provides a communication-efficient approximation by exploiting the observation that, under an appropriately chosen random hash function, the probability that two sets have the same minimum hash value is equal to their Jaccard similarity. By repeating this procedure with multiple random hash functions, the Jaccard index can be estimated using compact sketches whose size is determined by the desired accuracy rather than the size of the underlying sets.

While secure computation techniques can be used to compare Min-Hash sketches without revealing the underlying sets, the resulting similarity estimate may itself reveal sensitive information about individual elements. On the other hand, adding noise to achieve differential privacy introduces additional estimation error. This motivates us to investigate two questions: how can we efficiently compute a differentially private estimate of the Jaccard index using Min-Hash, and under what conditions can the inherent randomness and approximation error of Min-Hash provide privacy without the addition of further noise?

To address the first question, we analyze the sensitivity of the Min-Hash count and develop Noisy Min-Hash, which adds appropriately calibrated noise to the count to achieve differential privacy. We further develop a secure two-party protocol in which the parties compute their Min-Hash sketches locally and securely obtain the noisy count from these compact sketches, thereby achieving sublinear communication in the size of the original input sets. In particular, we show how this functionality can be efficiently realized using private set intersection cardinality (PSI-CA). Unlike approaches that release the entire noisy sketch, our protocol protects the individual sketches and reveals only the noisy count together with the information specified by the ideal functionality. Our empirical evaluation demonstrates that, over a range of communication costs, our Noisy Min-Hash protocol achieves a better trade-off between communication cost and estimation accuracy than the prior differentially private sketching approaches considered in our work, under comparable privacy guarantees.

To address the second question, we investigate the privacy guarantees of Min-Hash when its output is released without additional noise. We distinguish between two settings depending on whether the hash functions used to construct the sketches are kept private or made public. When the hash functions remain private, we establish conditions on the input sets and sketch size under which the Min-Hash count itself satisfies differential privacy without additional noise. When the hash functions are public, standard differential privacy generally cannot be achieved without additional noise. However, when there is sufficient uncertainty about the honest party’s input set, we show that Min-Hash can satisfy Distributional Differential Privacy (DDP) in the random oracle model under appropriate assumptions on the input distributions and intersection size. To extend our analysis to settings where individual elements may have low min-entropy but the set as a whole has high min-entropy, we further develop a new strong chain rule for min-entropy, which may be of independent theoretical interest. We also empirically evaluate the DDP guarantees of noiseless Min-Hash in the public-hash setting with high-entropy input elements, demonstrating how the achievable privacy parameters depend on the sketch size and the Jaccard index.

1.2.0.4 Summary of Contributions.

Collectively, these works explore different aspects of privacy-preserving computation with sublinear communication: how the structure of a computation can be exploited to design efficient secure protocols, under what conditions such efficiency can be achieved, and what privacy guarantees can be provided by existing communication-efficient algorithms. In addition to achieving sublinear communication, we also investigate how to keep the number of communication rounds small and reduce or avoid expensive cryptographic operations where possible. Together, they provide both efficient protocols and theoretical foundations for privacy-preserving computation over large-scale datasets.

1.3 Privacy-Preserving Accountability in End-to-End Encrypted Messaging

This line of research focuses on the design of privacy-preserving accountability mechanisms for end-to-end encrypted messaging systems. Messaging platforms serve as an important medium for communication and information sharing, but can also facilitate the dissemination of unwanted content, such as misinformation, spam, and fraudulent messages. End-to-end encrypted messaging platforms, such as WhatsApp and Signal, utilize encryption that hides message contents from the service provider. This prevents the use of conventional content moderation methods that rely on analyzing message contents in the clear.

To address this challenge, existing accountability mechanisms for end-to-end encrypted messaging systems typically rely on user reports. For example, message franking and traceback mechanisms allow a recipient to report an unwanted message and reveal information about its sender or originator to the service provider. While such mechanisms are useful for addressing targeted abuse and harassment, allowing a single report to trigger the disclosure of sensitive information may unnecessarily compromise user privacy when addressing the large-scale dissemination of unwanted content.

This motivates us to investigate threshold-based accountability mechanisms, where sensitive information is disclosed for auditing only after a specified threshold of reporting activity has been reached. The challenge is to allow the moderator to identify widely reported messages or accounts responsible for spreading unwanted content, while protecting the privacy of users, messages, and forwarding relationships, except for the information disclosed as part of the intended accountability functionality. Moreover, the integrity of the reporting mechanisms must be ensured so that malicious participants cannot easily manipulate the reporting process or falsely attribute unwanted content to other users.

In addition to these security and privacy requirements, scalability is an important consideration in the design of such mechanisms. Given the large number of messages transmitted through modern messaging platforms, maintaining additional state or performing expensive cryptographic operations for every message can introduce substantial overhead. We therefore investigate how accountability mechanisms can be designed such that the server-side costs of complaint management and auditing depend primarily on the reporting workload rather than the overall messaging activity, while keeping the overall computational and communication costs practical for large-scale deployment. At the same time, we aim to minimize the additional computational and communication overhead imposed on clients during normal messaging operations.

1.3.0.1 FACTS: Threshold-Based Source Identification.

The fourth work introduces the Fuzzy Anonymous Complaint Tally System (FACTS), which enables threshold-based source identification in end-to-end encrypted messaging systems. The goal of FACTS is to allow users to complain about messages they have received and to reveal the contents and the originator of a message to the server once the number of complaints on that message reaches approximately a specified threshold \(t\). Prior to an audit, the server should not learn which messages are being complained about or how many complaints a particular message has received.

A natural approach to this problem is to maintain an encrypted counter for each message using existing cryptographic techniques. However, even when the values of the counters are encrypted, the access patterns of updating and querying these counters may reveal information about the distribution of complaints. Hiding these access patterns using techniques such as Oblivious RAM (ORAM) introduces additional overhead and presents scalability and security challenges in a setting with a large number of potentially malicious clients. Furthermore, maintaining a separate counter for every message would require server-side storage that grows with the number of messages in the system.

Our key observation is that, for the purpose of identifying widely reported messages, it is not necessary to maintain exact complaint counts or enforce an exact threshold. By relaxing the functionality to allow a small error in the number of complaints required to trigger an audit, we introduce a novel oblivious data structure, the Collaborative Counting Bloom Filter (CCBF). Instead of maintaining a separate counter for each message, the CCBF mixes the counters of different messages in a shared bit array, where the bit locations associated with each message are hidden from the server. Clients can obliviously increment and query the approximate counters, with each increment requiring the server to set only a single bit. The size of the data structure is determined by the anticipated number of complaints per epoch rather than the total number of messages in the system.

Building upon the CCBF, we construct FACTS using relatively inexpensive cryptographic operations to bind messages to their originators and enable threshold-based auditing. We formally analyze the security of FACTS against a semi-honest server and, separately, against malicious clients, establishing its message and complaint privacy guarantees as well as the integrity of the complaint and auditing mechanisms under the respective adversarial models. FACTS introduces low computational and communication overhead to normal client-side messaging operations, without requiring additional communication or shared secrets between clients.

Our theoretical analysis and experimental evaluations demonstrate both the accuracy and efficiency of FACTS. In particular, the system requires only 12 MB of server-side storage for the CCBF when supporting one million complaints per epoch. Our experiments show that the desired complaint threshold can be enforced with a small error and that the additional costs of messaging and complaint registration (for sufficiently large \(t\)) are largely dominated by network latency under the evaluated settings. These results demonstrate the feasibility of deploying FACTS in large-scale end-to-end encrypted messaging systems.

1.3.0.2 BoSS: Threshold-Based Superspreader Identification.

While FACTS enables the identification of originators of widely reported messages, the originators are not necessarily the users primarily responsible for the large-scale dissemination of unwanted content. In particular, some users may repeatedly forward and amplify unwanted content originated by others, without originating any of these messages themselves. Furthermore, a user may spread many different unwanted messages, none of which individually receives enough complaints to trigger an audit in FACTS. This motivates our fifth work, The Bane of Super Spreaders (BoSS), which investigates how to identify users who repeatedly spread unwanted content in end-to-end encrypted messaging systems while preserving the privacy of other users.

A major challenge in designing such a system is determining how complaints should be attributed to the users involved in the dissemination of reported messages. Simply counting all complaints from downstream recipients may allow malicious users to artificially inflate the complaint tally of an earlier sender by repeatedly forwarding a message and issuing complaints. On the other hand, counting complaints independently for each message would allow a superspreader to evade detection by spreading different messages. To address these challenges, we define the report tally of a user as the number of distinct outgoing message edges associated with that user in the union of the reported forwarding paths. This allows complaints on different messages to contribute to the same user’s tally while ensuring that multiple reports involving the same forwarding edge contribute only once.

Another major challenge is to compute these report tallies without revealing the underlying forwarding relationships, individual report tallies, or the overall histogram of report tallies. Ideally, the auditing procedure should reveal only the identities of users whose report tallies reach the specified threshold, without revealing any additional information about individual tallies.

To securely realize this functionality, we develop a cryptographic mechanism that attaches a chain of encrypted tags to each message, encoding its forwarding history up to a specified forwarding depth. These tags allow users to forward messages and submit reports without revealing the identities of earlier senders beyond what is already known to them. Through the use of digital signatures and layered authenticated encryption, we cryptographically bind the tags to the corresponding message and forwarding relationships, protecting against unauthorized modification and reuse of tags. At the end of each epoch, two non-colluding moderators perform a maliciously secure two-party computation to validate the reported tags, eliminate duplicates, and compute the report tallies. Unlike FACTS, BoSS enforces an exact threshold on the report tallies and reveals the identities of users whose tallies reach the threshold without revealing the contents of the reported messages.

We formally specify the desired functionality and security guarantees of BoSS in the Simplified Universal Composability (SUC) framework and prove the security of our construction against malicious adversaries under static corruptions, where the adversary can corrupt clients and at most one of the two moderators. To achieve scalability, we design the system such that the cost of the server-side auditing procedure depends on the number of submitted report tags rather than the total number of messages transmitted during an epoch. We further develop several optimizations for the underlying secure computation, including the use of cryptographic primitives tailored to secure computation, efficient elliptic curve operations over secret-shared values, and efficient oblivious sorting enabled by secure oblivious shuffling. These optimizations reduce both the computational and communication costs of the server-side auditing procedure.

Our experimental evaluations demonstrate the practicality of BoSS on both the client and server sides. On the client side, even in an emulated iPhone 12 setting, BoSS introduces only a few milliseconds of additional computation and approximately 4.6 KB of additional communication per message. Under simulated mobile network conditions, these overheads increase the message sending latency by only approximately 6 ms over the baseline latencies of 59.3 ms (4G LTE) and 45.4 ms (5G) in the underlying Signal messaging system. On the server side, our implementation can securely process one million tags in less than fifteen minutes of online computation, even under simulated wide-area network conditions (60 ms RTT). For this workload, the estimated server-side online processing cost, including both computation and communication, is approximately $16 when deployed across two availability zones within an AWS region. These results demonstrate the feasibility of providing threshold-based superspreader identification in large-scale end-to-end encrypted messaging systems.

1.3.0.3 Summary of Contributions.

Together, FACTS and BoSS explore two complementary approaches to privacy-preserving accountability in end-to-end encrypted messaging systems: identifying the originators of widely reported messages and identifying users who repeatedly spread unwanted content. Both works demonstrate how threshold-based accountability can be achieved while preserving the security and privacy properties of the underlying messaging systems, except for the information disclosed as specified by their respective security models. To achieve scalability, we explore different techniques, ranging from probabilistic data structures to optimized secure computation protocols, to keep the computational and communication costs of these systems practical. In particular, both systems are designed to have their main server-side complaint management or auditing costs depend on the reporting workload rather than the overall messaging activity, while introducing low computational overhead and modest additional communication costs on the client side. Together, these works demonstrate the feasibility of incorporating privacy-preserving accountability mechanisms into large-scale end-to-end encrypted messaging systems.

2 Literature Review

This chapter surveys existing literature relevant to the two primary directions. First, we discuss the foundational cryptographic primitives and protocols for Secure Search, Secure Sampling, and Privacy-Preserving Set Similarity. Second, we review the literature relevant to our application to accountability in end-to-end encrypted messaging, FACTS and BoSS.

2.1 Secure Search, Sampling, and Similarity

This direction focuses on optimizing privacy-preserving protocols for retrieving and analyzing data. We divide the literature into three interconnected domains: secure search, secure sampling, and set similarity.

2.1.0.1 Differential privacy (DP).

Differential privacy limits what an adversary can learn about any individual input from the output of a computation [1], [2]. For an overview of DP and standard mechanisms in both the curator setting and distributed settings, we refer the reader to the book by Dwork and Roth [3]. DP will appear repeatedly in our discussion, both as an explicit privacy goal and as a tool for trading accuracy for improved efficiency.

Secure search is a widely-studied problem with solutions spanning various cryptographic settings. In the discussion below, let \(n\) denote the number of data items.

2.1.1.1 Secure pattern matching (SPM) on FHE-encrypted data.

In SPM, given an encrypted query \(\unicode{x27E6}q \unicode{x27E7}\) and \(n\) FHE-encrypted data items \((\unicode{x27E6}x_1 \unicode{x27E7}, \ldots, \unicode{x27E6}x_n \unicode{x27E7})\), the protocol returns a vector of \(n\) ciphertexts \(\unicode{x27E6}b_1 \unicode{x27E7}, \ldots, \unicode{x27E6}b_n \unicode{x27E7}\), where \(b_i\) indicates whether the \(i\)-th data element matches the query [4], [5], [6], [7]. These works primarily focus on optimizing the search circuits used to determine matches. Consequently, the communication complexity and the client’s running time remain proportional to the number of data items. In contrast, our work focuses on the orthogonal problem of optimizing the retrieval of matched data items, aiming for sublinear communication and client computation.

2.1.1.2 Searchable encryption (SE).

Searchable encryption [8], [9] enables highly efficient search (typically \(o(n)\) time) over encrypted data. Efficient SE schemes have been proposed for a wide variety of queries, including equality queries [10], [11], range queries [12], [13], and conjunctive queries [14], [15]. However, to achieve sublinear query performance, SE schemes generally require significant preprocessing and must relax security guarantees, allowing partial information (such as access patterns) to leak to the server [16]. Unlike standard SE, our work focuses on achieving preprocessing-free constructions that leak nothing about the queries or results beyond their sizes.

2.1.1.3 Property Preserving Encryption (PPE).

PPE [17] produces ciphertexts that maintain certain relationships (e.g., equality or order) of the underlying plaintexts. Examples include deterministic encryption [18] and order-preserving encryption [19], [20]. However, it has been demonstrated [21], [22], [23] that such ciphertexts leak significant information, rendering them undesirable for many security-critical applications.

2.1.1.4 General Techniques (PIR, MPC, ORAM, ODS).

Private Information Retrieval (PIR) [24] allows retrieval while hiding the index, but requires the client to know the index beforehand. General MPC [25] and ORAM [26] can theoretically solve secure search, but generic constructions typically incur high communication (\(\Omega(n)\) for MPC) or significant overhead to hide access patterns. Oblivious data structures (ODS) can support richer data structures (e.g., search trees), but typical ODS constructions incur \(\Omega(\log^2 n)\) rounds per operation, which motivates constant-round designs for practical secure search.

2.1.2 Secure Sampling

2.1.2.1 Sampling from streaming data.

Non-private sampling from data streams has been studied extensively [27], [28], [29], [30], [31], typically achieving \(\ell_p\) sampling with sublinear computation. These works generally operate in a single-party setting and do not consider privacy.

2.1.2.2 Secure multiparty sampling.

In the privacy domain, works like [32], [33] investigate sampling in the information-theoretic setting, while Champion et al. [34] consider the computational setting for publicly-known distributions. Our work is distinct in focusing on sampling from a private distribution in the computational setting, with a specific emphasis on reducing communication.

2.1.2.3 Secure MPC of differentially private functionalities.

Since Dwork et al. [35], significant work has focused on using MPC to realize DP functionalities [36], [37], [38]. While these works address machine learning and aggregation, we focus specifically on optimizing the communication complexity for sampling functionalities.

2.1.3 Private Sketching and Secure Sketching

2.1.3.1 Secure sketching.

A long line of work studies secure sketches for estimating statistics (e.g., Tor usage, web traffic, unique count, median) with sublinear communication and computation [39], [40], [41], [42], [43]. These works are closely related in spirit, but generally focus on building secure protocols for specific streaming-style statistics, whereas our focus is on sublinear primitives (search, sampling, and similarity) that can serve as broadly reusable building blocks.

2.1.3.2 Private sketching.

Sketching algorithms are sublinear-space methods that produce compact summaries enabling efficient storage, merging, and processing. A growing body of work observes that sketches can also aid privacy, since information loss in the sketch can make the sketch itself differentially private or reduce the additional noise required [41], [43], [44], [45], [46], [47], [48], [49], [50], [51], [52], [53], [54], [55]. Related work also constructs private sketches for set cardinality and set operations, including mergeable sketches for estimating intersection and union [47], [56], [57], [58], [59], [60]. This perspective directly motivates our study of privacy properties of Min-hash and related similarity sketches.

2.1.4 Set Similarity via Min-Hash

2.1.4.1 Jaccard Index and Min-Hash.

Many works have constructed 2-party Jaccard index estimation protocols using Min-hash with sublinear communication to avoid the high cost of exact computation [61], [62], [63].

2.1.4.2 Differentially Private (DP) Min-Hash.

Recent research aims to output Jaccard similarity estimates while preserving differential privacy. Aumüller et al. [64] achieve local DP min-hash by perturbing vectors with noise. Other attempts have faced challenges; for example, [65] was shown to have flaws in its privacy claim, while [66] incurs high noise overhead.

2.1.4.3 Optimizing Secure Computation using DP.

Our work sits at the intersection of DP and MPC. A specific line of research relevant to our goals is optimizing secure computation using DP, initiated by Beimel et al. [67]. Subsequent works have applied this to set intersection [68], [69], graph-parallel computations [70], and shuffling [71]. We similarly leverage DP-style relaxations to improve the efficiency of similarity protocols.

2.1.4.4 Secure approximation.

Secure approximation studies what functions can be securely approximated without revealing anything beyond the true output [72], [73]. This notion is distinct from DP-style approximation, but it is conceptually adjacent: both investigate how controlled relaxation can enable more efficient privacy-preserving computation.

2.1.4.5 Robust sketching and property-preserving hashing.

Property-preserving hash (PPH) compresses large inputs into short digests enabling computation of a property from the digests alone, and adversarially robust PPH further requires correctness even when inputs are adaptively chosen after the hash is fixed [74], [75], [76], [77]. Related work on robust sketching similarly studies sketches that remain accurate under adaptive inputs [78], [79]. These works focus on robustness to adversarial inputs, whereas our focus is on privacy when the adversary additionally sees the hash functions or sketch randomness.

2.2 Accountability in End-to-End Encrypted Messaging (FACTS and BoSS)

Our second direction shifts focus to a specific application: enabling accountability in end-to-end encrypted messaging systems. FACTS (6) aims to track the originator of a viral, widely complained-about message, and BoSS (7) aims to track superspreaders, users who repeatedly spread unwanted content.

2.2.0.1 Message Franking.

The prevailing approach for reporting malicious messages is message franking [80], [81], [82]. This technique allows a recipient to cryptographically prove the identity of the sender. However, message franking is limited to identifying the immediate sender and cannot trace the original source in a forwarding chain. Furthermore, it does not provide threshold guarantees to prevent unmasking users based on a single complaint. Extensions support anonymous communication networks [81], [83], [84], but still reveal the sender after a single report.

2.2.0.2 Traceback and source tracking.

Traceback schemes follow some or all of the forwarding graph of a reported message to find its original source [85], [86], [87], and some combine tracing with anonymity [88], [89]. Impact tracing [90] instead reveals the users who shared a single reported message. All of these act on a single report, so a single complaint suffices to reveal a user’s identity.

2.2.0.3 Threshold complaints.

FACTS introduced the threshold approach in the single-server setting: an originator is revealed only after many users complain. Bell and Eskandarian [91] study threshold reporting with multiple servers, and Branco et al. [92] give a further construction. Like heavy-hitter protocols [93], [94], these works reveal only items reported by many users, but all of them reveal a message’s contents and its original source. BoSS instead reveals the users who spread complained-about content, which requires both a new definition and new encodings of the forwarding history.

2.2.0.4 Superspreaders in social networks.

Empirical studies of open social networks show that a small group of highly active users spreads a large share of unwanted content [95], [96], [97], [98], and that WhatsApp is also the target of campaigns of low-credibility content [99], [100], [101]. These findings motivate the focus of BoSS on spreaders rather than authors.

2.2.0.5 Scalable Oblivious Data Structures.

FACTS requires scalable oblivious storage to track complaints. While multi-client ORAM protocols exist [102], [103], [104], they do not yet scale to the millions of users required for messaging applications. Similarly, oblivious counters [105], [106] generally focus on exact counting or complex operations, lacking the specific compression traits of the collaborative counting Bloom filter (CCBF) we utilize. More generally, oblivious data structures [107], [108], [109] enable higher-level oblivious operations over encrypted data, but do not directly provide the compression needed to store and update complaint tallies at large scale.

2.2.0.6 Private Sketching for User-Server Settings.

CCBF can be viewed as a compact sketch for storing complaint counts over a large set of messages. There has been significant interest in privacy-preserving sketching algorithms for cardinality estimation, frequency measurement, and related approximations [42], [43]. However, much of this literature targets multi-party settings (often with multiple servers) where parties run secure computation to evaluate the statistic. In contrast, FACTS restricts communication to the user–server model, which limits the direct applicability of these approaches.

3 Secure Search over Encrypted Datasets

3.1 Introduction

As computing paradigms are shifting to cloud-centric technologies, users of these technologies are increasingly concerned with the privacy and confidentiality of the data they upload to the cloud. Specifically, a client uploads data to the server and expects the following guarantees:

  1. The uploaded data should remain private, even from the server itself;

  2. The server should be able to perform computations on the uploaded data in response to client queries;

  3. The client should be able to efficiently recover the results of the server’s computation with minimal post-processing.

In this work, we will focus on the computational task of secure search. In this application, the client uploads a set of records to the server, and later posts queries to the server. Computation proceeds in two steps called matching and fetching. In the matching step, the server compares the encrypted search query from the client with all encrypted records in the database, and computes an encrypted 0/1 vector, with 1 indicating that the corresponding record satisfies the query. The fetching step returns all the 1-valued indexes and the corresponding records, to the client for decryption.

While seemingly conflicting goals, the guarantees of (1), (2), (3) can be simultaneously achieved for the secure search setting via techniques such as secure multiparty computation and searchable encryption. Recently, a line of works has focused on Fully Homomorphic Encryption (FHE)-based secure search, which we describe next.

3.1.0.1 FHE-based secure search.

The simplicity of the framework of secure search on FHE encrypted data is attractive. Compared to other secure search systems, no costly setup procedure is necessary; it is sufficient for the client merely to upload the encrypted database to the server. Confidentiality is provided because the server works only on the encrypted query and records. The server can still perform the search correctly due to the powerful property of the full homomorphism of the underlying encryption scheme.

For this reason, researchers have been paying increasing attention to this problem. In particular, Akavia et al. [110] introduce a framework of performing secure search on FHE-encrypted data (see Figure 1).

Informally, a secure, homomorphic encrypted search scheme has the following Setup:

  1. (Setup) The client encrypts and uploads \(n\) items \(x = (x_1, \ldots, x_n)\) to the server. Let \(\unicode{x27E6}x \unicode{x27E7}= (\unicode{x27E6}x_1 \unicode{x27E7}, \ldots, \unicode{x27E6}x_n \unicode{x27E7})\) denote the encrypted data stored in the server.

Throughout this chapter, we let \(\unicode{x27E6}\cdot \unicode{x27E7}\) denote an FHE-encrypted ciphertext. After the encrypted records have been uploaded, the client can perform a secure search using three algorithms, (Query, Match, Fetch).

  1. (Query) The client sends an encrypted query \(\unicode{x27E6}q \unicode{x27E7}\) to the server.

  2. (Match) The server homomorphically evaluates the query \(\unicode{x27E6}q \unicode{x27E7}\) on each record \(\unicode{x27E6}x_i \unicode{x27E7}\) to obtain the encrypted matching results \(\unicode{x27E6}b \unicode{x27E7}= (\unicode{x27E6}b_1 \unicode{x27E7}, \ldots, \unicode{x27E6}b_n \unicode{x27E7}).\) That is, \(b_i\) is 1 if item \(x_i\) satisfies the given query \(q\); otherwise, \(b_i\) is \(0\).

  3. (Fetch) Given \(\unicode{x27E6}b \unicode{x27E7}\), the server homomorphically computes \(\unicode{x27E6}i^* \unicode{x27E7}\), where \(i^* = \min \{ i \in [n] : b_i = 1 \}\) which corresponds to the first matching record index. It fetches \(\unicode{x27E6} x_{i^*} \unicode{x27E7}\) (obliviously) and sends \((\unicode{x27E6}i^* \unicode{x27E7}, \unicode{x27E6}x_{i^*} \unicode{x27E7})\) to the client for decryption.

3.1.0.2 Multiplications in the fetching step.

Akavia et al. also provide a construction that performs the fetching step in \(O(n \log^2 n)\) homomorphic multiplications. Subsequently, more efficient algorithms have been presented with \(O(n \log n)\) multiplications [111] and \(O(n)\) multiplications [112].

3.1.1 Motivation

3.1.1.1 Bottleneck: fetching records sequentially.

Suppose a client wants to fetch all matching items. Under the above framework, the client would first obtain the first matching index \(i^*\) and its corresponding item \(x_{i^*}\). To fetch the second matching item, the framework suggests that the client should slightly change the original query \(q\) to a new query \(q'_{i^*}\) as follows:

Then, by executing a new instance of the protocol with the encrypted query \(\unicode{x27E6}q'_{i^*} \unicode{x27E7}\), the client will obtain the second matching item. By repeating this procedure, the client will ultimately obtain all the matching records.

Note that the query \(q'_{i^*}\) embeds \(i^*\) in itself as a constant, which implies that there is no way for the client to construct this query \(q'_{i^*}\) without obtaining \(i^*\) first. In other words, the client can construct the query for the second matching item, only after fetching the first matching item. In this sense, the framework inherently limits the client to fetch only a single matching record at a time in a sequential manner.

If there are \(\ell\) matching records, the client and server have to execute \(\ell\) instances of the Query, Match, and Fetch algorithms. Since each Match and Search step requires costly homomorphic multiplications, the limitation of sequential protocol execution creates a serious bottleneck with respect to the running time. This leads us to ask the following natural question:

3.1.1.2 Reducing homomorphic multiplications.

All previous schemes have to perform \(\Omega(n)\) homomorphic multiplications in the fetching step. Since homomorphic multiplications are costly operations, it is desirable to reduce such computations, which begs the natural following question:

In this chapter, we answer both of the above questions affirmatively.

rounds #Match \({\mathsf hmult}\) \({\mathsf hadd}\) \({\mathsf smult}\) communication plaintext modulus
LEAF [112] \(s\) \(s\) \(O(ns)\) \(O(ns\log n)\) 0 \(O(s \cdot \log n \cdot |C|)\) 2
Protocol w/ BF-COIE \(3\) 1 0 \(O(n \log \frac n s)\) 0 \(O(s^{1+\epsilon} \log \frac n s \cdot |C| + pir(s))\) prime
Protocol w/ PS-COIE \(3\) 1 0 \(n \cdot s\) \(n \cdot s\) \(O(s \cdot |C| + pir(s) )\) prime
Protocol w/ BFS-CODE \(2\) 1 \(n\) \(O(\lambda n)\) 0 \(O(s \lambda\cdot |C|)\) prime
Performance Comparisons when \(s\) records are fetched

3.1.2 Our Work

3.1.2.1 Parallelizing the Fetch procedure.

To address the issues, we introduce a new secure search framework where the matching items are retrieved in parallel in a constant number of rounds. Our Setup, Query and Match algorithms are the same as in prior work. However, we modify the Fetch procedure, dividing into two steps: Encode and Decode. In the Encode step, the server homomorphically inserts the matching items into a data structure - the particular structure depends on the construction, as we provide 3 different constructions, each using a different encoding. After receiving the encrypted encoding, the client decrypts the encoding and runs the Decode step to recover the items.

3.1.2.2 Compressed oblivious encoding.

The encoding is computed homomorphically, and, most importantly, allows to encode the full result set, rather than just a single item. In particular, we introduce a notion of Compressed Oblivious Encoding (COE). A compressed oblivious encoding takes as input a large, but sparse, vector and compresses it to a much smaller encoding from which the non-zero entries of the original vector can be recovered. What makes this encoding oblivious is that the encoding procedure is performed on encrypted data. In certain constructions, the encoding includes the data values (CODE, compressed oblivious data encoding), and in others it only includes the indices (COIE, compressed oblivious index encoding). In the latter case, the Decode procedure is interactive, and allows the client to recover the values from the decoded set of indices.

For simplicity, when describing the generic syntax of secure search scheme, we denote the Encode procedure as taking both the indices and the values as input, and we suppress the fact that when the values are not used during Encoding, the Decoding step must be interactive. Recall, we use \(\unicode{x27E6}b \unicode{x27E7}= (\unicode{x27E6}b_1\unicode{x27E7}, \ldots, \unicode{x27E6}b_n \unicode{x27E7})\) to denote the encrypted bit vector that results from the Match step.

  1. (Encode) Let \(S = \{ i \in [n] : b_i = 1 \}\). Let \(V = \{v_i : i \in S\}\). The server homomorphically evaluates an \(\unicode{x27E6}\mathsf{encoding}(S,V) \unicode{x27E7}\) and sends it to the client.

  2. (Decode) The client decrypts \(\unicode{x27E6} \mathsf{encoding}(S) \unicode{x27E7}\) and runs the decoding procedure to recover \((S, V)\).

We assume that the results set \(|S|\) is small (i.e., sublinear in \(n\)). We would like the size of the compressed encoding to be sublinear in \(n\) to maintain meaningful communication cost.

3.1.2.3 No multiplications in the Encode step.

To ensure minimal computational cost for encoding the results, we also wish to minimize the number of homomorphic multiplications. Recall, the best prior work requires \(O(n)\) multiplications by the server. Somewhat surprisingly, we demonstrate three encoding algorithms that can be evaluated without any homomorphic multiplications!

3.1.2.4 Using PIR (Private Information Retrieval).

The asymptotic complexities and trade-offs of the search protocols are presented in Figure 2.

In some of our protocols (i.e., the search protocols with BF-COIE and PS-COIE; see Sections 3.4 and 3.6.3 for more detail), the indices and actual records are fetched in separate steps. This allows us to focus on optimizing the retrieval of the indices after which the values can be fetched using an efficient (setup-free) PIR protocol resulting in overall savings.

However, if reliance on PIR is undesirable, we also offer a variant that fetches the values directly (i.e., the protocol w/ BFS-CODE in Figure 2; see Sections 3.5 and 3.6.4 for more detail), as in prior work.

3.1.2.5 Implementation.

We implement all of our proposed schemes and compare their performance with that of prior work. Our experiments show that our schemes outperform the fetching procedure of prior work by a factor of 1800X when fetching 16 records, which results in a 26X speedup for the full search functionality.

3.2 Preliminaries

Let \(\lambda\) be the security parameter. For a vector \(a\), let \(\mathsf{idx}(a)\) denote the set of all the positions \(i\) such that \(a_i\) is non-zero, i.e., \[\mathsf{idx}(a) := \{ i: a_i \ne 0\}.\]

3.2.0.1 Chernoff bound.

We will use the following version of Chernoff bound.

Theorem 1. Let \(X_1, \ldots, X_n\) be independent random variables taking values in \(\{0,1\}\) such that \(\Pr[X_i = 1] = p\). Let \(\mu := {\bf Exp}[\sum X_i] = np\). Then for any \(\delta > 0\), it holds \[\Pr\left[ \sum_{i=1}^n X_i \ge (1 + \delta) \mu \right] \le \left (\frac {e^\delta} {(1+\delta)^{(1+\delta)}} \right)^\mu.\]

3.2.0.2 FHE.

We use a standard CPA-secure (leveled) fully homomorphic encryption scheme \(({\mathsf Gen}, {\mathsf Enc}, {\mathsf Dec})\). We refer readers to [111], [112] for a formal definition. We use \(\unicode{x27E6} x \unicode{x27E7}\) to denote an encryption of \(x\).

We also use \(+\) (resp. \(\cdot\)) to denote homomorphic addition (resp., multiplication). For example, \(\unicode{x27E6}c \unicode{x27E7}:= \unicode{x27E6}a \unicode{x27E7}+ \unicode{x27E6}b \unicode{x27E7}\) means that homomorphic addition of two FHE-ciphertexts \(\unicode{x27E6}a \unicode{x27E7}\) and \(\unicode{x27E6}b \unicode{x27E7}\) has been applied, which results in \(\unicode{x27E6}c \unicode{x27E7}\).

3.2.0.3 PIR.

A PIR protocol allows the client to choose the index \(i\) and retrieve the \(i\)th record from one (or more) untrusted server(s) while hiding the index value \(i\) [24].

Assume that each of the \(k\) servers has \(n\) records \(D = (d_1, \ldots, d_n)\) where all items \(d_i\) have equal length. A single-round \(k\)-server PIR protocol consists of the following algorithms:

The communication complexity of a PIR protocol is defined by the sum of all the query lengths and answer lengths, i.e., \[\sum_{j \in [k]} |q_j| + |a_j|.\]

A PIR protocol is correct if for any \(D = (d_1, \ldots, d_n)\) with \(|d_1| = \cdots = |d_n|\), and for any \(i \in [n]\), it holds that \[\Pr_r \bigg [ R \Big(i, r, \big \{ A_j(D, Q_j(i,r)) \big \}_{j=1}^k \Big ) = d_i \bigg ] = 1.\] A PIR protocol is private if for any \(j \in [k]\), for any \(i_0, i_1 \in [n]\) with \(i_0 \ne i_1\), the following distributions are computationally (or statistically) indistinguishable: \[\{Q_j(i_0, r)\}_r \approx \{Q_j(i_1, r)\}_r.\]

3.2.1 Bloom Filter

A Bloom filter [113] is a well-known space-efficient data structure that allows a user to insert arbitrary keywords and later to check whether a certain keyword is in the filter.

3.2.1.1 \(\mathsf BF.Init()\).

The filter \(B\) is essentially an \(\ell\)-bit vector, where \(\ell\) is a parameter, which is initialized with all zeros. The filter is also associated with a set of \(\eta\) different hash functions \[\mathcal{H}= \{ h_q: \{0,1\}^* \to [\ell] \}_{q=1}^\eta.\]

3.2.1.2 \(\mathsf BF.Insert(B, \alpha)\).

To insert a keyword \(\alpha\), the hash results are added to the filter. In particular,

3.2.1.3 \(\mathsf BF.Check(B, \beta)\).

To check whether a keyword \(\beta\) has been inserted to a BF filter \(B\), one can just check the filter with all hash results. In particular,

The main advantage of the filter is that it guarantees there will be no false negatives and allows a tunable rate of false positives: \[\bigg(1 - \Big (1 - \frac{1}{ \ell} \Big )^{\eta s} \bigg)^\eta \approx \Big(1 - e^{-\frac{\eta s}{ \ell}} \Big)^\eta,\] where \(s\) is the number of keywords in a Bloom filter.

3.2.1.4 Random oracle model for hash functions.

We show our analysis in the random oracle model. That is, the hash functions are modelled as random functions.

3.2.2 Algebraic Bloom Filter

In this work, we leverage a variant of the Bloom filter where, when inserting an item, the bit-wise OR operation is replaced by addition. There have been works using a similar idea of having each cell hold an integer instead of holding a bit [114], [115].

Moreover, we consider a limited scenario where the upperbound on the number of keywords to be inserted is known beforehand. In particular, let \(s\) denote such an upperbound.

As before, the filter is also associated with a set of \(\eta\) different hash functions \(\mathcal{H}= \{ h_q: \{0,1\}^* \to [\ell] \}_{q=1}^\eta\). However, now the filter \(B\) is not an \(\ell\)-bit vector but a vector where each element is in \([s \eta]\) (i.e., \(B \in [s\eta]^\ell\))1. Therefore, the number of bits to encode \(B\) is now blown up by a multiplicative factor \(\lceil \lg s\eta \rceil\).

The BF operations are described below where differences are marked by framed boxes.

3.2.2.1 \(\mathsf BF.Insert(B, \alpha)\).

To insert a keyword \(\alpha\), the hash results are added to the filter. In particular,

3.2.2.2 \(\mathsf BF.Check(B, \beta)\).

To check whether a keyword \(\beta\) has been inserted to a BF filter \(B\), one can just check the filter with all hash results. In particular,

It is easy to see that this variant construction enjoys the same properties as the original BF construction.

3.3 Compressed Oblivious Encoding

As our main building block, we introduce a new tool we call Compressed Oblivious Encoding. A compressed oblivious encoding takes as input a large, but sparse, vector and compresses it to a much smaller encoding from which the non-zero entries of the original vector can be recovered. What makes this encoding oblivious is that the encoding procedure is oblivious to the original data; in fact, in our constructions the original data will all be encrypted. An efficient encoding must satisfy the following two performance requirements: 1) The size of the encoding must be sublinear in the size of the original array, and 2) constructing the encoding should be computationally cheap. Our constructions only use (homomorphic) addition and multiplication by constant (i.e. plaintext values).

A related notion is that of compaction over encrypted data [116], [117] which aims to put all non-zero entries of a vector to the front of the encoding. Our encoding can be viewed as a form of noisy compaction where, in addition to keeping all the non-zero entries, it allows a small number of zero entries to be mixed in with the result. Thus, a compressed encoding trades some inaccuracy in the output for much cheaper construction costs.

We define two variants of compressed oblivious encodings, one that encodes the indices of non-zero entries and one that encodes the actual entries themselves.

3.3.1 Compressed Oblivious Index Encoding

A compressed oblivious index encoding (COIE) encodes the indices or locations of all the non-zero entries in the input array. We begin by defining the parameters and syntax for a COIE scheme.

3.3.1.1 Parameters.

A COIE scheme is parametrized as follows.

3.3.1.2 Syntax.

A \((n, s, c, f_p)\)-COIE scheme has the following syntax:

3.3.1.3 Correctness.

Let \((\gamma_1, \ldots, \gamma_c) \leftarrow{\mathsf Dec}(\unicode{x27E6}\gamma_1 \unicode{x27E7}, \ldots, \unicode{x27E6}\gamma_c \unicode{x27E7})\) denote a correct decryption of the encoding.

Definition 2. A \((n, s, c, f_p)\)-COIE scheme is correct, if the following conditions are satisfied:

3.3.1.4 Efficiency.

For efficiency, we look at the following three parameters of a COIE:

For an efficient construction, we require that the latter two of these are sublinear in the size of the input vector.

3.3.2 Compressed Oblivious Data Encoding

A Compressed Oblivious Data Encoding (CODE) scheme is very similar to COIE except, rather than encoding the locations of non-zero entries, it encodes the values of these entries. We give a definition of CODE below where differences are marked by framed boxes.

3.3.2.1 Parameters.

A CODE scheme is parametrized by the same four parameters \((n,s,c,f_p)\) as a COIE.

3.3.2.2 Syntax.

A \((n, s, c, f_p)\)-CODE scheme over has the following syntax:

3.3.2.3 Correctness.

Definition 3. A \((n, s, c, f_p)\)-CODE scheme over domain \(D\) is correct, if the following conditions are satisfied:

3.4 COIE Schemes

We assume the input index vector \(v \in \{0,1\}^n\) is sparse. In particular, throughout this chapter, we assume \(s = o(n)\).

3.4.1 A Warm-up construction

Using an algebraic BF, we can create an \((n, s, c, f_p)\)-COIE scheme (the parameters \(c\) and \(f_p\) will be worked out after the description of the scheme).

3.4.1.1 \(\mathsf{Encode}(\unicode{x27E6}v_1 \unicode{x27E7}, \ldots, \unicode{x27E6}v_n \unicode{x27E7})\).

The encoding algorithm works as follows:

  1. Initialize a BF \(\unicode{x27E6}B \unicode{x27E7}:= (\unicode{x27E6}B_1 \unicode{x27E7}, \ldots, \unicode{x27E6} B_c \unicode{x27E7})\) with \(B_j = 0\) for all \(j\). Let \(\mathcal{H}= \{ h_q: \{0,1\}^* \to [c] \}_{q=1}^\eta\) be the associated hash functions.

  2. For \(i = 1, \ldots, n\):

    1. For \(q = 1, \ldots, \eta\), do the following: Compute \(j = h_q(i)\) and set \(\unicode{x27E6}B_j \unicode{x27E7}:= \unicode{x27E6}B_j \unicode{x27E7}+ \unicode{x27E6}v_i \unicode{x27E7}\).

Note that at step 2.a in the above, if \(v_i = 0\), then \(B_j\) stays the same. On the other hand, if \(v_i = 1\), then \(B_j\) will be increased by 1. This implies that \(B\) will exactly store the results of the operations \(\{ {\mathsf BF.Insert}(B, i) : i \in \mathsf{idx}(v)\}.\)

3.4.1.2 \(\mathsf{Decode}(B_1, \ldots, B_c)\).

Given the algebraic BF \(B\), we can recover the indices for the nonzero elements as follows:

3.4.1.3 Parameters \(c\) and \(f_p\).

Since this is a warm-up construction, we perform only a rough estimation on the false positive parameter and the compactness parameter.

For reasons that will become clear later, we wish to keep the upper bound on the number of false positives (\(f_p\)) small. In particular, we use a BF with false-positive rate \(1/n\). Since there are \(n\) operations of \(\mathsf BF.Check\), the expected number of false positives is 1, and from the Chernoff bound, the number of false positives is bounded by \(\Omega(\log \lambda)\) with overwhelming probability in \(\lambda\). This implies that we have \(f_p = \Omega(\log \lambda).\)

The dimension \(c\) of the Bloom filter \(B\) can be computed using the following equation of BF false positive ratio:

\[\Big(1 - e^{-\frac{\eta s}{c}} \Big)^\eta \le \frac 1 n,\]

Setting \(c = \eta s \cdot n^{\frac 1 \eta}\) will satisfy the equation. This can be verified by using an inequality \(1 - e^{-x} \le x\) for \(x \in [0,1]\); that is, \(1 - e^{-\frac{\eta s}{c}} \le \frac{\eta s}{c} = 1/n^{1/\eta}.\)

3.4.1.4 Efficiency.

In summary, we have reduced the encoding size \(c\) to be sub-linear in \(n\) as desired. However, we still need to reduce the number \(\mathsf BF.Check\) operations in Decode to be sub-linear in \(n\). We show how to achieve that in our next construction.

3.4.2 BF-COIE

We now show how to improve the above construction to achieve decoding in time \(o(n)\). The main idea of this improvement is to use Bloom filters to represent a binary search tree, one BF per level of the tree. We can then guide the decoding algorithm to avoid decoding branches that do not contain non-zero entries. As most branches can be truncated well before reaching the leaf-level Bloom filter, this results in sublinear total cost.

3.4.2.1 Example.

Before presenting the formal protocol for this construction we convey our idea through an example. Let \(n = 32\), and suppose we wish to encode the indices \(I = \{1, 15, 16\}\). Denote \[I^k = \left \{ \Big \lceil \frac i {2^k} \Big \rceil : i \in I \right \}.\]

Intuitively, an element \(i\) in \(I^k\) can be thought of as a range of length \(2^k\) covering \([(i-1)\cdot 2^{k}+1, i\cdot2^k]\). We have:

Now, assume we insert each set \(I^k\) into its own BF. We can traverse these BF’s to decode the set \(I\) as follows:

  1. Check \(I^4\) for all possible indices. The only possible indices at this level are \(1\) and \(2\), since \(n=32\) and \(I^4\) divides the original indices by \(2^4 = 16\).

    In the above example, When we query the BF for \(I^4\), it only contains the index \(1\), which means that no values greater than 16 are contained in \(I\). We can thus avoid checking any such indices at the lower levels.

    Now consider the BF at the next level (i.e., the BF for \(I^3\)). The only possible values at this level are 1,2,3,4, but since we already know that there are no values greater than 16 in \(I\), we only need to check for values \(1, 2\) (since \(3 \cdot 8 > 16\)).

  2. Check \(I^3\) for indices \(1, 2\). The BF will show that indices \(1\) and \(2\) are both present, which means that we need to check indices \(1,2\) and \(3,4\) in \(I^2\).

  3. Check \(I^2\) for indices \(1, 2, 3, 4\). The BF will show that indices \(1\) and \(4\) are present, which means that we only need to check indices \(1, 2\) and \(7, 8\) in \(I^1\), all other indices can be skipped.

  4. Check \(I^1\) for indices \(1, 2, 7, 8\). The BF will show that indices \(1\) and \(8\) are present, which means that we need to check indices \(1, 2\) and \(15, 16\).

  5. Check \(I^0\) for indices \(1, 2, 15, 16\), and output the final present indices \(1, 15, 16\).

Assuming, for now, that there are no false positives, observe that this approach checks at most \(2 \cdot |I|\) values at each level, and there are \(\lg n\) levels. Therefore, the decoding algorithm will check \(O( |I| \cdot \lg n)\) indices, which is sub-linear in \(n\).

3.4.2.2 BF-COIE.

We now describe our BF-COIE construction. As before, we will work out the parameters after describing our construction. The encoding algorithm is described in Algorithm 1.


Algorithm 1.

  1. For simplicity, \(n\) and \(s\) are assumed to be powers of 2.

  2. \(t := \lg {\frac n {2s}}\)

  3. For \(k = 0, \ldots, t\):

    1. Initialize \(\unicode{x27E6}B^k \unicode{x27E7}= (\unicode{x27E6}B^k_1 \unicode{x27E7}, \ldots, \unicode{x27E6} B^k_\ell \unicode{x27E7}) := ({\mathsf{nil}}, \ldots, {\mathsf{nil}})\).

    2. Choose \(\mathcal{H}^k = \{ h^k_q: \{0,1\}^* \to [\ell] \}_{q=1}^\eta\) at random.

    3. For \(i \in [n]\) and for \(q \in [\eta]\):

      1. \(i' := \lceil i/2^k \rceil\), \(j := h^k_q(i')\),
        If \(\unicode{x27E6}B^k_j \unicode{x27E7}\) is \({\mathsf{nil}}\), then \(\unicode{x27E6}B^k_j \unicode{x27E7}:= \unicode{x27E6}v_{i'} \unicode{x27E7}\)
        Otherwise, \(\unicode{x27E6}B^k_j \unicode{x27E7}:= \unicode{x27E6}B^k_j \unicode{x27E7}+ \unicode{x27E6}v_{i'} \unicode{x27E7}\)

  4. Output \(\unicode{x27E6}B^0 \unicode{x27E7}, \ldots, \unicode{x27E6}B^t \unicode{x27E7}\).

\({\mathsf BF\mbox{-}COIE}.\mathsf{Encode}(\unicode{x27E6}v_1 \unicode{x27E7}, \ldots, \unicode{x27E6}v_n \unicode{x27E7})\)


Note that in steps (a) to (c) above, the warm-up construction is used to construct BF \(B^k\) for indices \(I^k\).

In order to reduce the size of the output encoding, we set \(t\) to be \(\lg {\frac n {2s}}\) instead of \(\lg n\) as described previously. Note that when \(t\) is set in this way, \(I^t\) contains at most \(n/2^t = 2s\) possible values thus maintaining our invariant.

The decoding algorithm is described in Algorithm 2.


Algorithm 2.

  1. Initialize \(I, I^0, \ldots, I^{t-1} := \emptyset\)

  2. Initialize \(I^t := \{1, \ldots, n/2^t\} = [2s]\)

  3. For \(k = t, t-1, \ldots, 1\), and for \(i' \in I^k\):
    \(~~~\) If \({\mathsf BF.Check}(B^k, i')\) is “yes", add \(2i'-1\), \(2i'\) in \(I^{k-1}\)

  4. For \(i \in I^0\):
    \(~~~\) If \({\mathsf BF.Check}(B^0, i)\) is “yes", add \(i\) to \(I\)

  5. Output \(I\)

\({\mathsf BF\mbox{-}COIE}.\mathsf{Decode}(B^0, \ldots, B^t)\)


3.4.2.3 Useful lemma.

The following lemma will be useful to analyze the parameters \(c\) and \(f_p\).

Lemma 4. Consider a Bloom filter with false positive rate \(\frac{1}{m}\), where \(m\) is an arbitrary positive integer. Suppose at most \(m\) \(\mathsf BF.Check\) operations are performed in the BF. Then, for any \(\delta > 0\), we have: \[\Pr [ \mbox{\rm \# false positives} \ge 1+\delta] \le {\frac {e^\delta} {(1+\delta)^{(1+\delta)}}}.\]

The proof, by an application of the Chernoff bound, can be found in 8.1.1.

Regarding the above Lemma, we remark that setting \(\delta = \Omega(\log \lambda)\), we have \[\Pr\left[\sum_{i=1}^m X_i \ge 1 + \delta \right] = \mathsf{negl}(\lambda).\]

3.4.2.4 Parameters \(c\) and \(f_p\).

We set the false positive upperbound \(f_p := \Omega(\log \lambda)\) for the BF-COIE scheme. In our experiments, we set \(f_p = 16\).

Now, let \(m = \max(2s, s+2f_p)\), we set the BF false positive rate to \(1/m\). Recall that in the BF-COIE construction, the topmost BF \(B^t\) performs the \(\mathsf BF.Check\) operation with \(2s\) times; see line (2) in Algorithm 2. Using the above Lemma, the number of false positives in the top level BF \(B^t\) is at most \(f_p\) with all but negligible probability in \(\lambda\). Furthermore, the index \(i\) in \(B^t\) is expanded into two indices \(2i-1\) and \(2i\) in \(B^{t-1}\). This means that the number of false indices to be checked in \(B^{t-1}\) due to the false positives in \(B^t\) is at most \(2f_p\).

Now consider an index \(i\) that belongs to \(B^{t}\). Algorithm 2 will run \({\mathsf BF.Check}\) on the values \(2i-1\) and \(2i\) in \(B^{t-1}\). Since at least one of these values must actually belong to \(B^{t-1}\), this leads to at most one false index being checked. Thus, the maximum number of false indices that would be checked in \(B^{t-1}\) is at most \(s + 2f_p\) (i.e., \(2f_p\) from false positives of \(B^t\) and \(s\) from true positives of \(B^t\)).

The above argument applies inductively all the way to the bottom most level, which means that the maximum number of false indices that would be checked in each level BF \(B^i\) will be at most \(s + 2f_p\). In the end, the bottom BF will have at most \(f_p\) false positives, and the overall BF-COIE scheme will have at most \(f_p\) false positives with all but negligible probability in \(\lambda\).

For the compactness parameter \(c\), we must determine the dimension \(\ell\) of each BF. Recall that we set the BF false positive rate to \(1/m\) for \(m = \max(2s, s+2f_p)\):

\[\Big(1 - e^{-\frac{\eta s}{\ell}} \Big)^\eta \le \frac 1 m.\] Setting \(\ell = \eta \cdot s \cdot m^{\frac 1 \eta}\) would satisfy the above condition, which can be verified using an inequality \(1 - e^{-x} \le x\) for \(x \in [0,1]\); that is, \(1 - e^{-\frac{\eta s}{\ell}} \le \frac{\eta s}{\ell} = (1/m)^{1/\eta}.\)

Since the encoding has \(t+1\) BFs, the overall compactness parameter is as follows: \[c = (t + 1) \cdot \ell = O\left ( \eta \cdot s^{1 + \frac 1 \eta} \cdot \lg \frac n s \right ).\]

3.4.2.5 Efficiency.

In summary, assuming \(s = o(n)\), we reduced the encoding size \(c\) to be sub-linear in \(n\). Moreover, we also reduced the number \(\mathsf BF.Check\) operations to be sub-linear in \(n\).

3.4.2.6 Remark.

Although this scheme has multiple BFs, the size of encoding \(c\) is smaller than that of the warm-up scheme! This is because with multiple levels of BFs, we can relax the false positive ratio for each BF. The encoding computation time was increased by a multiplicative factor of \(\lg \frac n s\).

3.4.3 COIE Scheme Based on Power Sums

3.4.3.1 Removing false positives using power sums.

We offer another encoding scheme using quite different techniques that can eliminate the false positives of the prior construction. To achieve this, we abandon Bloom filters, and instead use a power sum encoding, as has been done in several works using DC-Nets for anonymous broadcast FHE.

3.4.3.2 PS-COIE.

We describe a COIE scheme based on power sums, which we call PS-COIE. As before, we will work out the parameters after describing our construction. The encoding algorithm is shown below.


Algorithm 3.

  1. For \(j = 1, \ldots, s\):
    \(~~~\) Compute \(\unicode{x27E6}w_j \unicode{x27E7}= \sum_{i=1}^n i^j \cdot \unicode{x27E6}v_i \unicode{x27E7}\)

  2. Output \(\unicode{x27E6}w_1 \unicode{x27E7}, \ldots, \unicode{x27E6}w_s \unicode{x27E7}.\)

\({\mathsf PS\mbox{-}COIE}.\mathsf{Encode}(\unicode{x27E6}v_1 \unicode{x27E7}, \ldots, \unicode{x27E6}v_n \unicode{x27E7})\)


Note that the values of \(i^j\) (modulo the underlying plaintext modulus) are publicly computable, so computing \(i^j \cdot \unicode{x27E6}v_i \unicode{x27E7}\) only requires scalar multiplication and no homomorphic multiplication.

Recall that \(v_i \in \{0,1\}\). If we let \(I = \{i: v_i = 1\}\) denote the indices of the nonzero elements, then note that \[w_j = \sum_{i=1}^n i^j \cdot v_i = \sum_{i \in I} i^j.\] Therefore, this \(w_j\) is the \(j\)th power sum of the indices. Using the power sums, we present the decoding algorithm in Algorithm 4.


Algorithm 4.

  1. Recall that we have \(w_j = \sum_{x \in I} x^j,\) for \(j = 1, \ldots, s\), and we would like to reconstruct all \(x\)’s in \(I\).

  2. Let \(f(x) = a_s x^s + a_{s-1} x^{s-1} + \cdots + a_1 x + a_0\) denote the polynomial whose roots are the indices in \(I\).

  3. Use Newton’s identities to compute the coefficients of this polynomial \(f(x)\): \[\begin{aligned} a_s &= 1\\ a_{s-1} &= w_1\\ a_{s-2} &= (a_{s-1} w_1 - w_2 )/2\\ a_{s-3} &= (a_{s-2} w_1 - a_{s-1} w_2 + w_3)/3\\ \vdots\\ a_{0} &= (a_{1} w_1 - a_{2} w_2 + \cdots w_s)/s \end{aligned}\]

  4. Extract and output the roots of the polynomial \(f(x)\).

\({\mathsf PS\mbox{-}COIE}.\mathsf{Decode}(\unicode{x27E6}w_1 \unicode{x27E7}, \ldots, \unicode{x27E6}w_s \unicode{x27E7})\)


3.4.3.3 Parameters \(c\) and \(f_p\).

This COIE scheme has no false positives; that is, \(f_p = 0\). The compactness parameter \(c\) is equal to \(s\).

3.4.3.4 Efficiency.

3.5 CODE Scheme

In the previous section, we showed two constructions of COIE schemes for encoding a vector of indices using sublinear storage. We now turn to the construction of CODE schemes, which, instead of encoding the indices of non-zero entries, encode the actual data values.

3.5.0.1 Simplified key-value store.

To construct our CODE scheme, we first construct an auxiliary data structure that supports the following operations:

This data structure is simpler than a typical key-value store since it doesn’t need to find an individual item by key. Note, however, that this is still sufficient to serve our purpose of constructing a CODE scheme.

3.5.1 BF Set

We now show how to instantiate a simplified key-value store using a data structure we call a Bloom filter set (BFS) that is in turn based on the algebraic Bloom filter presented in Section 3.2.2. To insert a pair \((key, value)\), the Bloom filter set stores the actual \(value\) rather than an indicator bit. Items are inserted similar to before, by adding their value to the locations indicated by the hashes of the \(key\).

3.5.1.1 Input data format.

For our construction we make an assumption on the format of the inserted data. Specifically, we assume that all inserted values contain a unique checksum (e.g., a cryptographic hash of the value). We assume that this checksum is sufficiently long that a random sum of checksums does not give a valid checksum except with negligible probability (as a function of \(\lambda)\).

3.5.1.2 Construction.

We first describe the construction of the data structure. We show below how to choose parameters in such a way that the client can extract all the matched items from this Bloom filter, with overwhelming probability.

We note that, as previously proposed by Goodrich [119], it is possible to avoid the checksum by maintaining a counter of the number of values inserted for each location. Then, \({\mathsf BFS.Values}\) only returns values at locations with a counter of 1.

3.5.1.3 Parameters.

We show how to set the Bloom filter parameters to guarantee that all values can be recovered with all but negligible probability. We assume that we know the upper bound \(s\) on the number of inserted values. We prove the following lemma.

Lemma 5. If at most \(s\) values have been inserted in the \(\mathsf BFS\) data structure, then by setting \(\eta\) and \(\ell\) such that \[\ell \ge 2 (s\eta - 1),\] we can recover all \(s\) values with probability at least \(1 - s\cdot(1/2)^\eta\).

Proof. Consider a (key, value) pair \((k_i,\alpha_i)\). We say that this pair has a total collision if every hash position for the pair is also occupied by another inserted key, value pair. In this case, \(\alpha_i\) cannot be recovered. On the other hand, if at least one hash position has no collisions, then we can recover the value. Note that the collision depends on the key \(k_i\) but not the value \(\alpha_i\).

For a given key \(k_i\), we define the event TCOL\((k_i)\): \[{\mathsf TCOL}(k_i) = 1 \textrm{ if } \forall q \in [\eta], \exists (k', q') \ne (k_i,q): h_q(k_i) = h_{q'}(k').\] Here, \(k'\) can be the key of any item that has been inserted in the set. Since the set contains at most \(s\) items, there are at most \(s\) possible keys for \(k'\). Recall also that \(\eta\) hash functions are applied for each item.

Since for each \(k_i\), there are at most \(\eta s - 1\) pairs of \((k', q')\)s that are different from \((k_i,q)\), we can bound the collision probability as follows: \[\Pr[{\mathsf TCOL}(k_i) ] \le \left(\frac{(\eta s-1)}{\ell}\right)^\eta\]

Thus, if we choose \(\eta\) and \(\ell\) such that \(\ell \ge 2 (s\eta - 1)\), we have \[\Pr[{\mathsf TCOL}(k_i) ] \le (1/2)^\eta\]

Taking a union bound over all \(s\) inserted values, we have \[\Pr[ \exists k_i : {\mathsf TCOL}(k_i) ] \le s \cdot (1/2)^\eta.\] ◻

3.5.2 CODE Scheme Based on BF Set

In this section, we construct a CODE scheme. Recall that unlike encoding the indices through a COIE scheme, a CODE scheme encodes data in a compressed manner. The main idea of our construction is simulating the operations of \({\mathsf BFS}\); we call our scheme \(\mathsf BFS\mbox{-}CODE\).

3.5.2.1 Pre-processing the input data.

As mentioned in the description of the BF Set construction, we need to pre-process the input data so that each item is attached with its checksum. Although a data item \(v\) is represented as a single number, it is assumed that \(v\) can be parsed as \(v.val\) for its actual value and \(v.tag\) for its checksum. Moreover, we assume that the checksum is long enough, such that a random linear combination of checksums is only negligibly likely to produce a valid checksum (i.e., \(|checksum| = \omega(\lambda)\)).

We stress that when our CODE scheme is used for secure search, this pre-processing can be performed locally by the client prior to encrypting his data. Moreover, computing checksum adds only a tiny amount of overhead.

3.5.2.2 BFS-CODE.

We now describe our \((n, s, c, f_p)\)-BFS-CODE construction over domain \(D\). As before, we will work out the parameters after describing our construction. The encoding algorithm is shown below.


Algorithm 5.

  1. \(\eta = \lambda+\lg{s}\); \(\ell = 2 (\eta s - 1)\)

  2. Initialize \(\unicode{x27E6}B \unicode{x27E7}= (\unicode{x27E6}B_1 \unicode{x27E7}, \ldots, \unicode{x27E6} B_\ell \unicode{x27E7}) := (\unicode{x27E6}0 \unicode{x27E7}, \ldots, \unicode{x27E6}0 \unicode{x27E7})\).

  3. Choose \(\mathcal{H}= \{ h_q: \{0,1\}^* \to [\ell] \}_{q=1}^\eta\) at random.

  4. For \(i \in [n]\) and for \(q \in [\eta]\):

    1. \(j := h_q(i)\); \(\unicode{x27E6}B_j \unicode{x27E7}= \unicode{x27E6}B_j \unicode{x27E7}+ \unicode{x27E6}v_i \unicode{x27E7}\)

  5. Output \(\unicode{x27E6}B \unicode{x27E7}\).

\({\mathsf BFS\mbox{-}CODE}.\mathsf{Encode}(\unicode{x27E6}v_1 \unicode{x27E7}, \ldots, \unicode{x27E6}v_n \unicode{x27E7})\)


Note that at step 4 in the above, if \(v_i\) is 0, then \(B_j\) stays the same. On the other hand, if \(v_i\) is not 0, \(B_j\) will be increased by \(v_i\). This implies that \(B\) will exactly hold the result of operations \(\{{\mathsf BFS.Insert}(B, \mathcal{H}, i, v_i): i \in \mathsf{idx}(v) \}.\)

The decoding algorithm is simple, and it’s described in Algorithm 6.


Algorithm 6.

  1. Output \({\mathsf BFS.Values}(B)\)

\({\mathsf BFS\mbox{-}CODE}.\mathsf{Decode}(B)\)


3.5.2.3 Correctness.

This is immediate from the additive homomorphism of the underlying encryption scheme and the parameters for the \(\mathsf BFS\). In particular, we set \(\eta = \lambda+\lg{s}\) so that the probability of recovery error is at most \(2^\lambda\).

3.5.2.4 Parameters \(c\) and \(f_p\).

The checksums attached to the data items ensure that we have no false positives with overwhelming probability, that is, \(f_p = 0\). The compactness parameter \(c\) is the dimension \(\ell\) of the BF, which is \(O(\eta s)\).

3.5.2.5 Efficiency.

Since by Lemma 5, the size \(\ell\) of the Bloom filter only depends on the number of matches \(s\) and the number of hash functions \(\eta\), we get that the communication complexity of the above protocol is independent of the database size \(n\).

3.6 Secure Search Protocols

We implement secure search protocols by using compressed oblivious encoding schemes. We begin by defining a relaxed notion of correctness that allows for false positives, as is needed in some of our constructions. We then define security of secure search.

We relax the correctness guarantee to allow the Client to retrieve a superset of the matching records. Specifically, if \(\mathcal{S}\) is the set of indexes matching a Client’s query \(q\), then at the end of the protocol, we require the Client to obtain a set \(\mathcal{S}'\) such that:

We parameterize a secure search scheme by \((\ell, f_p)\), where \(\ell\) is the amortized communication complexity per matching record, and \(f_p\) is the number of “false positives,” as defined above.

To define security of our secure search schemes, we use a game-based security definition similar to that of Akavia et al. [111]. The game is between a challenger and an adversary \(\mathcal{A}\) with regard to a setup-free search scheme, \(\mathsf{sec\mbox{-}search}\), and an FHE scheme, \(\mathsf{FHE}\).

  1. \(\Game\):

  2. The challenger runs a key generation algorithm (with computational security parameter \(\kappa\)) and sends the evaluation key to \(\mathcal{A}\) so that \(\mathcal{A}\) can perform homomorphic additions and multiplications.

  3. \(\mathcal{A}\) chooses either:

    In both cases, we require that the sizes of the two result sets (denoted by \(s\)) are equal.

  4. The challenger samples \(b \leftarrow \{0,1\}\). Then, either

  5. \(\mathcal{A}\) outputs a bit \(b'\)

  6. We say that \(\mathcal{A}\) has advantage \[\mathsf{Adv}_\mathsf{FHE}^\mathsf{sec\mbox{-}search}(\mathcal{A})= |\Pr[b=b']-1/2|.\]

Definition 6. A setup-free \((\ell, f_p)\)-secure search scheme \(\mathsf{sec\mbox{-}search}\) is fully secure if every PPT adversary \(\mathcal{A}\) controlling the server has a negligible advantage \(\mathsf{Adv}_\mathsf{FHE}^\mathsf{sec\mbox{-}search}(\mathcal{A})\le \mathsf{negl}(\kappa)\) in the game above.

3.6.3 From COIE to Secure Search


Algorithm 7.

  1. Client runs the FHE key generation algorithm and encrypts database \(x = (x_1, \ldots, x_n)\) with \(x_i \in \{0,1\}^m\). It then sends \(\unicode{x27E6}x \unicode{x27E7}= (\unicode{x27E6}x_1 \unicode{x27E7}, \ldots, \unicode{x27E6}x_n \unicode{x27E7})\) and the evaluation key to Server.

  2. Client sends an encrypted query \(\unicode{x27E6}q \unicode{x27E7}\).

  3. Server homomorphically evaluates the encrypted query \(\unicode{x27E6}q \unicode{x27E7}\) on each encrypted record. In particular, let \(\unicode{x27E6}b \unicode{x27E7}= (\unicode{x27E6}b_1 \unicode{x27E7}, \ldots, \unicode{x27E6}b_n \unicode{x27E7})\) where \(\unicode{x27E6}b_i \unicode{x27E7}= \unicode{x27E6}q(x_i) \unicode{x27E7}\). Note that \(q(x_i) = 1\) if record \(i\) is a match and is equal to \(0\) otherwise.

  4. Server homomorphically computes \(\unicode{x27E6}s \unicode{x27E7}= \sum_{i=1}^n \unicode{x27E6}b_i \unicode{x27E7}\), and sends to Client for decryption.

  5. Client decrypts \(\unicode{x27E6}s \unicode{x27E7}\) to obtain \(s\), and sends \(s\) to Server.

  6. Server calls COIE.\(\mathsf{Encode}(\unicode{x27E6}b \unicode{x27E7})\) with sparsity parameter \(s\), to obtain an encrypted encoding \(\unicode{x27E6}C \unicode{x27E7}\). It sends \(\unicode{x27E6}C \unicode{x27E7}\) to Client.

  7. Client decrypts \(\unicode{x27E6}C \unicode{x27E7}\) into \(C\) and calls COIE.\(\mathsf{Decode}(C)\) to obtain a set \(\mathcal{S}'\) of size \(s + e\) indexes. If \(e > f_p\), Client aborts. Otherwise, Client adds \(f_p -e\) number of dummy indexes to \(\mathcal{S}'\).

  8. Client runs a PIR protocol with the Server to obtain the records corresponding to the indexes in \(\mathcal{S}'\).

Secure search with a \((n, s, c, f_p)\)-COIE scheme.


We next present our framework for obtaining Secure Search from COIE. The intuition is likely already clear from the previous descriptions: the encrypted client query is applied to the dataset, returning an encrypted bit vector indicating where index matches lie. The server homomorphically computes the hamming weight of this vector, and sends it to the client for decryption. This provides the result set size to the Server, allowing it to encode the result vector in the COIE.3 The encoding is sent to the client for decryption and decoding.

Because the COIE only encodes the indices, and not the data values, we then add a PIR step to fetch the corresponding data. Note that if the COIE scheme admits false positives, it is possible that the number of false positives, and therefore the number of PIR queries, depends on the data, leaking something to the Server. To fix this problem, the client pads the number of PIR queries as follows. It fixes a bound \(f_p\) on the number of false positives, and aborts if the actual number of false positives exceeds this bound. Otherwise, the client uses enough dummy queries to pad the number of PIR queries to \(s+ f_p\).

Theorem 7. Given an FHE scheme, a \((n, s, c, f_p)\)-COIE scheme in the random oracle model, and a PIR scheme in the random oracle model with communication complexity \(\ell_p\) for records in \(\{0,1\}^m\), the construction in Algorithm 7 yields a \((\ell,f_p)\)-secure search scheme for records in \(\{0,1\}^m\) in the Random Oracle Model, where \(\ell = \frac{c\cdot \ell_c + (s+f_p)\cdot \ell_{p}}{s}\), \(\ell_c\) is the length of an FHE ciphertext, and \(s\) is the number of matching records.

Proof. We begin by proving that the adversary cannot distinguish between two different queries. The adversary chooses a database \(x\) and two queries \(q^0\) and \(q^1\), with the promise that \(s = \sum_{i=1}^n q^0(x_i) = \sum_{i=1}^n q^1(x_i)\).

The entire view of the adversary during the experiment can be reconstructed efficiently given (1) the encrypted database \(\unicode{x27E6}x \unicode{x27E7}\) (2) the encrypted query \(\unicode{x27E6}q \unicode{x27E7}\), (3) \(s + f_p\) iterations of the PIR protocol, requesting indexes in \(\mathcal{S}'_b\), where \(s\) is the number of matching records.

Since the value of \(s\) is the same for \(q^0\) and \(q^1\), the two things that change in the view of the adversary when switching from \(b = 0\) to \(b=1\) are (1) the encrypted query \(\unicode{x27E6}q^b \unicode{x27E7}\) (2) the set of indexes \(\mathcal{S}'_b\) (but not the number) requested during the PIR step.

We also note that the experiment only aborts when the number of received false positives \(e\) is greater than the bound \(f_p\), which only happens with probability \(\mathsf{negl}(\lambda)\) for a statistical security parameter \(\lambda\). Thus, we ignore this possibility in the following.

We can now proceed via a standard hybrid argument:

We conclude that the probability the adversary outputs \(0\) or \(1\) differs by a negligible amount when \(b=0\) versus \(b=1\). Therefore, the advantage of the adversary in guessing \(b\) is negligible.

The proof that the adversary cannot distinguish between the same query applied to two different databases follows nearly identically. ◻

3.6.4 From CODE to Secure Search

We next present our framework for obtaining Secure Search from CODE.


Algorithm 8.

  1. Client runs the FHE key generation algorithm and encrypts database \(x = (x_1, \ldots, x_n)\) with \(x_i \in D\). It then sends \(\unicode{x27E6}x \unicode{x27E7}= (\unicode{x27E6}x_1 \unicode{x27E7}, \ldots, \unicode{x27E6}x_n \unicode{x27E7})\) and the evaluation key to Server.

  2. Client sends an encrypted query \(\unicode{x27E6}q \unicode{x27E7}\).

  3. Server homomorphically evaluates the encrypted query \(\unicode{x27E6}q \unicode{x27E7}\) on each encrypted record. In particular, let \(\unicode{x27E6}b \unicode{x27E7}= (\unicode{x27E6}b_i \unicode{x27E7}, \ldots, \unicode{x27E6}b_n \unicode{x27E7})\) where \(\unicode{x27E6}b_i \unicode{x27E7}= \unicode{x27E6}q(x_i) \unicode{x27E7}\). Note that \(q(x_i) = 1\) if record \(i\) is a match and is equal to \(0\) otherwise.

  4. Server homomorphically computes \(\unicode{x27E6}s \unicode{x27E7}= \sum_{i=1}^n \unicode{x27E6}b_i \unicode{x27E7}\) and sends \(\unicode{x27E6}s \unicode{x27E7}\) to Client.

  5. Client decrypts \(\unicode{x27E6}s \unicode{x27E7}\) to obtain \(s\) and sends it back to the Server.

  6. Server computes \(\unicode{x27E6}d_i \unicode{x27E7}= \unicode{x27E6}b_i \unicode{x27E7}\cdot \unicode{x27E6}x_i \unicode{x27E7}\) for \(i \in [n]\). Then, it applies CODE.\(\mathsf{Encode}(\unicode{x27E6}d_1 \unicode{x27E7}, \ldots \unicode{x27E6}d_n \unicode{x27E7})\) with sparsity parameter \(s\), to obtain an encrypted encoding \(\unicode{x27E6}C \unicode{x27E7}\). It sends \(\unicode{x27E6}C \unicode{x27E7}\) to Client.

  7. Client decrypts \(\unicode{x27E6}C \unicode{x27E7}\) to \(C\) and decodes \(C\) to obtain a set \(\mathcal{S}\) of size \(s\) matching records.

Secure search with a \((n, s, c, f_p)\)-CODE scheme.


Theorem 8. Given an FHE scheme, and a \((n, s, c, f_p)\)-CODE scheme over domain \(D\) in the random oracle model, the construction in Algorithm 8 yields a \((\ell, f_p)\)-secure search scheme for records in domain \(D\) in the random oracle model, where \(\ell = \frac{c(s)\cdot \ell_c}{s}\), \(\ell_c\) is the length of an FHE ciphertext with plaintext space \(D\), and \(s\) is the number of matching records.

The proof is similar to the COIE-based scheme and can be found in 8.1.2.

3.6.4.1 On the use of homomorphic multiplication.

As described, our CODE-based search scheme uses \(n\) homomorphic multiplications to create the vector \(\unicode{x27E6}d \unicode{x27E7}\). However, it may be the case that this vector is already produced as part of the match step, for example for arithmetic queries. In this case, our CODE scheme requires no further homomorphic multiplications.

3.6.4.2 On volume attacks.

In our secure search schemes, the client sends the number \(s\) of matching records to the server so that the server can create an oblivious compressed encoding. One recent line of works has developed attacks using volume leakage (e.g., [120], [121], [122]), and these types of attacks can be applied to our scheme in theory.

In our scheme, the volume attacks can be mitigated by hiding \(s\) in a differentially private manner. In particular, the client can add a small amount of noise to \(s\) before sending it to the server. A similar approach was used in previous work e.g., [123].

3.7 Evaluation

3.7.1 Fetch time

We implemented our search protocols based on BF-COIE, PS-COIE, and BFS-CODE schemes. All protocols were implemented using PySEAL [124], which is a Python wrapper of the Microsoft research SEAL library (version 3.6) [125] using the BFV encryption scheme [126]. We instantiated a single-server PIR protocol in our construction using SealPIR [127]. For the root finding step of the decoding procedure in PS-COIE, we use an implementation based on SageMath 9.2 [128].

3.7.1.1 Measuring the Fetch step.

Our search framework improves the overall search time by executing the Match step only once, while the LEAF protocol must execute the Match step \(s\) times. However, since we do not optimize the Match step itself over prior work, we focus on measuring the cost of the Fetch procedure. That is, our experiments measure the time from when the server holds encrypted query results, i.e., \((\unicode{x27E6}b_1 \unicode{x27E7}, \ldots, \unicode{x27E6}b_n \unicode{x27E7})\) with \(b_i \in \{0,1\}\), to when the client recovers all \(s\) records matching the query. Specifically, we measure the cost of steps 4 and up in Algorithms 7 and 8. Similarly, for LEAF+, we only measure the cost of the Fetch step.

3.7.1.2 Database.

To measure the performance of our protocols, we run experiments with database size \(n\) ranging from 1000 to 100,000 data items and the result set size \(s\) set to between 8 and 128. As in the LEAF+ experiments [112], all data items are \(16\)-bit integers.

3.7.1.3 BF-COIE parameters.

For the BF-COIE secure search, we set the parameters as indicated in Section 3.4.2.

3.7.1.4 BFS-CODE parameters.

For BFS-CODE secure search, with \(\lambda= 40\), the number of hash functions \(\eta\) is set to \(\lambda+\lg{s}\), and the Bloom filter size is set to \(2(\eta s - 1)\). Additionally, each data item is attached with a 40-bit checksum to guarantee a \(2^{-\lambda}\) probability of collision. We used SHA2 to compute a checksum.

3.7.1.5 Implementing LEAF+.

For a comparison we also implemented the fetch step of the LEAF+ protocol [112], since their implementation is not publicly available.

Their protocol has \(O(\log \log n)\) depth of multiplications. Therefore, they have to use bootstrapping techniques to reduce the accumulated noise. However, SEAL doesn’t provide a method for bootstrapping, and we suspect that they added a customized implementation of bootstrapping on top of SEAL. Unfortunately, their implementation is not available.

We address this issue by choosing to ignore the time for bootstrapping when we measure the running time of our implementation of LEAF+. Of course, our implementation doesn’t output the correct results, but the measured running time will be shorter than the actual running time. Therefore, we believe that this measured time serves as a good baseline.

3.7.1.6 Experiment environments.

All our experiments were performed on an Intel®Core 9900k @4.7GHz with 64GB of memory. For fair comparison, the test was performed on a single thread with no batching optimizations for computation. Networking protocol between server and clients is a 1Gbps LAN.

Fetch time vs. Database size with \(s=16\).

3.7.1.7 Results: Fetch time vs. database size.

Figure 3 shows the performance of our protocols as a function of database size, while the result set size \(s\) is fixed to 16. However, for LEAF+, we plot the time for fetching only a single record, since fetching \(s\) records takes too long. In our implementation of LEAF+, fetching even a single record when \(n=10,000\) requires 1872 seconds. We note that the authors of LEAF+ report about 60 seconds for a single fetch [112]. We conjecture that they parallelize the scheme with 32 threads. Here, we only use a single thread.

All three of our protocols greatly outperform LEAF+. Looking at BF-COIE in particular:

The time for all three of our protocols is dominated by the server’s computation during encode, which grows linearly with the DB size.

Since the number of hash functions \(\eta\) is larger in the BFS-CODE protocol than in BF-COIE protocol, the encoding step of this protocol takes longer.

Fetch time vs. Result set size with \(n=10,000\).

3.7.1.8 Results: fetch time vs. the result set size.

Figure 4 shows the performance of our protocols as a function of the result set size \(s\) while \(n\) is fixed to \(10,000\). Here, again the performance is dominated by the encoding step, but the relative costs have changed. Due to the need to compute more power sums, the PS-COIE protocol performs worse than BF-COIE and BFS-CODE when \(s\) becomes moderately large.

The time used for transmitting the data over network (green in Figure 4) increases for larger \(s\). However, it still remains small for all three schemes. In the scenario of having lower network bandwidth, batching is recommended to pack a vector of ciphertexts into a single ciphertext with relatively low computation overhead. We discuss communication costs further in Section 3.7.3.

3.7.2 Overall Running Time

Although we do not optimize the Match step itself over prior work, we provide an estimated comparison of the running time for the end-to-end flow.

Our search framework improves the overall search time by executing the Match step only once, while the LEAF protocol must execute the Match step \(s\) times. Based on this, we can extrapolate the running time as follows:

Although the implementation (or the algorithm) of the matching step of LEAF protocol is not available in [112], we expect that it holds \({\mathsf MT}({\mathsf LEAF}) \approx {\mathsf MT}({\mathsf BF\mbox{-}COIE})\). In the experiment performed in LEAF (see Figure 9 in [112]), we have \(m = \frac{ {\mathsf MT}({\mathsf LEAF})}{{\mathsf FT}({\mathsf LEAF})} \approx 1.5\). For \(s=16\), setting \({\mathsf FT}({\mathsf LEAF}) = 1800 \cdot {\mathsf FT}({\mathsf BF\mbox{-}COIE})\) based on the above discussion, we can estimate the speed-up as follows: \[\frac {Time({\mathsf LEAF})}{Time({\mathsf BF\mbox{-}COIE})} = \frac{ s \cdot (m + 1) } { m + 1/1800}.\] Thus, with \(s = 16\), we estimate that our BF-COIE scheme has roughly 26X end-to-end speed-up.

3.7.3 Communication

We now look at the communication required by each of our schemes and by LEAF+. Figure 5 shows the network cost of the protocols when the result set size \(s\) is 16 and the size of the database is \(n=10,000\). In our implementations, the length of an FHE ciphertext is approximately 103KB and the communication cost of PIR is approximately 369KB.

LEAF+ BF-COIE PS-COIE BFS-CODE
#ct’s \(704\) \(1323\) \(17\) \(1321\)
#PIR 0 32 16 0
#ct’s (w/ batching) \(32\) \(2\) \(2\) \(2\)
The communication costs (\(n=10,000\) and \(s=16\)).

To explain this table, we first need to explain how we determined the costs of LEAF+ and PIR.

We can now compare the communication costs based on rows 1 and 2 of Figure 5. We see that the communication of BF-COIE and BFS-CODE are roughly twice that of LEAF+, while PS-COIE requires almost 10X less communication. The extra communication needed by BF-COIE and BFS-CODE can likely be offset by the much lower round complexity required by our protocol since the latency costs are likely higher than the cost for the extra bandwidth.

3.7.3.1 Reducing communication using ciphertext batching.

We now describe an optimization to significantly reduce the communication of our protocols at the cost of slightly increased server computation. SEAL allows thousands of encrypted values to be packed together into a single ciphertext. This allows us to pack the ciphertexts in all of our protocols into just a single ciphertext to be sent from the server to the client. However, this does require the server to do some additional computation to pack the ciphertexts prior to sending them. We experimentally measured this packing, and it requires approximately 3 seconds on a single threaded machine.

LEAF+ can also take advantage of packing to reduce the communication of their protocols. However, since the results must be returned one at a time, the best LEAF+ can do is to pack all ciphertexts that are sent in each round, resulting in a total of 32 ciphertexts.

We note that the cost of PIR is unchanged by this modification. Thus, with the packing optimization, the communication of BFS-CODE is roughly 1/16 of the communication needed by LEAF+, but BF-COIE and PS-COIE require approximately 4X and 2X more communication than LEAF+ respectively when SealPIR is used; however, when SealPIR+ is used, both schemes have slightly less communication than LEAF+.

3.8.1.1 Secure pattern matching (SPM) on FHE-encrypted data.

In SPM, given an encrypted query \(\unicode{x27E6}q \unicode{x27E7}\) and \(n\) FHE-encrypted data items \((\unicode{x27E6}x_1 \unicode{x27E7}, \ldots, \unicode{x27E6}x_n \unicode{x27E7})\), it returns a vector of \(n\) ciphertexts \(\unicode{x27E6}b_1 \unicode{x27E7}, \ldots, \unicode{x27E6}b_n \unicode{x27E7}\), where \(b_i\) indicates whether the \(i\)th data element is a match [4], [5], [6], [7]. Their works focus on optimizing the search circuits to determine whether a data item matches the query, and therefore the communication complexity and client’s running time are proportional to the number of data items. Our work focuses on the orthogonal problem of optimizing the retrieval of the matched data items with sublinear communication and client computation.

3.8.1.2 Searchable encryption (SE).

Searchable encryption [8], [9] allows highly efficient search (usually in \(o(n)\) time) over encrypted data. Efficient SE schemes have been proposed for a wide variety of queries including equality queries [10], [11], range queries [12], [13], and conjunctive queries [14], [15]. However, to achieve sublinear query performance, SE schemes require significant preprocessing and relax security, allowing some partial information about the queries and data (e.g. access patterns) to leak to the server. For a recent survey on SE constructions and security, see Fuller et al. [16]. In contrast, our work focuses on achieving preprocessing-free secure constructions, leaking nothing about the queries or results other than their sizes.

3.8.1.3 Property Preserving Encryption (PPE).

As a different approach, property-preserving encryption [17] produces ciphertexts that maintain certain relationships (e.g., equality, and order) of the underlying plaintexts. This allows queries to be performed over ciphertexts in the same way that they can be carried out over plaintexts. Examples of PPE include deterministic encryption [18] allowing equality queries, and order-preserving encryption [19], [20] allowing range queries. However, it has been shown [21], [22], [23] that such property-preserving ciphertexts leak a lot of information about the underlying plaintexts. See [16] for a survey of constructions and attacks.

3.8.2 General Techniques

3.8.2.1 Private information retrieval (PIR).

PIR allows the client to choose the index \(i\) and retrieve the \(i\)th record from an untrusted server while hiding the index \(i\) [24]. However, this protocol by itself provides only a limited search functionality requiring the client to know the index of the data to retrieve. In this work, we aim at protocols supporting any arbitrary search functionality.

3.8.2.2 Secure multi-party computation (MPC).

Secure two-party computation [25], [130] allows players to compute any function of their private inputs without compromising privacy of their inputs. For example, the client and the server can run a protocol for secure two-party computation to solve the secure search problem. While there has been much progress in improving efficiency of MPC protocols, such protocols still require \(\Omega(n)\) communication and \(\Omega(n)\) client computation per query. In this work, we aim to achieve protocols with sublinear communication and client work.

3.8.2.3 Oblivious RAM (ORAM) and Oblivious data structure (ODS).

ORAM [26] is a protocol which allows a client to store an array of \(n\) items on an untrusted server and to access an item obliviously, that is, hiding contents and which item is accessed (i.e., the access pattern). Likewise, ODS [107] allows the client to store and use a data structure obliviously. One could implement secure search by utilizing an ODS for a search tree. However, ODS constructions typically need \(\Omega(\log^2 n)\) rounds for each operation. In this work, we aim at achieving a constant round protocol.

3.9 Conclusion

We have presented several new constructions of secure search based on fully homomorphic encryption. Prior constructions were inherently sequential, returning only a single record from the result set, and requiring a new query from the client that depended on the index of the previous match. We have demonstrated several new methods for encoding the entire result set at one time, removing the added rounds, and allowing the server work to be parallelized. Additionally, we have shown that this can be done without homomorphic multiplication, ensuring low computational cost at the server. Finally, we have implemented our constructions, and demonstrated up to three orders of magnitude speed-up over prior work. Additionally, we introduced the notion of compressed oblivious encoding which may be of independent interest.

4 Secure Collaborative Sampling

4.1 Introduction

Random sampling is an important tool when computing over massive data sets. It has wide application in generating small summaries of data, and serves as a key building block in the design of many algorithms and estimation procedures. In particular, \(L_p\) sampling has been used to develop important streaming algorithms such as the heavy hitters, \(L_p\) norm estimation, cascaded norm estimation, and finding duplicates in data streams [29], [30], [131], [132].

In this work, we introduce and explore the problem of private two-party sampling. We consider a setting in which two parties would like to sample from a distribution whose probability mass function is distributed across the two parties. Specifically, we assume parties \(P_1\) and \(P_2\) each hold \(n\)-dimensional vectors \(\boldsymbol{w}_1 = (w_{1,1}, \ldots, w_{1,n})\) and \(\boldsymbol{w}_2 = (w_{2,1}, \ldots, w_{2,n})\) respectively where every \(w_{b,j}\) is non-negative. These vectors each represent a (possibly non-normalized) probability mass function of a distribution. Specifically, for \(b \in \{1,2\}\), \(i \in [n]\), the non-negative value \(\frac{w_{b,i}}{||\boldsymbol{w}_b||_1}\) represents the probability mass placed by distribution \(\mathcal{D}_b\) on element \(i\). We assume that the dimension \(n\) is very large, and our goal is to obtain secure sampling protocols with communication that is sub-linear in \(n\).

We consider various ways of deriving the probability mass function \(\mathcal{D}\) of the joint distribution from the two individual probability mass functions. Specifically, we consider:

Realizing these sampling functionalities securely is immediate via generic 2PC techniques, but the resulting protocols will require communication that is linear in the input length. With sublinear communication, however, it is unclear how to perform some of these tasks (or whether it is even possible to do so), even with an insecure protocol. We give a (partial) characterization of when such sublinear sampling is possible, and give secure protocols for realizing these functionalities where possible.

4.1.0.1 Product sampling and the exponential mechanism.

While \(L_1\) and \(L_2\) sampling are well-studied, to the best of our knowledge, we are the first to consider the notion of product sampling. We describe a concrete, independent application for this new notion:  product sampling can be used to implement a distributed version of the well-known exponential mechanism for differentially-private data release [133].

4.1.1 Our Work

We explore the problems described above, providing multiple two-party protocols, all with sub-linear communication, in the semi-honest security model. We note that our protocol for product sampling has additional leakage, beyond what is revealed by the sampling functionality. We characterize exactly what this leakage is, and provide evidence that similar leakage is necessary to achieve sublinear communication. Specifically, we show the following.

4.1.1.1 \(L_1\) sampling.

We begin by constructing a two-party protocol for \(L_1\) sampling that relies on fully homomorphic encryption (FHE). The main idea behind the protocol is to obliviously sample from each of the two parties inputs independently, and then to securely choose one of the two samples using an appropriately biased coin toss. The results are described in Section 4.3.

4.1.1.2 \(L_2\) sampling.

We also provide a protocol for secure \(L_2\) sampling that relies on fully homomorphic encryption (see Section 4.4). In this case, however, achieving \(L_2\) sampling is non-trivial. In fact, even relying on FHE, it is not immediately clear how to compute \(\|\boldsymbol{w}_1 + \boldsymbol{w}_2\|^2_2\) with sublinear communication.

Surprisingly, our \(L_2\) sampling protocol runs in constant rounds and with \(\tilde O(1)\) communication5. Interestingly, it does not require us to compute \(\|\boldsymbol{w}_1 + \boldsymbol{w}_2\|^2_2\). To achieve this, we developed a novel technique called “corrective sampling”, which we overview in the next subsection. We note that our techniques straightforwardly extend to \(L_p\) sampling, for constant \(p\).

4.1.1.3 Product sampling.

We then turn to product sampling. We assume, without loss of generality, that the vectors \(\boldsymbol{w}_b\) are normalized (see Section 4.5 for justification).

We first begin with a communication lowerbound, demonstrating that product sampling with sublinear communication is impossible, even without privacy guarantees, if the two input distributions are insufficiently correlated (i.e., \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2\rangle = o(\frac{1}{n^2})\)). We show this through a reduction from the Set Disjointness problem.

Knowing this lowerbound, we consider the problem under a promise that the input vectors are sufficiently correlated. Assuming that \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2\rangle = \omega(\frac{\log n}{n})\), we provide a two-party protocol for secure product sampling leaking (at most) the inner product of the two parties’ inputs. We note that the promise itself leaks some information, so some leakage here is inevitable. Interestingly, we observe that the protocol can be modified to provide a trade-off between the communication cost and the leakage. We also discuss why this trade-off is inherent.

4.1.1.4 Constant round product sampling.

Our product sampling protocol has a round complexity that depends on the inner product. In Section 4.6, we show how to make our construction constant round while incurring small additional leakage. Importantly, we must do this without computing the exact inner product which itself requires \(O(n)\) communication [134].

4.1.1.5 Two party exponential mechanism.

As mentioned previously, one important application of product sampling is the exponential mechanism for providing differential privacy [133]. In Section 4.7, we describe this application in detail.

For this particular application we face an additional challenge: the leakage of \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2\rangle\) that we relied on for achieving sub-linear communication in product sampling does not preserve differential privacy. To overcome this issue, we construct a new, differentially-private approximation for inner product, and show how to use this for building a sub-linear communication secure computation of the exponential mechanism.

4.1.2 Technical Overview

In the following, we overload notation and let \(\mathcal{D}\) denote a distribution as well as its probability mass function. As discussed previously, we consider the case where a probability mass function is distributed across two parties, and the parties would like to securely sample from the corresponding distribution. We consider several ways in which the probability mass function can be distributed across the two parties.

4.1.2.1 \(L_1\) sampling of convex combinations.

In this case, party 1 (resp. party 2) holds a vector \(\boldsymbol{w}_1\) (resp. \(\boldsymbol{w}_2\)), indexed from \(1\) to \(n\). For \(i \in [n]\), \(w_{1,i}/||\boldsymbol{w}_1||_1\) (resp. \(w_{2,i}/||\boldsymbol{w}_2||_1\)) corresponds to the probability mass of \(i\) under distribution \(\mathcal{D}_1\) (resp. \(\mathcal{D}_2\)). The goal of the parties is to sample from the distribution \(\mathcal{D}\), defined as follows for \(i \in [n]\): \[\begin{aligned} \mathcal{D}[i] &:= \frac{||\boldsymbol{w}_1||_1}{||\boldsymbol{w}_1||_1 + ||\boldsymbol{w}_2||_1} \cdot \frac{w_{1,i}}{||\boldsymbol{w}_1||_1} + \frac{||\boldsymbol{w}_2||_1}{||\boldsymbol{w}_1||_1 + ||\boldsymbol{w}_2||_1} \cdot \frac{w_{2,i}}{||\boldsymbol{w}_2||_1}\\ &= \frac{||\boldsymbol{w}_1||_1}{||\boldsymbol{w}_1||_1 + ||\boldsymbol{w}_2||_1} \cdot \mathcal{D}_1[i] + \frac{||\boldsymbol{w}_2||_1}{||\boldsymbol{w}_1||_1 + ||\boldsymbol{w}_2||_1} \cdot \mathcal{D}_2[i] \end{aligned}\] Note that the target distribution \(\mathcal{D}\) is a convex combination of the distributions \(\mathcal{D}_1\) and \(\mathcal{D}_2\) held by the two parties.

A potentially straightforward sampling protocol is to therefore have party \(1\) locally draw a sample \(i_1\) from \(\mathcal{D}_1\), party \(2\) locally draw a sample \(i_2\) from \(\mathcal{D}_2\), and then run a secure two party computation that outputs \(i_1\) with probability \(\frac{||\boldsymbol{w}_1||_1}{||\boldsymbol{w}_1||_1 + ||\boldsymbol{w}_2||_1}\) and \(i_2\) with probability \(\frac{||\boldsymbol{w}_2||_1}{||\boldsymbol{w}_1||_1 + ||\boldsymbol{w}_2||_1}\).

This protocol clearly has sublinear communication, but it unfortunately does not securely realize the ideal functionality. The reason is as follows: conditioned on the ideal functionality outputting a certain index \(i^*\), the probability that \(i^*\) was drawn by party \(1\) (resp. party \(2\)) is \(\frac{w_{1,i^*}}{w_{1,i^*} + w_{2,i^*}}\) (resp. \(\frac{w_{2,i^*}}{w_{1,i^*} + w_{2,i^*}}\)). Thus, if the simulator receives \(i^*\) from the ideal functionality and has to simulate the view of party \(1\), it needs to set \(i_1 = i^*\) with probability \(\frac{w_{1,i^*}}{w_{1,i^*} + w_{2,i^*}}\) and set \(i_1 \neq i^*\) with probability \(\frac{w_{2,i^*}}{w_{1,i^*} + w_{2,i^*}}\). However, the simulator is not able to simulate these probabilities correctly, since it does not know \(w_{2,i^*}\).

To get around this issue we therefore have the parties sample \(i_1\) and \(i_2\) obliviously. To do this with sublinear communication, we can use fully homomorphic encryption (FHE). Specifically, to sample \(i_1\), player 1 first encrypts his input \(\boldsymbol{w}_1\) using an FHE scheme for which he does not know the secret key. The players then jointly choose a random value \(r \in [0,||\boldsymbol{w}_1||_1)\). Player 1 then uses the homomorphic operations to find the value \(i_1\) chosen by this \(r\), and the parties use threshold decryption to recover a secret sharing of \(i_1\). The parties reverse roles to sample \(i_2\). Details of this construction are provided in Section 4.3.

Additionally, an alternative construction that uses sub-linear OT for the oblivious sampling is provided in Section 4.3.4.

4.1.2.2 \(L_2\) Sampling of component-wise sum.

In this case, party 1 (resp. party 2) holds a vector \(\boldsymbol{w}_1\) (resp. \(\boldsymbol{w}_2\)), indexed from \(1\) to \(n\). The goal of the parties is to sample from the distribution \(\mathcal{D}\) defined as follows for \(i \in [n]\): \[\mathcal{D}[i] := \frac{(w_{1,i} + w_{2,i})^2}{||\boldsymbol{w}_1 + \boldsymbol{w}_2||_2^2}.\]

We present a protocol that samples from this distribution with \(\tilde{O}(1)\) communication. This protocol relies on a novel technique that we call “corrective sampling”, which is an interesting type of rejection sampling. In what follows, we describe an insecure version of our protocol to give the intuition behind it. To make it secure, we carry out the corrective sampling under FHE as described in Protocol 13.

The main challenge that we face here, unlike in the case of \(L_1\) sampling, is that it is impossible to compute \(||\boldsymbol{w}_1 + \boldsymbol{w}_2||_2^2\) (and therefore impossible to compute \(\mathcal{D}[i]\) for each \(i\)) with sublinear communication [134]. Instead, we sample index \(i\) from a different, related, distribution, which is easy to sample with sub-linear communication. We then show that we can efficiently correct this distribution by rejecting with the appropriate probability. Interestingly, we show that corrective rejection, which depends on the index \(i\), doesn’t require us to explicitly compute \(||\boldsymbol{w}_1 + \boldsymbol{w}_2||_2^2\). In fact, the parties never learn the corrective term at all!

First, as in rejection sampling, corrective sampling proceeds in trials and in each trial, for every \(i\), the probability that the protocol successfully samples index \(i\) is \(\alpha \cdot {\cal D}[i]\) for some unknown constant \(0 < \alpha < 1\). Since the same constant \(\alpha\) is applied to every index \(i\), by repeating the trials, the protocol samples index \(i\) correctly without skewing the distribution \(\mathcal{D}\). The expected number of trials is \(1/\alpha\). We therefore need to keep \(1/\alpha \in {O}(1)\) to reach our target communication complexity.

As mentioned above, we observe that the protocol never has to explicitly compute \(\alpha\). Towards describing how this is done, first note that in \({\cal D}[i]\), the denominator, \(||\boldsymbol{w}_1 + \boldsymbol{w}_2||_2^2\) – which we assume for purposes of this exposition is at least \(1\) – is the same for every \(i\), so it can be pushed into \(\alpha\) without impacting the discussion above: letting \(\alpha' = \alpha/(||\boldsymbol{w}_1 + \boldsymbol{w}_2||_2^2)\), it suffices to implement rejection sampling with a protocol that samples index \(i\) with probability \(\alpha'\cdot (w_{i,1} + w_{i,2})^2\) = \(\alpha \cdot {\cal D}[i]\). This protocol would only need to explicitly compute \((w_{i,1} + w_{i,2})^2\) (which can be done efficiently given \(i\)), but not \(\alpha'\).

Unfortunately, this does not quite work. \(||\boldsymbol{w}_1 + \boldsymbol{w}_2||_2^2\) can be very large, which would then make \(1/\alpha'\) large. We therefore must combine the above with another idea to ensure that our corrective term introduces at most a \({O}(1)\) overhead.

We achieve this by having each trial of the protocol work as follows:

  1. It samples index \(i\) from distribution \(\mathcal{D}_{\mathrm{ignore}}\), which is easy to sample. We note that the contribution of this distribution will be eventually canceled out through rejection. In particular, we choose the following distribution for \(\mathcal{D}_{\mathrm{ignore}}\): \[{\cal D}_\mathrm{ignore}[i] := \frac{w^2_{1,i} + w^2_{2,i}}{\mathsf{denom}},\] where we set \(\mathsf{denom}= ||\boldsymbol{w}_1||_2^2 + ||\boldsymbol{w}_2||_2^2\) to make the distribution well-defined. Note that \(\mathsf{denom}\) can be computed with \(\tilde O(1)\) communication.

  2. After sampling \(i\) from \({\cal D}_\mathrm{ignore}\), the protocol computes a “corrective bias” for a coin flip that is dependent on \((w_{1,i} + w_{2,i})^2\). We stress that once \(i\) is determined, computing \((w_{1,i} + w_{2,i})^2\) is easy. In particular, a coin is flipped with the following bias: \[\Pr[ coin | i] := \frac{(w_{1,i} + w_{2,i})^2}{2 \cdot {\cal D}_\mathrm{ignore}[i] \cdot \mathsf{denom}}\]

Overall, this makes sure that the probability that each trial outputs index \(i\) is \[{\cal D}_\mathrm{ignore}[i] \cdot \Pr[coin|i] = \frac{(w_{1,i} + w_{2,i})^2}{2 \cdot \mathsf{denom}} = \alpha \mathcal{D}[i],\] where \(\alpha = \frac{||\boldsymbol{w}_1 + \boldsymbol{w}_2||_2^2}{2 \cdot \mathsf{denom}}\).

To conclude that this is a valid and efficient sampling procedure, we need to show the following:

We extend our techniques to the setting of \(L_p\) sampling for constant \(p\) in Section 4.4.4.

4.1.2.3 Product sampling.

In this case, party 1 (resp. party 2) holds a normalized vector \(\boldsymbol{w}_1\) (resp. \(\boldsymbol{w}_2\)), indexed from \(1\) to \(n\). For \(i \in [n]\), \(w_{1,i}\) (resp. \(w_{2,i}\)) corresponds to the probability mass of \(i\) under distribution \(\mathcal{D}_1\) (resp. \(\mathcal{D}_2\)).6 The goal of the parties is to sample from the distribution \(\mathcal{D}\) defined as follows for \(i \in [n]\): \[\mathcal{D}[i] := \frac{w_{1,i} \cdot w_{2,i}}{\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle}.\]

We begin by noting (via a simple reduction from Set Disjointness) that it is impossible to achieve sublinear product sampling when no restrictions are placed on the inputs \(\boldsymbol{w}_1, \boldsymbol{w}_2\). We further show (via a more complex reduction from Set Disjointness) that for every protocol \(\Pi\) (parametrized by dimension \(n\)) that correctly samples from \(\mathcal{D}\), there are inputs \(\boldsymbol{w}_1 := \boldsymbol{w}_1(n), \boldsymbol{w}_2 := \boldsymbol{w}_2(n)\), with \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle \in \Omega(1/n^2)\), that require linear communication complexity. See Section 4.5.1 for details.

This means that in order to achieve sublinear communication complexity, we would need–at the minimum–a promise on the inputs that guarantees that \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle \in \omega(1/n^2)\). We then present a protocol that has the following properties:

The idea for the protocol is the following. The protocol proceeds in rounds: in round \(j\), party 1 and 2 obliviously sample values \(i_1, i_2\) from \(\mathcal{D}_1, \mathcal{D}_2\), respectively (as described for \(L_1\) sampling). Then the parties run a secure protocol that checks whether \(i_1 = i_2\). If yes, they output \(i_1\). Otherwise, the parties repeat the process in the next round.

The main technical portion of our security analysis is to show that the number of rounds (which is the only information leaked) is distributed as a geometric distribution with success probability \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\). This implies that the expected number of rounds is \(1/\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\), and furthermore, it implies that a simulator who knows \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\) can simulate the terminating round by making a draw from this geometric distribution. See Section 4.5.2 for more details. There, we also describe how we can pad the communication cost to the worst-case, which depends on the given promise, thereby removing the leakage of \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\).

4.1.2.4 Product sampling in constant rounds.

The protocol presented above for product sampling required a large number of rounds stemming from the iterative rejection sampling procedure. We now consider how to parallelize this process. To do so, we need to compute the inner product in order to determine, a priori, how many samples will suffice. However, computing this value requires \(O(n)\) communication [134]!

The natural thing to do is therefore to use an approximation to the inner product that can be computed with sublinear communication. However, when replacing an exact computation of a function \(f(\boldsymbol{w}_1, \boldsymbol{w}_2)\) with an approximation \(\tilde{f}(\boldsymbol{w}_1, \boldsymbol{w}_2; r)\), one needs to be careful that more information is not leaked by the output. Specifically, Feigenbaum et al. [72] introduced the notion of secure multiparty computation of approximations and, loosely speaking, their security definition says that the approximate computation is secure if its output can be simulated from the exactly correct output. While our result falls slightly short of that definition, we are still able to give a rigorous guarantee on the amount of additional information leaked by our approximate functionality. Specifically, we present an approximate functionality \(\tilde{f}\) and prove that the output of \(\tilde{f}(\boldsymbol{w}_1, \boldsymbol{w}_2; r)\) can be simulated given both the exactly correct output \(f(\boldsymbol{w}_1, \boldsymbol{w}_2)\) (where \(f\) is the inner product), as well as the \(L_2\) norms of the individual inputs.

To achieve this, we use a sublinear protocol from the Johnson-Lindenstrauss Transform (JLT) to approximate the dot product of the input vectors. This can be done with sublinear communication by having the parties jointly sample a \(k \times n\) JLT matrix \(\boldsymbol{M}\) for \(k \ll n\) by choosing a short seed and expanding it under FHE. The rest of the computation is then done by communicating vectors \(\boldsymbol{M}\boldsymbol{w}_b\), which are of length \(k\) rather than \(n\). Based on this approximation, the parties can obliviously pre-sample a number of inputs that is sufficient with all but negligible probability, and then input them into a constant round secure computation protocol.

Our contribution here, is to show that this variant protocol only requires additional leakage of \(||\boldsymbol{w}_1||_2^2\), \(||\boldsymbol{w}_2||_2^2\), beyond what is already leaked by the original protocol (i.e., the inner product). Our analysis may be of independent interest, since it shows that given \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\), \(||\boldsymbol{w}_1||_2^2\), \(||\boldsymbol{w}_2||_2^2\), the values \(\boldsymbol{M} \boldsymbol{w}_1\) and \(\boldsymbol{M}\boldsymbol{w}_2\) can be efficiently sampled from exactly the correct distribution, when \(\boldsymbol{M}\) is a JLT matrix, and is kept private from both parties. We prove this result by analyzing the underlying joint multivariate normal distributions corresponding to \(\boldsymbol{M} \boldsymbol{w}_1\) and \(\boldsymbol{M} \boldsymbol{w}_2\), and showing that the mean and covariance (which fully determine the distribution) depend only on the values \(||\boldsymbol{w}_1||_2, ||\boldsymbol{w}_2||_2\), and \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\) See Section 4.6 for more details.

4.1.2.5 Applications to distributed exponential mechanism.

We first briefly describe the connection between product sampling and the exponential mechanism. Ignoring many details, the joint exponential mechanism \(M\) outputs a value \(i\) on input \(X=(x_1,\ldots,x_n)\) with probability proportional to \[w_i = e^{c \cdot f(x_i)} = e^{c \cdot f(x_{1,i} + x_{2,i})},\] where \(c\) is some constant, \(f\) is some scoring function, and the data values \(x_i\) are partitioned between the two parties (as \(x_{1,i}, x_{2,i}\)). If the scoring function \(f\) is linear, it holds that \(f(x_{1,i} + x_{2,i}) = f(x_{1,i}) + f(x_{2,i})\), and, letting \(w_{b,i} = e^{c \cdot f(x_{b,i})}\), we can rewrite \(w_i\) as follows: \[w_i = w_{1,i} \cdot w_{2,i}.\] Therefore, using product sampling, the parties can sample each item \(i\) with probability proportional to \(w_i\).

Based on this connection, we present an application of our constant-round, product sampling protocol to realize a two-party exponential mechanism in Section 4.7. However, to use our sampling protocol in this application, we must show that the leakage of our protocols preserves the differential privacy guarantee. We indeed prove that our constant-round JLT-based protocol can achieve differential privacy—even when the JLT matrix \(\boldsymbol{M}\) is public—by adding correctly distributed noise to \(\langle \boldsymbol{M} \boldsymbol{w}_1, \boldsymbol{M} \boldsymbol{w}_2 \rangle\). This allows parties to execute the exponential mechanism when the cost function is additively distributed across the two parties, with sublinear communication, in the case that \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle \in \omega(\log n/n)\).

4.1.3.1 Sampling from streaming data.

Many prior papers (e.g. [27], [28], [29], [30], [31]) have studied the problem of sampling data from a data stream. In this setting the goal is to achieve \(L_p\) sampling for arbitrary \(p\) without having to process or store all the streaming data, thus requiring sublinear computation. These works generally operate in the one-party setting and do not consider privacy.

4.1.3.2 Secure multiparty sampling.

A few prior works [32], [33] have investigated the problem of two and multi-party private sampling in the information theoretic setting. These works focus on identifying the necessary setup to enable sampling from various distributions. We instead focus on the computational setting, and focus on reducing communication. Recently, Champion et al. [34] also considered the computational setting, but they focus on sampling from a publicly-known distribution whereas we sample from a private one.

4.1.3.3 Secure multiparty computation of differentially private functionalities.

Starting with the work of Dwork et al. [35] there has been a good amount of work (e.g. [36], [37], [38], [135], [136], [137]) on using MPC to realize differentially private functionalities to protect the privacy of individual inputs given the output of the MPC. These works have focused on building efficient, private applications in machine learning and other fields, whereas we focus on reducing the communication necessary for the specific functionalities of sampling.

4.1.3.4 Secure sketching.

A long line of work [39], [40], [41], [42], [43] has investigated building secure sketches for securely estimating statistics of Tor usage, web traffic, and other applications. These works focus on building sublinear communication and computation protocols for computing specific statistics such as unique count, median, etc.

4.2 Definitions

We assume that readers are familiar with security notions of standard cryptographic primitives [138] and formal definitions of a protocol securely realizing an ideal functionality (cf. [139]).

4.2.1 Ideal functionality \(\mathcal{F}_{2PC}\)

The ideal functionality works as follows:

\(\mathcal{F}_{2PC}\): Ideal functionality for evaluating two-party circuits.

The functionality has the following parameter:

The functionality proceeds as follows:

  1. Receive inputs \(x_1\) and \(x_2\) from \(P_1\) and \(P_2\) respectively.

  2. Send \(C_1(x_1, x_2)\) to \(P_1\) and \(C_2(x_1, x_2)\) to \(P_2\).

It is well known that Yao’s protocol securely realizes \(\mathcal{F}_{2PC}\) in the semi-honest security setting with a constant round and \(O(|C_1| + |C_2|)\) communication [140].

4.2.2 Differential privacy

We say that two vectors \(\boldsymbol{d} = (d_1, d_2, \ldots)\) and \(\boldsymbol{d}' = (d_1', d_2', \ldots)\) are neighboring if they have the same length, and there exists only one index \(i\) s.t. \(d_{i} \neq d'_{i}\).

Definition 9 (Differential privacy with a trusted curator [2], [141]). A mechanism \(\mathcal{M}\) satisfies \((\epsilon,\delta)\)-differential privacy if for all neighboring data sets \(\boldsymbol{d}\) and \(\boldsymbol{d}'\), and all sets \(S \subseteq Range(\mathcal{M})\) \[\Pr[\mathcal{M}(\boldsymbol{d}) \in S] \le e^\epsilon \cdot \Pr[\mathcal{M}(\boldsymbol{d}') \in S] + \delta\]

4.2.2.1 Differential privacy in the two-party setting.

Our presentation here follows the similar definitions given in prior work [43], [67], [142]. For a two-party protocol \(\Pi\) and an input \(({\boldsymbol{d}}_1, {\boldsymbol{d}}_2)\), we let \(\Pi({\boldsymbol{d}}_1, {\boldsymbol{d}}_2)\) denote the execution of \(\Pi\) on this input. For an adversary \(\mathcal{A}\) (corrupting either \(P_1\) or \(P_2\)), we let \(\mathsf{view}^\Pi_A({\boldsymbol{d}}_1, {\boldsymbol{d}}_2)\) be the view of the protocol to \(A\) (consisting of input, the random tape, the protocol transcript, and the output).

Definition 10. Let \(\epsilon>0\) and \(0 \le \delta< 1\). A (randomized) protocol \(\Pi\) preserves computational two-party \((\epsilon,\delta)\)-Differential Privacy, if for any PPT distinguisher \(\cal D\), for any PPT adversary \(\mathcal{A}\), and for all neighboring inputs \({\boldsymbol{d}}:= {\boldsymbol{d}}_1 \| {\boldsymbol{d}}_2\) and \({\boldsymbol{d}}' := {\boldsymbol{d}}_1' \| {\boldsymbol{d}}_2'\), there exists a negligible function \(\mathsf{negl}(\cdot)\) such that, \[\Pr[{\cal D}(\mathsf{view}^\Pi_A({\boldsymbol{d}}_1, {\boldsymbol{d}}_2),1^\lambda)=1] \le e^\epsilon\cdot \Pr[{\cal D}(\mathsf{view}^\Pi_A({\boldsymbol{d}}_1', {\boldsymbol{d}}_2'),1^\lambda)=1] + \delta + \mathsf{negl}(\lambda)\]

4.3 Two-party \(L_1\) Sampling

In this section, we describe a secure two-party \(L_1\) sampling protocol. Given two \(n\)-dimensional vectors \(\boldsymbol{w}_1 = (w_{1,1}, \ldots, w_{1,n})\) and \(\boldsymbol{w}_2 = (w_{2,1}, \ldots, w_{2,n})\) as the private inputs from parties \(P_1\) and \(P_2\) respectively, the protocol samples from the \(L_1\) distribution according to \(\boldsymbol{w}_1 + \boldsymbol{w}_2\).

4.3.0.1 Notation: \(L_p\) norm.

Let \(\boldsymbol{w} = (w_1, \ldots, w_n) \in \mathbb{R}^n\) be a non-zero vector. The \(L_p\) norm \(\Vert \boldsymbol{w}\Vert_p\) of \(\boldsymbol{w}\) is defined as \(\Vert \boldsymbol{w}\Vert_p := \left ( \sum_j |w_j|^p \right )^{1/p} .\) When there is no subscript, it means \(L_2\) norm; that is, \(\Vert \boldsymbol{w}\Vert := \Vert \boldsymbol{w}\Vert_2\)

4.3.0.2 Assumptions.

Throughout this chapter, we assume that the values \(w_{b,i}\) are represented by fixed-point precision numbers, and consider the cost of communicating such a number to be independent of \(n\). We assume all weights in vectors \(\boldsymbol{w}_1\) and \(\boldsymbol{w}_2\) are non-negative.

4.3.0.3 Ideal functionality.

We first define an ideal functionality for the two-party \(L_1\) sampling. Slightly abusing the notation, let \(L_1(\boldsymbol{w}_1, \boldsymbol{w}_2)\) be a two-input sampling procedure based on the \(L_1\) distribution of \(\boldsymbol{w}_1 + \boldsymbol{w}_2\): \[\Pr[ L_1(\boldsymbol{w}_1, \boldsymbol{w}_2) \mbox{ samples } i ] = \frac{w_{1,i} + w_{2,i}}{ \|\boldsymbol{w}_1 + \boldsymbol{w}_2\|_1 }.\]

We give a more formal description of the functionality \(\mathcal{F}_{L_1}\) in the figure below. In Section 4.3.2, we present a protocol that securely realizes this functionality.

\(\mathcal{F}_{L_1}\): Ideal functionality for two-party \(L_1\) sampling

The functionality has the following parameter:

The functionality proceeds as follows:

  1. Receive inputs \(\boldsymbol{w}_1\) and \(\boldsymbol{w}_2\) from \(P_1\) and \(P_2\) respectively.

  2. Sample \(i \in [n]\) with probability \(\frac{w_{1,i} + w_{2,i}}{ \|\boldsymbol{w}_1 + \boldsymbol{w}_2\|_1 }\)

  3. Send \(i\) to \(P_1\) and \(P_2\).

4.3.1 A toy protocol towards securely realizing \(\mathcal{F}_{L_1}\)

We describe our first attempt, which is insecure, but provides good intuition on how we construct a secure protocol. In fact, the attack on this broken protocol, as well as the fix presented in the next sub-section, remain relevant when we move to product sampling and \(L_2\) sampling as well. Since we assume that all the weights are non-negative, we observe that letting \(p = \frac{\|\boldsymbol{w}_1\|_1}{ \|\boldsymbol{w}_1\|_1 + \|\boldsymbol{w}_2\|_1}\), the above measure can be re-written as follows:

\[\label{eqn:l1} \Pr[ L_1(\boldsymbol{w}_1, \boldsymbol{w}_2) \mbox{ samples } i ] = \frac{w_{1,i}}{\|\boldsymbol{w}_1\|_1} \cdot p + \frac{w_{2,i}}{\|\boldsymbol{w}_2\|_1} \cdot (1-p).\]

Equation ([eqn:l1]) leads us to the following natural approach.

  1. Party \(P_1\) samples \(i_1\) from the \(L_1\) distribution according to \(\boldsymbol{w}_1\), such that \(\Pr[P_1 \mbox{ samples } i_1] = \frac{w_{1,i_1}}{\|\boldsymbol{w}_1\|_1}\).

  2. Party \(P_2\) samples \(i_2\) from the \(L_1\) distribution according to \(\boldsymbol{w}_2\), such that \(\Pr[P_2 \mbox{ samples } i_2] = \frac{w_{2,{i_2}}}{\|\boldsymbol{w}_2\|_1}\).

  3. Then, \(P_1\) and \(P_2\) execute a secure protocol for the following procedure:

    1. Execute a coin toss protocol with bias \(p\). Let \(b\) be the output of the coin-flip.

    2. If \(b=0\) (resp., \(b=1\)), output \(i_1\) (resp., \(i_2\)).

The output of the protocol will achieve correct sampling.

4.3.1.1 Insecurity of the protocol.

However, this protocol has a subtle security issue. For example, let \(i\) be the eventual output index of the protocol. Then, we have the following:

This implies that we have \[\Pr[ i = i_1 | i_1 ] = p + (1-p) \cdot \frac{w_{2, i_1}}{ \| \boldsymbol{w}_2 \|_1 }\]

Now consider a distinguisher that corrupts \(P_1\), chooses inputs \(\boldsymbol{w}_1\) and \(\boldsymbol{w}_2\), and checks the above conditional probability, which is possible since the distinguisher can also see \(i_1\) through the corrupted \(P_1\). To prove security, we should be able to construct a simulator for \(P_1\) that fools this distinguisher. However, a simulator for \(P_1\) doesn’t know \(\boldsymbol{w}_2\), which causes the above conditional probability to be unsimulatable.

In a sense, by having \(P_1\) choose \(i_1\), the protocol allows \(P_1\) to measure the conditional probability \(\Pr[ i = i_1 | i_1 ]\), which depends on the value \(w_{2, i_1}\) thereby leaking information about \(P_2\)’s input to \(P_1\).

4.3.2 Secure \(L_1\) sampling protocol

4.3.2.1 Oblivious sampling.

We address the insecurity of the toy protocol by having the parties sample obliviously from \(\boldsymbol{w}_1\), \(\boldsymbol{w}_2\). This way, each party would not know whether the final output index matches the sample taken from its own vector, or the sample taken from the other party’s vector. Specifically, we will construct our protocol under the framework described below:

  1. The parties obliviously sample \(i_1\) according to \(L_1\) distribution of \(\boldsymbol{w}_1\). The output index \(i_1\) is secret shared between the two parties. Let \(\langle i_1 \rangle\) denote the secret share of \(i_1\). Likewise, they obliviously sample \(\langle i_2 \rangle\) from \(L_1\) distribution of \(\boldsymbol{w}_2\).

  2. Execute a secure two-party protocol to compute the following:

    1. Flip a coin \(b\) with bias \(p\).

    2. If \(b=0\), output the decryption of \(i_1\); otherwise output the decryption of \(i_2\).

4.3.2.2 Ideal functionalities.

Formally, we define an ideal functionality \(\mathcal{F}_{{\mathsf{osample(L_1)}}}\) as follows:

\(\mathcal{F}_{{\mathsf{osample(L_1)}}}\): Ideal functionality for oblivious \(L_1\) sampling.

The functionality considers two participants, the sender and the receiver. The functionality is parameterized with a number \(n\).

Inputs: The sender has an \(n\)-dimensional weight vector \(\boldsymbol{w}\). The receiver has no input.

The functionality proceeds as follows:

  1. Receive \(\boldsymbol{w}\) from the sender.

  2. Sample \(i \in [n]\) with probability \(\frac{w_i}{ \|\boldsymbol{w}\|_1 }\)

  3. Choose a random pad \(\pi \in \{0,1\}^\ell\), where \(\ell = \lceil \log_2 n \rceil\).

  4. Send \(\pi\) to the sender and \(i \oplus\pi\) to the receiver.

We also give an ideal functionality \(\mathcal{F}_{{\mathsf{biasCoin}}}\) for the biased coin tossing.

\(\mathcal{F}_{{\mathsf{biasCoin}}}\): Ideal functionality for biased coin tossing.

The functionality considers two participants \(P_1\) and \(P_2\) and proceeds as follows:

  1. Receive a number \(s_1\) as input from \(P_1\) and \(s_2\) from \(P_2\).

  2. Flip a coin \(b\) with bias \(p = \frac{s_1}{s_1 + s_2}\).

  3. Choose a random bit \(r \in \{0,1\}\).

  4. Send \(r\) to \(P_1\) and \(r \oplus b\) to the receiver.

4.3.2.3 \(L_1\) sampling protocol.

Based on the above functionalities, we describe a protocol securely realizing \(\mathcal{F}_{L_1}\) in the \((\mathcal{F}_{\mathsf{osample(L_1)}}, \mathcal{F}_{\mathsf{biasCoin}})\)-hybrid.


Protocol 9. Inputs: Party \(P_b\) has input \(\boldsymbol{w}_b\).

  1. Execute \(\mathcal{F}_{\mathsf{osample(L_1)}}\) with \(P_1\) as a sender with input \(\boldsymbol{w}_1\) and \(P_2\) as a receiver. Let \(\langle i_1 \rangle\) be the secret share of the output index.

  2. Execute \(\mathcal{F}_{\mathsf{osample(L_1)}}\) with \(P_2\) as a sender with input \(\boldsymbol{w}_2\) and \(P_1\) as a receiver. Let \(\langle i_2 \rangle\) be the secret share of the output index.

  3. Execute \(\mathcal{F}_{\mathsf{biasCoin}}\) where \(P_1\) has input \(\|\boldsymbol{w}_1\|_1\) and \(P_2\) has input \(\|\boldsymbol{w}_2\|_1\). Let \(\langle b \rangle\) be the secret share of the output bit.

  4. Execute \(\mathcal{F}_{2PC}\) for the following circuit:

    1. Input: \(\langle i_1 \rangle, \langle i_2 \rangle, \langle b \rangle\).

    2. Output: \(i_1 \cdot (1-b) + i_2 \cdot b\).

Two-party \(L_1\) sampling in the \((\mathcal{F}_{\mathsf{osample(L_1)}}, \mathcal{F}_{\mathsf{biasCoin}})\)-hybrid.


Theorem 11. Protocol 9 securely realizes \(\mathcal{F}_{L_1}\) with semi-honest security in the \((\mathcal{F}_{\mathsf{osample(L_1)}}, \mathcal{F}_{\mathsf{biasCoin}})\)-hybrid.

The proof is found in Section 8.2.1.

4.3.2.4 Securely realizing \(\mathcal{F}_{\mathsf{osample(L_1)}}\) with threshold FHE.

The main idea of the protocol is having the parties securely sample a random number \(r\) from \([s]\), where \(s := \| \boldsymbol{w} \|_1\). Our construction is found in Protocol 10.


Protocol 10. Inputs: The sender has input \(\boldsymbol{w} = (w_1, \ldots, w_n)\).

  1. The sender computes \(s := \| \boldsymbol{w} \|_1\).

  2. The sender and the receiver execute \(\mathcal{F}_{2PC}\) to uniformly sample \(r\) from the range \([0, s)\). This is possible, since \(s\) has a fixed point representation. Let \(r_1\) and \(r_2\) be the secret share of \(r\) given to \(P_1\) and \(P_2\) respectively.

  3. The sender and the receiver set up a threshold FHE scheme. The plaintext space of the FHE is \(GF(2)\), which allows homomorphic bitwise-xor and bitwise-AND operations. Let \(\unicode{x27E6}m \unicode{x27E7}\) denote an FHE encryption of plaintext \(m\) which can be a bit or bits depending on the context.

  4. The receiver sends \(\unicode{x27E6}r_2 \unicode{x27E7}\) so that the sender can compute \(\unicode{x27E6}r \unicode{x27E7}:= \unicode{x27E6}r_1 \unicode{x27E7}\oplus\unicode{x27E6}r_2 \unicode{x27E7}\).

  5. The sender homomorphically evaluates the following circuit:

    1. Let \(cnt_0 = 0\). For \(j=1,...,n\), let \(cnt_j = cnt_{j} + w_{j}\).

    2. Output \(i \in [1,n]\) such that \(r \in [cnt_{i-1}, cnt_{i}]\).

    Let \(\unicode{x27E6}i \unicode{x27E7}\) be the output encryption from the above homomorphic evaluation.

  6. The sender chooses a random pad \(\pi\), and then it sends \(\unicode{x27E6}c \unicode{x27E7}= \unicode{x27E6}i \unicode{x27E7}\oplus\unicode{x27E6}\pi \unicode{x27E7}\) to the receiver.

  7. The two parties perform threshold decryption so that \(c\) is decrypted to the receiver.

  8. The sender outputs \(\pi\) and the receiver outputs the decryption of \(c\).

Oblivious sampling from threshold FHE


Theorem 12. Assuming the existence of threshold FHE with \(\mathsf{IND}\mbox{-}\mathsf{CPA}\) security, Protocol 10 securely realizes \(\mathcal{F}_{{\mathsf{osample(L_1)}}}\) in the semi-honest security model.

The proof is found in Section 8.2.2.

We note that we give another construction that relies on sub-linear 1-out-of-\(m\) oblivious transfer (OT), but requires computation that is exponential in the bit precision in Section 4.3.4.

4.3.2.5 Securely realizing \(\mathcal{F}_{\mathsf{biasCoin}}\).

The secure construction for \(\mathcal{F}_{\mathsf{biasCoin}}\) is straightforward and can be found in Section 4.3.3.

4.3.3 Securely realizing \(\mathcal{F}_{\mathsf{biasCoin}}\) with semi-honest security

We can securely realize \(\mathcal{F}_{\mathsf{biasCoin}}\), by executing \(\mathcal{F}_{2PC}\) for the following circuit \(C_{\mathsf{coinflip}}\). Since we just execute \(\mathcal{F}_{2PC}\) with a circuit, security of the protocol is immediate.

  1. \(C_{\mathsf{coinflip}}( \|\boldsymbol{w}_1\|_1, \{r_{1,j}\}_{j=1}^\lambda, b_1, \|\boldsymbol{w}_2\|_1, \{ r_{2,j} \}_{j=1}^\lambda, b_2)\)    \(\rhd\) \(r_j, b_j\) are random bits.

  2. \(P_1\)’s input is \((\|\boldsymbol{w}_b\|_1, \{r_{1,j}\}, b_1)\) and \(P_2\)’s input is \((\|\boldsymbol{w}_2\|_1, \{r_{2,j}\}, b_2)\). We require \(\|\boldsymbol{w}_1\|_1, \|\boldsymbol{w}_2\|_1, \{r_{1,j}\}, \{r_{2,j}\} \in \{0,1\}^\lambda\), and \(b_1, b_2 \in \{0,1\}\).

  3. Let \(s_1 = \|\boldsymbol{w}_1\|_1\) and \(s_2 = \|\boldsymbol{w}_2\|_1\). Let \(s = s_1 + s_2\). Compute \({\mathsf mask}= 0^{\lambda-h}1^h\) such that \(s \& {\mathsf mask}= s\) and \(s | {\mathsf mask}= {\mathsf mask}\) where \(\&\) (resp., \(|\)) denotes bitwise AND (resp., bitwise OR) operation. Note that there is a single \(h\) satisfying the above conditions, i.e., the effective bit-length \(h\) of \(s\) with \(2^{h-1} \le s < 2^h\). This computation can be done by checking all possible candidates of \(h\) one by one in \(O(\lambda)\) steps.

  4. For \(j = 1,...,\lambda\), let \(r_j = (r_{1,j} \oplus r_{2,j}) \& {\mathsf mask}\). Note that it holds \(r_j < 2^h\).

  5. Find the first \(j^*\) such that \(r_{j^*} \le s\). If there is no such \(j^*\) output error.

  6. Compute \(b = b_1 \oplus b_2\).

  7. If \(r_{j^*} \le s_1\), output \(b\) to both \(P_1\) and \(P_2\). Otherwise, output \(b\) to \(P_1\) and \(b \oplus 1\) to \(P_2\).

Note that \(\Pr[r_j > s] = 1 - s/2^{h} < 1/2.\) Therefore, with \(\lambda\) repetitions, we have a good \(j^*\) with probability \(1-2^{-\lambda}\). Finally, we have \(\Pr[r_{j^*} \le s_1| r_{j^*} \le s] = \frac {s_1}{s} = p\).

4.3.4 Realizing \(\mathcal{F}_{\mathsf{osample(L_1)}}\) with OT with less precision

We implement oblivious sampling using a 1-out-of-\(m\) OT scheme. In particular, the receiver, as an OT receiver, chooses a random index from \([m]\), and the sender, as an OT sender, prepares an \(m\)-dimensional input vector that encodes the \(L_1\) distribution of \(\boldsymbol{w}\) in a way that we will describe soon.

4.3.4.1 Assumption about the level of precision of the input.

With this approach, each element from the prepared OT input vector will be chosen uniformly with probability \(\frac 1 m\). Therefore, the size \(m\) affects the level of precision of the sampling. In particular, we set \(\mu := 1/m\) as a precision unit, and we assume the following:

If the input vector \(\boldsymbol{w}\) is not consistent with the above requirement, one can round it by using the following function \({\mathsf{rounding}}_{\mu}(\boldsymbol{w})\):

  1. \({\mathsf{rounding}}_\mu(\boldsymbol{w})\)

  2. Let \(\boldsymbol{w} = (w_1, \ldots, w_n)\). For \(i = 1, \ldots, n\), compute \(w_i' = {\mathsf{trunc}}_{\mu}(w_i)\). Here, for any real number \(x\) with \(x \in [0,1]\), denote \({\mathsf{trunc}}_{\mu}(x) = \tilde x \cdot \mu\) where \(\tilde x\) is an integer that minimizes \(\Delta := x - \tilde x \cdot \mu\) subject to \(\Delta \ge 0\). Typically, we have \(\mu = 2^{-q}\) for a certain positive integer \(q\), and \({\mathsf{trunc}}_{\mu}(x)\) is simply truncating the lower order bits in the binary representation of \(x\).

    Let \(\boldsymbol{w}' = (w_1', \ldots, w_n')\).

  3. Repeat the following until \(L_1\) norm of \(\boldsymbol{w}'\) becomes 1.

  4. Output \(\boldsymbol{w}'\).

The above algorithm makes sure that for all \(i\), it holds \(|w'_i - w_i| < \mu\), which means \(\boldsymbol{w}'\) is a good approximation of \(\boldsymbol{w}\), with each element having an additive error of at most \(\mu\). To see why, note that in step 1, some \(w'_i\)s will get truncated leading to small difference, i.e., \(w_i - w_i' < \mu\). In step 2, since the truncated weights are added back to the elements in decreasing order of difference \((w_i - w_i')\), only some of the truncated \(w'_i\)s will be updated to \(w'_i + \mu\) (which will still be close to \(w_i\)) until the \(L_1\) norm of \(\boldsymbol{w}'\) becomes 1.

In a situation where the low precision is acceptable, this OT-based solution could be more efficient. However, if one needs a higher level of precision, we recommend using the FHE-based solution described in Section 4.3.2. We also observe that by using an OT protocol with \(O(\log m)\) communication [143], Theorem 2.2, we expect we could support fairly large values of \(m\). The bottleneck on larger \(m\) is likely to be storage, and the computation time needed for the OT.

4.3.4.2 Oblivious sampling protocol.

With the assumption about the level of precision of the input vector \(\boldsymbol{w}\), we can implement oblivious sampling. See Protocol 11.


Protocol 11. Inputs: The sender has input \(\boldsymbol{w}\). We require every \(w_{i}/\|\boldsymbol{w}\|_1\) is a multiple of \(\mu := \frac 1 m\).

  1. The sender computes the following:

    1. Given \(\boldsymbol{w}\), the sender prepares an \(m\)-dimensional input vector as follows:

    2. For \(i = 1, \ldots, n\), do:

      1. Let \(k_i = \frac{w_i}{\|\boldsymbol{w}\|_1} \cdot m\). Insert \(k_i\) copies of the index \(i\) into the \(m\)-dimensional vector \(\boldsymbol{v}\); that is, there should be \(k_i\) slots (out of \(m\)) whose value is \(i\) in the \(m\)-dimensional vector \(\boldsymbol{v}\).

      Note that for each \(i\), the fraction of the slots containing the index \(i\) in \(\boldsymbol{v}\) is \(\frac{k_i}{m} = \frac{w_i}{\|\boldsymbol{w}\|_1}\).

    3. The sender chooses a random pad \(\pi\) uniformly at random.

    4. Let \(\boldsymbol{v} = (v_{1}, \ldots, v_{m})\). The sender shuffles \(\boldsymbol{v}\) and blinds it by updating \(v_{i} := v_{i} \oplus\pi\) with a randomly chosen \(\pi\).

  2. Execute an OT protocol where the sender is the OT sender with input \(\boldsymbol{v}\) and the receiver is the OT receiver with a randomly chosen number from \([m]\). Let \(u\) be the output to the OT receiver.

  3. Output \(\pi\) to the sender and output \(u\) to the receiver.

Oblivious sampling protocol realizing \(\mathcal{F}_{{\mathsf{osample(L_1)}}}\) based on \(1\)-out-of-\(m\) OT


Due to security of the OT protocol, the OT sender won’t know the OT receiver’s choice. However, since the OT receiver does know the sampled index, which leaks information about the data array, we hide this information from the OT receiver by having the OT sender shuffle the input vector.

At the end of the OT protocol, the sender and receiver will hold the sampled index \(i\) in a secret shared form; that is, the sender will hold \(\pi\) and the receiver \(\pi \oplus i\). Note that the sender re-uses the same \(\pi\) across all inputs, in order to fix its share, independently of the receiver index. Security holds even with the re-use of this value because the receiver learns only a single element.

4.3.4.3 Security.

We will prove the following theorem.

Theorem 13. Protocol 11 securely realizes \(\mathcal{F}_{{\mathsf{osample(L_1)}}}\) in the semi-honest security model.

Proof. We first give the simulation of the sender. This is trivial in the OT-hybrid model, as the sender receives no messages in this protocol. The simulator submits the sender’s input to \(\mathcal{F}_{{\mathsf{osample(L_1)}}}\), and receives \(\pi\) as output. It places \(\pi\) on the sender’s random tape, accepts the sender’s input to the OT functionality, and terminates.

Next, we give the simulation of the receiver. The simulator submits input to \(\mathcal{F}_{{\mathsf{osample(L_1)}}}\), and receives output \(u\). Upon receiving OT choice from the adversary, it feeds \(u\) to the adversary as the OT output. The simulation is perfect, since the view of the adversary contains nothing more than \(u\). ◻

4.4 Two Party \(L_2\) Sampling

In this section we consider the two-party \(L_2\) sampling functionality. Given input vectors \(\boldsymbol{w}_1, \boldsymbol{w}_2\), this functionality samples from the distribution \(D_{L_2}(\boldsymbol{w}_1, \boldsymbol{w}_2)\) with the following probability mass function: \[\Pr[ D_{L_2}(\boldsymbol{w}_1, \boldsymbol{w}_2) \mbox{ samples } i ] = \frac{(w_{1,i} + w_{2,i})^2}{ \sum_j (w_{1,j} + w_{2,j})^2 } = \frac{(w_{1,i} + w_{2,i})^2}{ \| \boldsymbol{w}_1 + \boldsymbol{w}_2 \|_2^2 }.\]

We begin by presenting a non-private protocol for two-party \(L_2\) sampling with \(\tilde{O}(1)\) communication in Section 4.4.1, the construction is found in Protocol 12. We then show how to implement the protocol securely in Section 4.4.2.

4.4.1 A non-private \(L_2\) sampling protocol with \(\tilde{O}(1)\) communication

We begin by defining and showing how to sample from a helper distribution \(D_{\mathsf{ignore}}\).

Definition 14. For input vectors \(\boldsymbol{w}_1, \boldsymbol{w}_2\), let \(D_{\mathsf{ignore}}(\boldsymbol{w}_1, \boldsymbol{w}_2)\) be the distribution that “ignores” the cross term in \(D_{L_2}(\boldsymbol{w}_1, \boldsymbol{w}_2)\). I.e. \(D_{\mathsf{ignore}}(\boldsymbol{w}_1, \boldsymbol{w}_2)\) samples index \(i \in [n]\) with probability \(\frac{w^2_{1,i} + w^2_{2,i}}{||\boldsymbol{w}_1||_2^2 + ||\boldsymbol{w}_2||_2^2}\).

Lemma 15. There exists a protocol \(\Pi_{\mathsf{ignore}}\) for sampling from \(D_{\mathsf{ignore}}(\boldsymbol{w}_1, \boldsymbol{w}_2)\) with \(\tilde{O}(1)\) communication.

Proof. Let \(\boldsymbol{w'}_b = (w_{b,1}^2, \ldots, w_{b,n}^2).\) The lemma follows by observing the following: \[D_\mathrm{ignore}(\boldsymbol{w}_1, \boldsymbol{w}_2) = D_{L_1}(\boldsymbol{w'}_1, \boldsymbol{w'}_2).\] ◻

Definition 16. For \(i \in [n]\), let the corrective parameter function be defined as \[f_c(\boldsymbol{w}_1, \boldsymbol{w}_2, i) := \frac{w_{1,i}^2 + 2w_{1,i}w_{2,i} + w_{2,i}^2}{||\boldsymbol{w}_1||_2^2 + ||\boldsymbol{w}_2||_2^2}.\]

Definition 17. The constant \(c := c(\boldsymbol{w}_1, \boldsymbol{w}_2)\) is defined as \[c(\boldsymbol{w}_1, \boldsymbol{w}_2) := \frac{||\boldsymbol{w}_1 + \boldsymbol{w}_2||_2^2}{||\boldsymbol{w}_1||_2^2 + ||\boldsymbol{w}_2||_2^2}\] This ensures that for every \(i\), \(f_c(\boldsymbol{w}_1, \boldsymbol{w}_2, i) = c \cdot \Pr_{D_{L_2}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i]\).

The following lemma will be useful for arguing the validity of the final protocol.

Lemma 18. For all \(i \in \mathsf{supp}(D_{L_2}(\boldsymbol{w}_1, \boldsymbol{w}_2))\), \[\Pr_{D_{L_2}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i] \leq 2/c \cdot \Pr_{D_{\mathsf{ignore}}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i].\]

Proof. \[\begin{aligned} \Pr_{D_{L_2}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i] &= \frac{w^2_{1,i} + 2w_{1,i}w_{2,i} + w^2_{2,i}}{||\boldsymbol{w}_1||_2^2 + 2\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle + ||\boldsymbol{w}_2||_2^2}\\ &= \frac{w^2_{1,i} + 2w_{1,i}w_{2,i} + w^2_{2,i}}{c \cdot (||\boldsymbol{w}_1||_2^2 + ||\boldsymbol{w}_2||_2^2)}\\ &\le \frac{2 \cdot (w_{1,i}^2 + w_{2,i}^2)}{c \cdot ||\boldsymbol{w}_1||_2^2 + ||\boldsymbol{w}_2||_2^2}\\ & = \frac{2}{c} \cdot \Pr_{D_{\mathsf{ignore}}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i] \end{aligned}\] The inequality holds since \[\begin{aligned} 2(w^2_{1,i} + w^2_{2,i}) - (w^2_{1,i} + 2w_{1,i}w_{2,i} + w^2_{2,i}) &= w^2_{1,i} -2w_{1,i}w_{2,i} + w^2_{2,i}\\ &= (w_{1,i} - w_{2,i})^2\\ &\geq 0. \end{aligned}\] ◻

We now present the \(L_2\) sampling protocol \(\Pi_{L_2}\), which is described in Protocol 12. We show the correctness and efficiency of the protocol.


Protocol 12.

4.4.1.1 Inputs:

Parties \(P_1\) and \(P_2\) have inputs \(\boldsymbol{w}_1\) and \(\boldsymbol{w}_2\) respectively.

The protocol proceeds as follows:

  1. Parties run \(\Pi_{\mathsf{ignore}}\) with inputs \(\boldsymbol{w}_1, \boldsymbol{w}_2\) that samples from \(D_{\mathsf{ignore}}(\boldsymbol{w}_1, \boldsymbol{w}_2)\) and obtain output \(i\).

  2. For \(b \in \{1, 2\}\), \(P_b\) sends \(w_{b,i}, ||\boldsymbol{w}_b||_2^2\). Both parties compute \[\begin{aligned} \Pr_{D_{\mathsf{ignore}}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i] &= \frac{w_{1,i}^2 + w_{2,i}^2}{||\boldsymbol{w}_1||_2^2 + ||\boldsymbol{w}_2||_2^2} \quad \mbox{and}\\ f_c(\boldsymbol{w}_1, \boldsymbol{w}_2, i) &= \frac{w_{1,i}^2 + 2w_{1,i}w_{2,i} + w_{2,i}^2}{||\boldsymbol{w}_1||_2^2 + ||\boldsymbol{w}_2||_2^2} \end{aligned}\]

  3. Parties output \(i\) with probability \[\begin{aligned} \frac{f_c(\boldsymbol{w}_1, \boldsymbol{w}_2, i)}{2 \cdot \Pr_{D_{\mathsf{ignore}}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i]} &= \frac{c \cdot \Pr_{D_{L_2}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i]}{2 \cdot \Pr_{D_{\mathsf{ignore}}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i]}\\ &= \frac{\Pr_{D_{L_2}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i]}{2/c \cdot \Pr_{D_{\mathsf{ignore}}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i]} \end{aligned}\] and otherwise return to step 1.

Protocol for exact \(L_2\) sampling (\(\Pi_{L_2}\))


Lemma 19. With all but negligible probability, on inputs \(\boldsymbol{w}_1, \boldsymbol{w}_2\), \(\Pi_{L_2}\) samples exactly correctly from \(D_{L_2}(\boldsymbol{w}_1, \boldsymbol{w}_2)\), and has communication \(\tilde{O}(1)\).

Proof. Note that \(\Pi_{L_2}\) simply performs rejection sampling in a distributed setting where sampling from \(D_{\mathsf{ignore}}(\boldsymbol{w}_1, \boldsymbol{w}_2)\) and computing the probabilities is done in a distributed manner. It is therefore well-known that as long as for all \(i \in [n]\), \[\label{eq:rejection} \Pr_{D_{L_2}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i] \leq 2/c \cdot \Pr_{D_{\mathsf{ignore}}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i],\] then \(\Pi_{L_2}\) samples from the exact correct distribution, and the number of samples required from \(D_{\mathsf{ignore}}(\boldsymbol{w}_1, \boldsymbol{w}_2)\) in protocol \(\Pi_{L_2}\) follows a geometric distribution with probability \(c/2\). Thus, if condition ([eq:rejection]) is met, the protocol samples exactly correctly and completes in an expected \(2/c\) (with \(2/c \leq 2\), since \(c \ge 1\)) number of rounds. Further, it can be immediately noted that condition ([eq:rejection]) is met due to Lemma 18. Finally, each round has \(\tilde{O}(1)\) communication, since \(\Pi_{\mathsf{ignore}}\) has communication \(\tilde{O}(1)\) (by Lemma 15) and since, in addition to that, only a constant number of length \(\tilde{O}(1)\) values are exchanged in each round. Combining the above, we have that \(\Pi_{L_2}\) has expected communication \(\tilde{O}(1)\) and worst case (with all but negligible probability) communication \(\tilde{O}(1)\). ◻

Remark 20. Note that the protocol and analysis above did not require that vectors \(\boldsymbol{w}_1, \boldsymbol{w}_2\) are normalized. I.e. we do not require that \(||\boldsymbol{w}_1||_1\) or \(||\boldsymbol{w}_2||_1\) are equal to \(1\) or to each other.

4.4.2 Secure \(L_2\) Sampling From FHE


Protocol 13. Inputs: Party \(P_b\) has input \(\boldsymbol{w}_b\).

  1. Let \(B \in \tilde{O}(1)\). The parties perform the following steps for \(j \in [B]\):

    1. Sample from \(D_{\mathsf{ignore}}(\boldsymbol{w}_1,\boldsymbol{w}_2)\) by doing the following: Invoke ideal functionality \(\mathcal{F}_{L_1}^{ss}\) with \(P_1\)’s input set to \(\boldsymbol{w}_1 \odot \boldsymbol{w}_1\) and \(P_2\)’s input set to \(\boldsymbol{w}_2 \odot \boldsymbol{w}_2\). Let \(\langle i_j \rangle\) be the secret share of the output index.

    2. Parties compute encryptions of \(w_{1,i_j}, w_{2,i_j}\) using a threshold FHE scheme as follows.

      • Parties compute an encryption of \(i_j\) by exchanging encryptions of their shares and adding them.

      • Party \(b\) encrypts \(\boldsymbol{w}_b\) and uses FHE to locally compute an encryption of \(w_{b,i_j}\).

      • The parties then send these ciphertexts to each other.

    3. Rejection Sampling. Compute a threshold FHE ciphertext \(\widehat{\mathsf{bias}}_j\) that encrypts \[\frac{f_c(\boldsymbol{w}_1, \boldsymbol{w}_2)_{i_j}}{2 \cdot \Pr_{D_{\mathsf{ignore}}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i_j]} = \frac{w_{1,i_j}^2 + 2w_{1,i_j}w_{2,i_j}+w_{2,i_j}^2}{2(w_{1,i_j}^2 + w_{2,i_j}^2)}.\] Invoke ideal functionality \(\mathcal{F}_{2PC}\) that takes encrypted bias \(\widehat{\mathsf{bias}}_j\), the threshold decryption keys, index \(i_j\), and random bits. The functionality executes a circuit that flips a coin with bias \(\widehat{\mathsf{bias}}_j\) and returns a ciphertext \(\widehat{\mathsf{out}}_j\), which is an encryption of \(i_j\) if the coin evaluates to \(1\) and an encryption of \(0\) otherwise.

  2. Execute \(\mathcal{F}_{2PC}\) for the following circuit:

    1. Input: \((\widehat{\mathsf{out}}_1, \ldots, \widehat{\mathsf{out}}_B)\) and threshold decryption keys.

    2. Output: \(i_j\) corresponding to the minimum \(j\) such that \(\widehat{\mathsf{out}}_j\) decrypts to \(i_j \neq 0\). Or \(\bot\) if no such \(j \in [B]\) exists.

Two-party \(L_2\) sampling in the \((\mathcal{F}_{L_1}, F_{2PC})\)-hybrid.


4.4.2.1 \(L_2\) sampling protocol.

We present our secure \(L_2\) sampling protocol in Protocol 13. For two \(n\)-dimensional vectors \(\boldsymbol{w}_1\) and \(\boldsymbol{w}_2\), we denote by \(\boldsymbol{w}_1 \odot \boldsymbol{w}_2\) the \(n\)-dimensional vector whose \(i\)-th entry is equal to \(w_{1,i} \cdot w_{2,i}\).

Our \(L_2\) sampling protocol uses ideal functionality \(\mathcal{F}_{L_1}^{ss}\), which works essentially the same as \(\mathcal{F}_{L_1}\) except that the output index is secret shared among both parties. We can securely realize this functionality with semi-honest security through a trivial change in the protocol \(\Pi_{L_1}\); for the sake of completeness, we provide the details in Section 4.4.3.

4.4.2.2 Efficiency and correctness.

It is clear that the total communication complexity of the protocol is \(\tilde{O}(1)\), since each step in the loop has complexity \(\tilde{O}(1)\) and the loop iterates \(B \in \tilde{O}(1)\) number of times. Correctness is also immediate, since the protocol simply implements the \(\Pi_{L_2}\) sampling procedure, which was proven in Section 4.4.1 to be correct, and to require at most \(B \in \tilde{O}(1)\) samples, with all but negligible probability.

4.4.2.3 Security.

Security of our protocol is stated through the following theorem.

Theorem 21. Assuming the existence of threshold FHE with \(\mathsf{IND}\mbox{-}\mathsf{CPA}\) security, Protocol 13 securely realizes the \(L_2\) sampling functionality in the \(\{\mathcal{F}_{L_1}^{ss}, \allowbreak \mathcal{F}_{2PC}\}\)-hybrid model with semi-honest security.

We provide the proof in Section 8.2.3.

4.4.3 \(L_1\) sampling protocol with secret shared output

We give a more formal description of the functionality \(\mathcal{F}_{L_1}^{ss}\).

\(\mathcal{F}_{L_1}^{ss}\): Ideal functionality for two-party \(L_1\) sampling

The functionality has the following parameter:

The functionality proceeds as follows:

  1. Receive inputs \(\boldsymbol{w}_1\) and \(\boldsymbol{w}_2\) from \(P_1\) and \(P_2\) respectively.

  2. Sample \(i \in [n]\) with probability \(\frac{w_{1,i} + w_{2,i}}{ \|\boldsymbol{w}_1 + \boldsymbol{w}_2\|_1 }\)

  3. Choose a random number \(\pi\) consisting of \(\lceil \log n \rceil\) bits.

  4. Send \(\pi\) to \(P_1\) and \(i \oplus\pi\) to \(P_2\).

We describe a protocol securely realizing \(\mathcal{F}_{L_1}^{ss}\) in the \((\mathcal{F}_{\mathsf{osample(L_1)}}, \mathcal{F}_{\mathsf{biasCoin}})\)-hybrid.


Protocol 14. Inputs: Party \(P_b\) has input \(\boldsymbol{w}_b\).

  1. Execute \(\mathcal{F}_{\mathsf{osample(L_1)}}\) with \(P_1\) as a sender with input \(\boldsymbol{w}_1\) and \(P_2\) as a receiver. Let \(\langle i_1 \rangle\) be the secret share of the output index.

  2. Execute \(\mathcal{F}_{\mathsf{osample(L_1)}}\) with \(P_2\) as a sender with input \(\boldsymbol{w}_2\) and \(P_1\) as a receiver. Let \(\langle i_2 \rangle\) be the secret share of the output index.

  3. Execute \(\mathcal{F}_{\mathsf{biasCoin}}\) where \(P_1\) has input \(\|\boldsymbol{w}_1\|_1\) and \(P_2\) has input \(\|\boldsymbol{w}_2\|_1\). Let \(\langle b \rangle\) be the secret share of the output bit. In addition, \(P_1\) chooses random bits \(\pi\).

  4. Execute \(\mathcal{F}_{2PC}\) for the following circuit:

    1. Input: \(\langle i_1 \rangle, \langle i_2 \rangle, \langle b \rangle, \pi\).

    2. Compute \(i = i_1 \cdot (1-b) + i_2 \cdot b\).

    3. Output \(\pi\) to \(P_1\) and \(\pi \oplus i\) to \(P_2\).

Protocol securely realizing \(\mathcal{F}_{L_1}^{ss}\) in the \((\mathcal{F}_{\mathsf{osample(L_1)}}, \mathcal{F}_{\mathsf{biasCoin}})\)-hybrid.


Security of the protocol can be shown similarly to Theorem 11.

4.4.4 A non-private \(L_p\) sampling protocol with \(\tilde{O}(1)\) communication


Protocol 15.

4.4.4.1 Inputs:

Parties \(P_1\) and \(P_2\) have inputs \(\boldsymbol{w}_1\) and \(\boldsymbol{w}_2\) respectively.

The protocol proceeds as follows:

  1. Parties run \(\Pi_{\mathsf{ignore}}\) with inputs \(\boldsymbol{w}_1, \boldsymbol{w}_2\) that samples from \(D_{\mathsf{ignore}, p}(\boldsymbol{w}_1, \boldsymbol{w}_2)\) and obtain output \(i\).

  2. For \(b \in \{1, 2\}\), \(P_b\) sends \(w_{b,i}, ||\boldsymbol{w}_b||_p^p\). Both parties compute \[\begin{aligned} \Pr_{D_{\mathsf{ignore}, p}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i] &= \frac{w_{1,i}^p + w_{2,i}^p}{||\boldsymbol{w}_1||_p^p + ||\boldsymbol{w}_2||_p^p} \quad \mbox{and}\\ f_c(\boldsymbol{w}_1, \boldsymbol{w}_2, i) &= \frac{(w_{1,i} + w_{2,i})^p}{||\boldsymbol{w}_1||_p^p + ||\boldsymbol{w}_2||_p^p} \end{aligned}\]

  3. Parties output \(i\) with probability \[\begin{aligned} \frac{f_c(\boldsymbol{w}_1, \boldsymbol{w}_2, i)}{2^{p-1} \cdot \Pr_{D_{\mathsf{ignore}, p}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i]} &= \frac{c \cdot \Pr_{D_{L_2}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i]}{2^{p-1} \cdot \Pr_{D_{\mathsf{ignore}, p}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i]}\\ &= \frac{\Pr_{D_{L_2}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i]}{2^{p-1}/c \cdot \Pr_{D_{\mathsf{ignore}, p}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i]} \end{aligned}\] and otherwise return to step 1.

Protocol for exact \(L_p\) sampling (\(\Pi_{L_p}\))


In this section we present a \(\tilde{O}(1)\) sampling protocol for \(L_p\) sampling for constant \(p\). We present only the insecure version, extending it to a secure sampling protocol can be done entirely analogously to the construction for \(L_2\) sampling given in Section 4.4.2.

Given input vectors \(\boldsymbol{w}_1, \boldsymbol{w}_2\), \(L_p\) sampling refers to sampling from the distribution \(D_{L_p}(\boldsymbol{w}_1, \boldsymbol{w}_2)\) with the following probability mass function: \[\Pr[ D_{L_p}(\boldsymbol{w}_1, \boldsymbol{w}_2) \mbox{ samples } i ] = \frac{(w_{1,i} + w_{2,i})^p}{ \sum_j (w_{1,j} + w_{2,j})^p } = \frac{(w_{1,i} + w_{2,i})^p}{ \| \boldsymbol{w}_1 + \boldsymbol{w}_2 \|_p^p }.\]

We begin by defining and showing how to sample from a helper distribution \(D_{\mathsf{ignore}, p}\).

Definition 22. For input vectors \(\boldsymbol{w}_1, \boldsymbol{w}_2\), let \(D_{\mathsf{ignore}, p}(\boldsymbol{w}_1, \boldsymbol{w}_2)\) be the distribution that “ignores” the cross term in \(D_{L_p}(\boldsymbol{w}_1, \boldsymbol{w}_2)\). I.e. \(D_{\mathsf{ignore}, p}(\boldsymbol{w}_1, \boldsymbol{w}_2)\) samples index \(i \in [n]\) with probability \(\frac{w^p_{1,i} + w^p_{2,i}}{||\boldsymbol{w}_1||_p^p + ||\boldsymbol{w}_2||_p^p}\).

Lemma 23. There exists a protocol \(\Pi_{\mathsf{ignore}}\) for sampling from \(D_{\mathsf{ignore}, p}(\boldsymbol{w}_1, \boldsymbol{w}_2)\) with \(\tilde{O}(1)\) communication.

Proof. Let \(\boldsymbol{w'}_b = (w_{b,1}^p, \ldots, w_{b,n}^p).\) The lemma follows by observing the following: \[D_\mathrm{ignore}(\boldsymbol{w}_1, \boldsymbol{w}_2) = D_{L_1}(\boldsymbol{w'}_1, \boldsymbol{w'}_2).\] ◻

Definition 24. For \(i \in [n]\), let the corrective parameter function be defined as \[f_c(\boldsymbol{w}_1, \boldsymbol{w}_2, i) := \frac{(w_{1,i} + w_{2,i})^p}{||\boldsymbol{w}_1||_p^p + ||\boldsymbol{w}_2||_p^p}.\]

Definition 25. The constant \(c := c(\boldsymbol{w}_1, \boldsymbol{w}_2)\) is defined as \[c(\boldsymbol{w}_1, \boldsymbol{w}_2) := \frac{||\boldsymbol{w}_1 + \boldsymbol{w}_2||_p^p}{||\boldsymbol{w}_1||_p^p + ||\boldsymbol{w}_2||_p^p}\] This ensures that for every \(i\), \(f_c(\boldsymbol{w}_1, \boldsymbol{w}_2, i) = c \cdot \Pr_{D_{L_p}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i]\).

The following lemma will be useful for arguing the validity of the final protocol.

Lemma 26. For all \(i \in \mathsf{supp}(D_{L_p}(\boldsymbol{w}_1, \boldsymbol{w}_2))\), \[\Pr_{D_{L_p}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i] \leq 2^{p-1}/c \cdot \Pr_{D_{\mathsf{ignore}, p}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i].\]

The proof is found in Section 8.2.4.

We now present the \(L_p\) sampling protocol \(\Pi_{L_p}\) in Protocol 15. We show the correctness and efficiency of the protocol below.

Lemma 27. With all but negligible probability, on inputs \(\boldsymbol{w}_1\) and \(\boldsymbol{w}_2\), protocol \(\Pi_{L_p}\) samples exactly correctly from \(D_{L_p}(\boldsymbol{w}_1, \boldsymbol{w}_2)\). Further, for any constant \(p\), the protocol has communication \(\tilde{O}(1)\).

The proof is found in Section 8.2.5. We note that this result strictly generalizes Lemma 19. In particular, setting \(p=2\) in the above protocol yields a protocol with exactly the same parameters as the \(L_2\) sampling protocol.

4.5 Two-party Product Sampling

We next consider the problem of two-party sampling from a product distribution. Specifically, given \(n\)-dimensional vectors \(\boldsymbol{w_1}=(w_{1,1},\ldots,w_{1,n})\) and \(\boldsymbol{w_2}=(w_{2,1},\ldots,w_{2,n})\) as the private inputs from \(P_1\) and \(P_2\) respectively, we wish to sample from the distribution \(D_{\mathsf{prod}}\) defined by

\[\Pr[D_{\mathsf{prod}}(\boldsymbol{w}_1,\boldsymbol{w}_2)=i] = \frac{w_{1,i}\cdot w_{2,i}}{\sum_{j=1}^n w_{1,j} \cdot w_{2,j}} = \frac{w_{1,i} \cdot w_{2,i}}{\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle}\]

Of course, if \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle= 0\), the probability space is not well-defined, and in this case, we require the protocol to simply output \(\bot\).

As before, we assume that all weights in \(\boldsymbol{w}_1\) and \(\boldsymbol{w}_2\) are non-negative.

4.5.0.1 Ideal functionality.

We now define an ideal functionality \(\mathcal{F}_{\mathsf{prod}}\) for two-party product sampling. This functionality is parametrized by a function \(f_{\mathsf{Leak}}\) capturing the leakage that the functionality gives to the adversary.

\(\mathcal{F}_{\mathsf{prod}}\): Ideal functionality for two-party product sampling

The functionality has the following parameters:

The functionality proceeds as follows:

  1. Receive inputs \(\boldsymbol{w}_1\) and \(\boldsymbol{w}_2\) from \(P_1\) and \(P_2\) respectively.

  2. Compute \(\mathsf{leak}=f_{\mathsf{Leak}}(\boldsymbol{w}_1,\boldsymbol{w}_2)\)

  3. If \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle=0\), send \(\mathsf{leak}\) to the adversary and \(\bot\) to \(P_1\) and \(P_2\).

  4. Otherwise, sample \(i\) with probability \(\frac{w_{1,i} \cdot w_{2,i}}{\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle}\), send \(\mathsf{leak}\) to the adversary, and send \(i\) to \(P_1\) and \(P_2\).

4.5.1 Impossibility of sublinear product sampling

Our goal is to find a protocol for two-party sampling with sublinear (in \(n\)) communication. However, unlike the case for \(L_1\) sampling, we show that this goal is actually impossible. Roughly speaking, if parties are allowed to have arbitrary input vectors, then a sublinear communication solution to product sampling implies a sublinear communication solution to the disjointness problem, which is known to be impossible.

For our impossibility result, we first define the two-party disjointness problem.

4.5.1.1 Disjointness problem.

The disjointness problem checks if two input sets \(S\) and \(T\) are disjoint (i.e., \(S \cap T = \emptyset\)). Specifically, we consider a function \(\mathsf{DISJ}^n: \{0,1\}^n \times \{0,1\}^n \to \{0,1\}\) defined as: \[\mathsf{DISJ}^n(v_S, v_T) = \left \{ \begin{array}{l} 1 \mbox{ if } \langle v_S, v_T \rangle= 0 \\ 0 \mbox{ otherwise } \end{array} \right .\] In the above, \(v_S\) and \(v_T\) are the characteristic vectors of \(S\) and \(T\) respectively. The communication complexity of the solution to the disjointness problem is known to have a linear lowerbound, as shown in the following Theorem:

Theorem 28 ([144], [145], [146]). For any (even non-private) two-party protocol \(\Pi\) where each party holds \(v_S\) and \(v_T\) respectively, if \(\Pi\) computes \(\mathsf{DISJ}^n(v_S, v_T)\) correctly with probability at least 2/3, the communication complexity of \(\Pi\) is \(\Theta(n)\).

4.5.1.2 Our impossibility result.

We first observe that a simple reduction from Disjointness gives us that it is impossible to achieve sublinear product sampling. Specifically, disjointness can be directly learned from whether the product sampling protocol outputs \(\bot\) or not.

Our impossibility result is stronger. We show that it is impossible to achieve sublinear product sampling even when the product sampling protocol is executed with input vectors \(\boldsymbol{w}_1\) and \(\boldsymbol{w}_2\) in which all coordinates are bounded away from \(0\), which in particular guarantees that \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\) is bounded away from \(0\).

Before stating a formal theorem below, for \(0 < \gamma < 1\), we first define \(\gamma\)-heaviness; we say that a vector \(\boldsymbol{w}\) is \(\gamma\)-heavy when each coordinate of \(\boldsymbol{w}\) is a number contained in \([\gamma,1]\).

Theorem 29. Let \(\boldsymbol{w}_1\) and \(\boldsymbol{w}_2\) be \(\gamma\)-heavy vectors of length \(n\), each respectively held by \(P_1\) and \(P_2\). Assume there exists a two-party protocol \(\Pi_{\mathsf{prod}}\) for the product sampling from \(\boldsymbol{w}_1\) and \(\boldsymbol{w}_2\), with communication at most \(C := C(n, \gamma)\).

Then, for any \(\gamma \le 1/2n\), there exists a constant \(\rho\) and a probabilistic protocol computing \(\mathsf{DISJ}^n\) correctly with probability at least 2/3 that has communication at most \(\log(n) + 1 + \rho \cdot (C + 1)\).

We construct a protocol computing \(\mathsf{DISJ}^n\) by taking advantage of \(\Pi_{\mathsf{prod}}\) as follows:

4.5.1.3 The protocol for \(\mathsf{DISJ}^n\)

Parties \(\mathbf{A}\) and \(\mathbf{B}\) each get as input a vector \(\tilde{\boldsymbol{a}}\), \(\tilde{\boldsymbol{b}} \in \{0,1\}^n\). The goal is to output \(1\) if the vectors are “disjoint” and \(0\) otherwise.

Edge Case: If one of the parties’ inputs has Hamming weight \(0\), then they output \(1\) and send \(1\) to the other party. From now on, we assume that the Hamming weight of each party’s input is at least \(1\).

Preamble: We call the party with the lower Hamming weight input the designated party. To determine this, \(\mathbf{A}\) sends to \(\mathbf{B}\) the Hamming weight of its input vector \(\tilde{\boldsymbol{a}}\). If \(\mathbf{B}\)’s input has higher Hamming weight, it sends back the bit \(1\) to \(\mathbf{A}\); otherwise it sends \(0\).

Input Transformation: Let \(g_\gamma: \{0,1\}\to \mathbb{R}\) be a boosting function defined as \(g_\gamma(0) = \gamma\) and \(g_\gamma(1) = 1\). Each party \(\mathbf{A}\), \(\mathbf{B}\) locally transforms their input vector \(\tilde{\boldsymbol{a}}\), \(\tilde{\boldsymbol{b}}\) to \(\boldsymbol{a}\), \(\boldsymbol{b}\) by applying the boosting function in order to ensure \(\gamma\)-heaviness. That is, for \(i \in [n]\), set \(a_i = g_\gamma(\tilde{a}_i)\) and \(b_i = g_\gamma(\tilde{b}_i)\).

Sampling Protocol: The parties run the sampling protocol \(\Pi_{\mathsf{prod}}(\boldsymbol{a},\boldsymbol{b})\) and both receive some output \(i^*\).

Output Computation: The designated party checks the \(i^*\)th bit of its input by which we denote \(x\) (i.e., \(x = \tilde a_{i^*}\) or \(x = \tilde b_{i^*}\) depending on which party is the designated party). It sends \(1-x\) to the other party. Both parties output \(1-x\).

The following lemmas give the completeness and soundness of the protocol.

Lemma 30. If \(\tilde{\boldsymbol{a}}\), \(\tilde{\boldsymbol{b}}\) are disjoint, then the parties both output \(1\) with probability at least \(\frac{1}{2 + n \cdot \gamma}\).

Lemma 31. If \(\tilde{\boldsymbol{a}}\), \(\tilde{\boldsymbol{b}}\) are not disjoint, then the parties both output \(1\) with probability at most \(1-\frac{1}{1 + n \cdot \gamma}\).

Before we prove the lemmas, we briefly describe how we can use these lemmas to achieve a protocol that correctly computes \(\mathsf{DISJ}\) with probability at least \(2/3\). Note that we can get a gap by setting \(\gamma = \frac{1}{2n}\). In other words, parties output \(1\) when disjoint with probability at least \(\frac{2}{5}\). Parties output \(1\) when not disjoint with probability at most \(\frac{1}{3}\). Since we have a constant gap between completeness and soundness, this can be amplified to \(2/3\) and \(1/3\) by running the protocol a constant number of times.

4.5.1.4 Remarks.

We would like to characterize the sublinearity condition for product sampling protocols using the normalized input vectors. We can do this since without loss of generality we can assume that input vectors to the product sampling protocols are normalized; in particular, for any (non-normalized) vectors \(\boldsymbol{w}_1\) and \(\boldsymbol{w}_2\), we have

\[\Pr\left[D_{\mathsf{prod}}\left(\frac{\boldsymbol{w}_1}{\|\boldsymbol{w}_1\|_1},\frac{\boldsymbol{w}_2}{\|\boldsymbol{w}_2\|_1}\right)=i\right] = \frac{ \frac{w_{1,i}}{\|\boldsymbol{w}_1\|_1} \cdot \frac{w_{2,i}}{\|\boldsymbol{w}_2\|_1}}{ \langle \frac{\boldsymbol{w}_1}{\|\boldsymbol{w}_1\|_1}, \frac{\boldsymbol{w}_2}{\|\boldsymbol{w}_2\|_1} \rangle} = \Pr[D_{\mathsf{prod}}(\boldsymbol{w}_1,\boldsymbol{w}_2)=i].\]

Specifically, we show below that the impossibility theorem implies that in order to achieve sublinear communication complexity for product sampling, we would need, at the minimum, a promise on the inputs that guarantees that \[\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle \in \Omega(1/n^2),\] when \(\boldsymbol{w}_1, \boldsymbol{w}_2\) are normalized vectors.

To do this, first note that the theorem implies that sublinear communication product sampling needs to have \(\gamma \in \Omega(1/n)\). Now, in the proof, any non-disjoint binary vectors \(\tilde{\boldsymbol{a}}\), \(\tilde{\boldsymbol{b}}\) to the \(\mathsf{DISJ}\) problem has \(\langle \tilde{\boldsymbol{a}}\), \(\tilde{\boldsymbol{b}} \rangle \ge 1\), and these vectors are transformed to \(g_\gamma(\tilde{\boldsymbol{a}})\) and \(g_\gamma(\tilde{\boldsymbol{b}})\). Let \(\boldsymbol{w}_1\) and \(\boldsymbol{w}_2\) be the normalized vectors \(g_\gamma(\tilde{\boldsymbol{a}})\) and \(g_\gamma(\tilde{\boldsymbol{b}})\); that is, \(\boldsymbol{w}_1 := g_\gamma(\tilde{\boldsymbol{a}}) / \| g_\gamma(\tilde{\boldsymbol{a}}) \|_1\) and \(\boldsymbol{w}_2 = g_\gamma(\tilde{\boldsymbol{b}}) / \| g_\gamma(\tilde{\boldsymbol{b}}) \|_1\). Since each entry of \(g_\gamma(\tilde{\boldsymbol{a}})\) and \(g_\gamma(\tilde{\boldsymbol{a}})\) is at most 1, we have \(\|g_\gamma(\tilde{\boldsymbol{a}})\|_1 \le n\) and \(\|g_\gamma(\tilde{\boldsymbol{b}})\|_1 \le n\). Therefore, we have \[\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\ge \frac {\langle g_\gamma(\boldsymbol{a}), g_\gamma(\boldsymbol{b}) \rangle } { n \cdot n } \ge \frac 1 {n^2}.\]

Proof of Lemma 30. Assume that \(\tilde{\boldsymbol{a}}\), \(\tilde{\boldsymbol{b}}\) are disjoint, and moreover, assume WLOG that \(\mathbf{A}\) is the designated party, and its input vector has Hamming weight \(w\). Recall that \(a_i = g_\gamma(\tilde a_i)\) and \(b_i = g_\gamma(\tilde b_i)\). Let \[\begin{aligned} && W_{0,0} := \sum_{i : \tilde{a}_i=0, \tilde{b}_i=0} a_i \cdot b_i, ~~~~~~ W_{1,0} := \sum_{i : \tilde{a}_i=1, \tilde{b}_i=0} a_i \cdot b_i \\ && W_{0,1} := \sum_{i : \tilde{a}_i=0, \tilde{b}_i=1} a_i \cdot b_i, ~~~~~~ W_{1,1} := \sum_{i : \tilde{a}_i=1, \tilde{b}_i=1} a_i \cdot b_i \\ \end{aligned}\]

Note that \(W_{0,0} \leq n \cdot \gamma^2\). Further, \(W_{1,1} = 0\), since the vectors are disjoint, and \(W_{1,0} = w \cdot \gamma\) since the Hamming weight of \(\tilde{\boldsymbol{a}}\) is exactly \(w\). Additionally, note that \(W_{0,1} \geq W_{1,0}\), since \(\mathbf{A}\) is the designated party, so the Hamming weight of \(\tilde{\boldsymbol{a}}\) is less than or equal to the Hamming weight of \(\tilde{\boldsymbol{b}}\).

Note that when the designated party is \(\mathbf{A}\), then the output of the protocol is \(1 - a_{i^*}\). Using the above facts, the probability of outputting \(1\) is \[\begin{aligned} \frac{W_{0,0} + W_{0,1}}{W_{1,1} + W_{0,0} + W_{0,1} + W_{1,0}} &\ge \frac{W_{0,1}}{W_{0,0} + W_{0,1} + W_{1,0}}\\ &\geq \frac{W_{0,1}}{n\gamma^2 + 2W_{0,1}}\\ &=\frac{w \cdot \gamma}{n\gamma^2 + 2w \cdot \gamma}\\ &=\frac{w}{n\gamma + 2w}\\ &\geq \frac{1}{n\gamma + 2}, \end{aligned}\] where the last inequality follows since \(w \geq 1\), due to the Edge Case step of the protocol. ◻

Proof of Lemma 31. Assume that \(\tilde{\boldsymbol{a}}\), \(\tilde{\boldsymbol{b}}\) are not disjoint. As before, consider \(W_{0,0}\), \(W_{1,0}\), \(W_{0,1}\), and \(W_{1,1}\). Note that \(W_{1,1} \geq 1\) since the inputs are not disjoint. We also have \(W_{0,0} + W_{0,1} + W_{1,0} \leq n \cdot \gamma\), since \(a_i\) or \(b_i\) is \(\gamma\) in these cases.

Using the above facts, the probability of outputting \(0\) is \[\begin{aligned} \frac{W_{1,0} + W_{1,1}}{W_{1,1} + W_{0,0} + W_{0,1} + W_{1,0}} &\geq \frac{W_{1,1}}{W_{1,1} + n \cdot \gamma}\\ &\ge \frac{1}{1 + n \cdot \gamma}. \end{aligned}\] ◻

4.5.2 Product sampling while leaking at most the inner product

4.5.2.1 Assumptions.

As before, we assume that all weights in \(\boldsymbol{w}_1\) and \(\boldsymbol{w}_2\) are non-negative. As discussed in the previous subsection, we also assume, without loss of generality, that \[\| \boldsymbol{w}_1 \|_1 = \| \boldsymbol{w}_2 \|_1 = 1.\]

4.5.2.2 Overview.

We now show that the impossibility result of Section 4.5.1 can be bypassed if we make some assumptions on the inputs. Specifically, if we restrict ourselves to the case when \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle=\omega\left(\frac{\log n}{n}\right)\), then we can achieve a sublinear communication protocol for product sampling on inputs \(\boldsymbol{w}_1, \boldsymbol{w}_2\)7. Of course, by observing that the protocol uses sub-linear communication, due to our lower-bound, both parties will learn that such a promise on the inputs is satisfied; the lower bound implies that some leakage about the inputs is necessary. In our protocol, we show that the information leaked is at most the inner product \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\). (Formally, we set \(f_{\mathsf{Leak}}(\boldsymbol{w}_1, \boldsymbol{w}_2) =\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\).) Interestingly, we show that this is the case even though our protocol does not, and cannot,8 actually compute \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\).

4.5.2.3 Product sampling protocol.

Roughly, the protocol works as follows. The protocol proceeds in rounds where in each round \(P_1\) and \(P_2\) use the oblivious \(L_1\) sampling with a single input vector (\(\mathcal{F}_{\mathsf{osample(L_1)}}\)) to produce two secret-shared sampled indices, one from \(P_1\)’s input vector, and one from \(P_2\)’s input vector. The parties then run a secure 2-PC protocol to securely compare these values, and if they are equal, output the sampled index. If the two sampled indices are not equal, the parties move to the next round.

We describe a private two-party protocol for product sampling leaking at most the inner product (see Protocol 16). This protocol is in the \(\{\mathcal{F}_{\mathsf{osample(L_1)}}, \allowbreak \mathcal{F}_{2PC} \}\)-hybrid model.


Protocol 16. Inputs: Party \(P_b\) has input \(\boldsymbol{w}_b\) of length \(n\).

  1. Invoke the \(\mathcal{F}_{\mathsf{osample(L_1)}}\) ideal functionality with \(P_1\) as the sender with input \(\boldsymbol{w}_1\) and \(P_2\) as the receiver. Let \(i_{1,1}\) and \(i_{1,2}\) be the output from the ideal functionality to \(P_1\) and \(P_2\) respectively.

  2. Invoke the \(\mathcal{F}_{\mathsf{osample(L_1)}}\) ideal functionality with \(P_2\) as the sender with input \(\boldsymbol{w}_2\) and \(P_1\) as the receiver. Let \(i_{2,1}\) and \(i_{2,2}\) be the output from the ideal functionality to \(P_1\) and \(P_2\) respectively.

  3. Invoke the \(\mathcal{F}_{2PC}\) ideal functionality with the following circuit:

    1. Input: \((i_{1,j}, i_{2,j})\) for \(j = 1, 2\).

    2. Let \(i_1 = i_{1,1} \oplus i_{1,2}\), \(i_2 = i_{2,1} \oplus i_{2,2}\).

    3. If \(i_1\) is equal to \(i_2\), output \(i_1\) to both \(P_1\) and \(P_2\). Otherwise, output \(\bot\).

  4. If the output from the ideal functionality is \(\bot\), go back to Step 1. Otherwise, output whatever \(\mathcal{F}_{2PC}\) outputs.

Output: Both parties output the sampled value \(i\).

Product sampling (\(\Pi_{\mathsf{prod}}^{IP}\)) in the \(\{\mathcal{F}_{\mathsf{osample(L_1)}}, \mathcal{F}_{2PC} \}\)-hybrid.


4.5.2.4 Security.

We will prove the following theorem.

Theorem 32. Protocol \(\Pi_{\mathsf{prod}}^{IP}\) securely realizes \(\mathcal{F}_{\mathsf{prod}}\) with leakage \(f_{\mathsf{Leak}}(\boldsymbol{w}_1, \boldsymbol{w}_2) = \langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\) in the \(\{\mathcal{F}_{\mathsf{osample(L_1)}}, \allowbreak \mathcal{F}_{2PC} \}\)-hybrid model with semi-honest security.

Proof. We describe the simulator \({\mathsf{Sim}}\) in the \(\{\mathcal{F}_{\mathsf{osample(L_1)}}, \mathcal{F}_{2PC} \}\)-hybrid model for the case that Party 1 is corrupted. The simulator and proof of security are analogous in the case that Party 2 is corrupted.

\({\mathsf{Sim}}\) receives as input \(\boldsymbol{w}_1\), the output \(i^*\), and \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\). \({\mathsf{Sim}}\) samples \(r^*\) from a geometric distribution with success probability \(p = \langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\).

\({\mathsf{Sim}}\) invokes Party 1 on input \(\boldsymbol{w}_1\). For \(i \in [r^*-1]\), Party 1 sends its input to the first invocation of \(\mathcal{F}_{\mathsf{osample(L_1)}}\) and \({\mathsf{Sim}}\) returns to it a random value in \(\mathbb{Z}_n\). Party 1 sends its input to the second invocation of \(\mathcal{F}_{\mathsf{osample(L_1)}}\) and \({\mathsf{Sim}}\) returns to it a random value in \(\mathbb{Z}_n\). Party 1 sends its input to the \(\mathcal{F}_{2PC}\) functionality and \({\mathsf{Sim}}\) returns to it \(\bot\). For \(i = r^*\), Party 1 sends its input to the first invocation of \(\mathcal{F}_{\mathsf{osample(L_1)}}\) and \({\mathsf{Sim}}\) returns to it a random value in \(\mathbb{Z}_n\). Party 1 sends its input to the second invocation of \(\mathcal{F}_{\mathsf{osample(L_1)}}\) and \({\mathsf{Sim}}\) returns to it a random value in \(\mathbb{Z}_n\). Party 1 sends its input to the \(\mathcal{F}_{2PC}\) functionality and \({\mathsf{Sim}}\) returns to it \(i^*\).

It is clear that the view of Party 1 is identical in the ideal and real world, assuming that \({\mathsf{Sim}}\) samples the first succeeding round, \(r^*\), from the correct distribution. In the following, we argue that this is indeed the case.

First, note that on any given round, we have \[p_c := \Pr[\mbox{collision}] = \sum_i \Pr[i_i = i \wedge i_2 = i] = \sum_i w_{1,i} \cdot w_{2,i} = \langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle.\]

Let \({\mathsf FirstSuccess}(r)\) denote an event in which the protocol succeeds for the first time on the \(r\)-th round. Now, for \(r \in \mathbb{N}\), we have \[\begin{aligned} &\Pr[{\mathsf FirstSuccess}(r) \mbox{ AND the output is } i^*]\\ &= \Pr[\mbox{no collision in first } r-1 \mbox{ rounds}] \cdot \Pr[i_1 = i^* \wedge i_2 = i^* \mbox{ on the $r$th round}]\\ &= (1-p_c)^{r-1} \cdot \Pr[i_1 = i^* \wedge i_2 = i^*] \end{aligned}\] Now, the probability that the protocol eventually outputs \(i^*\) is: \[\begin{aligned} &\Pr[\mbox{protocol eventually outputs } i^* \mbox{ after some number of rounds}]\\ &= \sum_{j=1}^\infty \Pr[{\mathsf FirstSuccess}(j) \mbox{ AND the output is } i^*] \\ &= \Pr[i_1 = i^* \wedge i_2 = i^*] \sum_{j=1}^\infty (1-p_c)^{j-1} = \Pr[i_1 = i^* \wedge i_2 = i^*] \cdot \frac{1}{p_c}. \end{aligned}\] Thus, the probability of \({\mathsf FirstSuccess}(r)\) conditioned on the output being \(i^*\) is: \[\begin{aligned} &\Pr[{\mathsf FirstSuccess}(r) | \mbox{ the output is $i^*$}]\\ &= \frac{\Pr[{\mathsf FirstSuccess}(r) \mbox{ AND the output is } i^*]}{\Pr[\mbox{protocol eventually outputs } i^* \mbox{ after some number of rounds}]}\\ &= \frac{(\Pr[i_1 = i^* \wedge i_2 = i^*]) \cdot (1-p_c)^{r-1}}{\Pr[i_1 = i^* \wedge i_2 = i^*] \cdot \frac{1}{p_c}}\\ &= p_c \cdot (1-p_c)^{r-1}. \end{aligned}\]

The above is exactly the probability of the number of Bernoulli trials (with probability \(p_c = \langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\)) needed to get one success. Sampling the number of rounds is therefore equivalent to sampling the random variable corresponding to the number of rounds from a geometric distribution with success probability \(p_c = \langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\), which is exactly what \({\mathsf{Sim}}\) does. ◻

4.5.2.5 Performance.

As shown above, the number of rounds \(r\) needed by this protocol is distributed as the number of Bernoulli trials (with probability \(p = \langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\)) needed to get one success. Thus, the expected number of rounds is \(r=\frac{1}{\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle}\). In each round, the communication consists of a secure 2-PC of equality on \(O(\log n)\)-bit inputs, which can be done in \(O(\log n)\) communication and \(O(1)\) rounds. Thus, in total, this protocol has expected communication \(O(\frac{\log n}{\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle})\) and \(O(\frac{1}{\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle})\) rounds. This communication is sublinear in \(n\) when \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle= \omega\left(\frac{\log n}{n}\right)\).

Trading efficiency for privacy. In the proof above, the simulator requires the value of \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\), which is not revealed by the output. However, a slight modification to the protocol allows us to remove this leakage at the cost of additional, though still sub-linear, communication. Instead of terminating the protocol the first time there is a collision in the \(L_1\) samples, we can pad the communication cost by making \(O(\frac{n}{\log n})\) calls to \(\mathcal{F}_{{\mathsf{osample(L_1)}}}\). Under the promise of \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle= \omega(\frac{\log n}{n})\), this ensures a collision in the outputs (with all but negligible probability). The parties can then use \(O(\frac{n}{\log n})\) communication to obliviously find and output the collision, without revealing the index, and avoiding the leakage of \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\).

Generalizing this idea, we arrive at a set of similar protocol modifications that support a continuous set of tradeoffs: instead of choosing between leaking \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\) to the simulator, or padding to the maximum communication, we can choose to leak some lower bound on \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\), and modify the protocol to make a proportionate number of calls to \(\mathcal{F}_{{\mathsf{osample(L_1)}}}\), search (obliviously) for a collision, and repeat if necessary.

Without a full proof, we provide some intuition for the fact that this tradeoff between leakage and communication is inherent. We can do that by generalizing the statement of Theorem 29. We first modify the definition of \(\gamma\)-heavy defined previously: for any \(t(n) = O(n)\), we say that a vector \(\boldsymbol{w}\) of length \(n\) is \(\gamma_{t,n}\)-heavy if each of the \(t := t(n)\) coordinates of \(\boldsymbol{w}\) is a number contained in \([\gamma, 1]\). In particular, we now allow \(t(n) = o(n)\). Then, with a small modification to the reduction, we can prove that if \(\boldsymbol{w}_1\) and \(\boldsymbol{w}_2\) are \(\gamma_{t,n}\)-heavy, and if there exists a protocol \(\Pi_{\mathsf{prod}}\) for product sampling with communication at most \(C := C(n, \gamma)\), then there exists a protocol for computing \(\mathsf{DISJ}^t\) with communication \(\log(n) + O(C)\). In the modified reduction, the parties simply increase the weights of the \(t\) input slots (as before), and append \(n-t\) entries containing 0 at the end. Since we know that \(\mathsf{DISJ}^t\) requires \(O(t)\) communication, the implication is that we have increasingly weaker communication bounds as we are provided increasingly strong promises on the inner product. Conversely, for a certain set of input vectors, observing the communication of the sampling protocol gives you a bound on the inner product of the inputs. The less communication observed, the tighter that bound, and the greater the leakage.

4.6 Product Sampling in Constant Rounds

4.6.0.1 Achieving constant rounds through parallel repetition.

In Section 4.5, we showed a sublinear communication protocol for product sampling when \(\langle \boldsymbol{{w}_1}, {\boldsymbol{w}_2} \rangle\) is sufficiently large. Moreover, this protocol provably leaked no more information than the inner product. However, this protocol required \(O(1/\langle \boldsymbol{{w}_1}, {\boldsymbol{w}_2} \rangle)\) rounds of communication. This raises the question of whether constant-round sublinear product sampling is possible under the same restrictions on the inputs.

Our protocol to achieve this takes a relatively standard approach. Suppose that we are given the value of \(\langle \boldsymbol{{w}_1}, {\boldsymbol{w}_2} \rangle\). Then, since the expected number of samples until a collision is a function of \(\langle \boldsymbol{{w}_1}, {\boldsymbol{w}_2} \rangle\), we can just run the inner loop of protocol \(\Pi_{\mathsf{prod}}\) in parallel sufficiently many times to guarantee that the protocol would terminate with all but negligible probability.

4.6.0.2 How many times to repeat?

However, there is one catch. It is not actually possible to compute \(\langle \boldsymbol{{w}_1}, {\boldsymbol{w}_2} \rangle\) in sublinear communication! One simple solution is to use our promise on the input: we could run the inner loop enough times to guarantee termination for any inputs satisfying the promise (e.g. \(\omega(\frac{n}{\log n})\) times). However, this forces us to adopt the worst-case communication cost, which might be undesirable. (Recall, it also offers the least leakage, which might be desirable.) Instead, we re-establish the trade-off between leakage and efficiency as follows. We begin by computing an approximation of the inner product in sublinear communication (see Section 4.6.1). Using this approximation, we can then realize our sublinear communication, constant round protocol for product sampling as follows in the next subsection.

4.6.1 Secure approximation of the inner product

We achieve a protocol that securely approximates the inner product with sublinear communication. In particular, we take advantage of the well known Johnson–Lindenstrauss Transform (JLT) [147], [148] sketch.

4.6.1.1 Additional assumptions about \(\boldsymbol{w_1}\) and \(\boldsymbol{w_2}\)

. We assumed that \(\boldsymbol{w_1}\) and \(\boldsymbol{w_2}\) are normalized and correlated such that \(\langle \boldsymbol{{w}_1}, {\boldsymbol{w}_2} \rangle = \omega(\log n/n)\). In a similar vein, we assume that the cosine similarity of the two vectors \(\boldsymbol{w}_1\) and \(\boldsymbol{w}_2\) is not small, e.g., \(\omega(1/\log n)\).

Recall the cosine similarity between the two vectors \(\boldsymbol{w}_1\) and \(\boldsymbol{w}_2\) is defined as \(\cos(\boldsymbol{w}_1, \boldsymbol{w}_2) = \frac{\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle}{ \| \boldsymbol{w}_1 \|_2 \cdot \| \boldsymbol{w}_2 \|_2}\). Since the \(L_1\) norm of each vector is equal to 1, their \(L_2\) norms will typically much smaller than 1, which implies that the cosine similarity is usually much larger than \(\langle \boldsymbol{{w}_1}, {\boldsymbol{w}_2} \rangle\).

4.6.1.2 Approximating the inner product using JLT sketches.

The JLT sketch of \(\boldsymbol{x}\) is equal to \(\boldsymbol{M} \boldsymbol{x}\), where \(\boldsymbol{M}\) is a random \(k \times n\) matrix with \(k \ll n\). More specifically, the inner product of the two vectors is approximated as follows:

  1. \({\mathsf approxIP}(\boldsymbol{w}_1, \boldsymbol{w}_2)\):     \(\rhd\) \(\boldsymbol{w}_1\) and \(\boldsymbol{w}_2\) are \(n\) dimensional vectors.

  2. Choose \(k \times n\) matrix \(\boldsymbol{M}\) such that each entry \(M_{i,j}\) is chosen from an independent Gaussian distribution of mean \(0\) and variance \(1\).

  3. Output \(\frac 1 k \cdot \langle \boldsymbol{M}\boldsymbol{w}_1, \boldsymbol{M}\boldsymbol{w}_2 \rangle\). (Here, we slightly abuse the notation and treat the vectors \(\boldsymbol{w}_1\) and \(\boldsymbol{w}_2\) as column vectors.)

Lemma 33. (cf. [149], Corollary 3.1) For all \(\boldsymbol{w}_1, \boldsymbol{w}_2\) such that \(\cos(\boldsymbol{w}_1, \boldsymbol{w}_2)\geq t\), the procedure \({\mathsf approxIP}(\boldsymbol{w}_1, \boldsymbol{w}_2)\) approximates \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\) up to a \(1\pm \epsilon\) approximation factor with all but negligible probability (over the choice of the JLT matrix), using JLT dimension \(k = \omega\left(\frac{\log(n)}{t^2 \cdot \epsilon^2}\right)\).

4.6.1.3 Privacy of the approximate output.

What is interesting is that the approximate inner product doesn’t reveal anything more than the inner product itself. In this sense, it satisfies the notion of private approximation introduced in [72]. In particular, we prove the following:

Lemma 34. The output of \(\mathsf{approxIP}(\boldsymbol{w}_1, \boldsymbol{w}_2)\) can be simulated perfectly given only \(\langle \boldsymbol{w}_1, \boldsymbol{w}_1 \rangle\), \(\langle \boldsymbol{w}_2, \boldsymbol{w}_2 \rangle\), and \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\).

The proof is found in Section 8.2.6.

4.6.1.4 Private protocol via JLT.

Using the JLT sketch, we can design a private protocol approximating the inner product. See Protocol 17. The protocol uses threshold FHE (e.g.,  [150]).


Protocol 17.

4.6.1.5 Inputs:

Parties \(P_1\) and \(P_2\) have inputs \(\boldsymbol{w}_1\) and \(\boldsymbol{w}_2\) respectively.

The protocol proceeds as follows:

  1. Parties set up a threshold FHE scheme.

  2. They securely sample \(k \times n\) matrix \(\boldsymbol{M}\) described in the above within the threshold FHE. In particular, they jointly generate an encrypted random seed \(\unicode{x27E6}s \unicode{x27E7}\). Using this randomness, parties homomorphically evaluates \(\unicode{x27E6}PRG(s) \unicode{x27E7}\), where \(PRG\) is a pseudorandom generator, to obtain the JLT matrix \(\unicode{x27E6}\boldsymbol{M} \unicode{x27E7}\).

  3. Each party \(P_b\) homomorphically evaluates \(\unicode{x27E6}\tilde{ \boldsymbol{w}}_b \unicode{x27E7}= \unicode{x27E6}\boldsymbol{M} \boldsymbol{w}_b \unicode{x27E7}\).

  4. Party \(P_1\) sends \(\unicode{x27E6}\tilde{\boldsymbol{w}}_1 \unicode{x27E7}\) to \(P_2\).

  5. Party \(P_2\) homomorphically evaluates \(\unicode{x27E6}\langle \tilde {\boldsymbol{w}}_1, \tilde{\boldsymbol{w}}_2 \rangle \unicode{x27E7}\) and sends it to \(P_1\).

  6. Parties execute threshold decryption to obtain and output \(\frac 1 k \cdot \langle \tilde{\boldsymbol{w}}_1, \tilde {\boldsymbol{w}}_2 \rangle\).

Private protocol for computing approximate inner product


4.6.1.6 Security.

Since every protocol message is a ciphertext, based on semantic security of the threshold FHE, it is easy to see that the protocol securely realizes a functionality for computing \({\mathsf approxIP}\). Based on Lemma 34, the leakage profile of the functionality is \(\langle \boldsymbol{w}_1, \boldsymbol{w}_1 \rangle\), \(\langle \boldsymbol{w}_2, \boldsymbol{w}_2 \rangle\), and \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\).

4.6.2 Constant-round protocol for product sampling

Note that the Protocol 16 has the following structure. In particular:

We need to repeat \(r\) trials in parallel so that the probability that all \(r\) trials fail is negligible. In other words, we should have \[(1 - p)^{r} \le e^{-p \cdot r} \le e^{-\omega(\log \lambda)}.\] This means that we should have \(r > \frac {\omega(\log \lambda)}{p}\).

Moreover, in the previous subsection, we discussed how to obtain a good estimate \(\tilde p = (1 \pm \epsilon) p\). Therefore, we should have \[r > \frac {(1+\epsilon) \cdot \omega(\log \lambda) }{\tilde p}> \frac {\omega(\log \lambda)} p .\]

In summary, by running \(\frac {(1+\epsilon) \cdot \omega(\log \lambda) }{\tilde p}\) instances in parallel, we achieve constant round protocols for product sampling with negligible failure probability. The final protocol should perform extra steps to hide from which trial the output comes from, and these changes can be made in a straightforward way.

4.7 Two-party Exponential Mechanism

Recall that one of our main motivations for this work is to instantiate a two-party version of the exponential mechanism to achieve differential privacy. We observe that for many natural loss functions (i.e., when the loss function is additive across the two parties), the exponential mechanism on two parties is essentially equivalent to product sampling. We explain this further with a concrete example in Section 4.7.1.

4.7.1 A concrete example

Suppose we want to choose a classifier minimizing the \(L_2\) error over a test dataset while preserving differential privacy of the labeled examples. Suppose there are \(n\) machine learning classifiers \((c_1, \ldots, c_n)\), and a test dataset \(D = (d_1, \ldots, d_{|D|})\) consists of \(|D|\) rows. Let \(\ell_j \in \{0,1\}\) be the label of the \(j\)-th row \(d_j\) of the dataset. For a machine learning classifier \(c_i\), we define its \(L_2\) loss function as follows:

\[f^{c_i}_{\mathsf{loss}}(D) := \sum_{j \in |D|}(c_i(d_j) - \ell_j)^2/|D|.\]

Now, consider a two-party federated setting in which the parties would like to perform computation on the aggregation of their local datasets. In particular, we assume party \(P_1\) (resp., party \(P_2\)) holds dataset \(D_1\) (resp., \(D_2\)) with \(|D_1| = |D_2|\). Let \(D = D_1 || D_2\).

4.7.1.1 DP mechanism in the central curator model.

In our mechanism, the central curator would receive input from parties \(P_1\) and \(P_2\) and choose classifier \(c_i\) with a \((\epsilon, 0)\)-DP guarantee using the exponential mechanism.

We observe that the \(L_2\) loss function \(f^{c_i}_{\mathsf{loss}}(D)\) over the entire dataset \(D\) can be computed by each party \(P_b\) first locally computing \[f^{c_i}_{\mathsf{loss}}(D_b) := \sum_{j \in |D_b|}(c_i(d_{b,j}) - \ell_{b,j})^2/|D|,\] and then computing \(f^{c_i}_{\mathsf{loss}}(D) = f^{c_i}_{\mathsf{loss}}(D_1) + f^{c_i}_{\mathsf{loss}}(D_2).\)

Based on the above observation, in our mechanism, each party \(P_b\) computes a vector \(\boldsymbol{v}_b\) as follows:

Then, each party \(P_b\) computes \(\boldsymbol{w}_b := \frac{\boldsymbol{v}_{b}}{||\boldsymbol{v}_b||_1}\) (i.e., the normalization of \(\boldsymbol{v}_b\)), and sends \(\boldsymbol{w}_b\) to the central curator. Finally, the curator will choose classifier \(c_i\) with the probability \(\frac{w_{i,i} \cdot w_{i,2}}{\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle}\).

Lemma 35. If \(|D| \ge 40 (\log n + \lambda)/\epsilon\), our mechanism provides \((\epsilon, 0)\)-DP.

Proof. Let \(q_i(D) = \frac{-f^{c_i}_{\mathsf{loss}}(D)}{2 \Delta u}\). We first show that drawing a sample from the product distribution of \(\boldsymbol{w}_1, \boldsymbol{w}_2\) is identical to running the exponential mechanism to select classifier \(c_i\) with probability \[\frac{e^{\epsilon q_i(D)} }{\sum_{j \in [n]} e^{\epsilon q_j(D)}}.\] Recall that product sampling on inputs \(\boldsymbol{w}_1, \boldsymbol{w}_2\) returns index \(i\) with probability \(\frac{{w}_{1,i} \cdot {w}_{2,i}}{\langle \boldsymbol{w}_1, \boldsymbol{w}_2\rangle}\). Since \({w}_{b,i} = \frac{{v}_{b,i}}{||\boldsymbol{v}_b||_1}\), we can rewrite the previous equation as \[\begin{aligned} \frac{{w}_{1,i} \cdot {w}_{2,i}}{\langle \boldsymbol{w}_1, \boldsymbol{w}_2\rangle} & = \frac{{v}_{1,i} \cdot {v}_{2,i}}{\langle \boldsymbol{v}_1, \boldsymbol{v}_2 \rangle} &= \frac{e^{\epsilon \cdot q_i(D_1)}\cdot e^{\epsilon \cdot q_i(D_2)}} {\sum_{j \in [n]} e^{\epsilon \cdot q_j(D_1)} \cdot e^{\epsilon \cdot q_j(D_2)}} = \frac{e^{\epsilon \cdot q_i(D)}} {\sum_{j \in [n]} e^{\epsilon \cdot q_j(D)}} \end{aligned}\]

Note that the loss functions have global sensitivity of \(1/|D|\) since a change to the \(j\)-th row of \(D_b\) can cause \(f^{c_i}_{\mathsf{loss}}(D_b)\) to change by \(\pm 1/|D|\). Instead of using \(1/|D|\), our mechanism uses a larger value \(\Delta u\). Since the \(\Delta u\) is larger than the sensitivity whenever \(|D| \ge 40 (\log{n}+\lambda)/\epsilon\), and our mechanism is a simple exponential mechanism, \((\epsilon, 0)\)-DP holds. ◻

4.7.1.2 Utility.

Although using a larger value \(\Delta u\) deteriorates the utility of the mechanism, we show that the utility is still acceptable. Applying Theorem 3.11 in [3] to our setting, we have \[\Pr\left[f_{\mathsf loss}^{c_i}(D) \le f_{\mathsf loss}^{c_{opt}}(D) - \frac{2 \Delta u}{\epsilon} \cdot (\log n + \lambda) \right] \le e^{-\lambda}.\]

Noting that \(\Delta u = \frac{\epsilon}{40(\log n + \lambda)}\), we have \[\Pr\left[f_{\mathsf loss}^{c_i}(D) \le f_{\mathsf loss}^{c_{opt}}(D) - 1/20 \right] \le e^{-\lambda}.\] Viewing \(f_{\mathsf loss}^{c_{opt}}(D)\) as the optimal accuracy for the chosen classifier. This implies that our mechanism returns a classifier that is at most 5% less accurate than the optimal classifier. We note that an even smaller loss in accuracy can be achieved by increasing \(\Delta u\) and the minimum size of \(D\) accordingly.

Jumping ahead, we use this larger \(\Delta u\) in order to achieve differential privacy of the approximate inner product evaluation to be described in the next section.

4.7.2 Differentially-Private Inner Product for the Exponential Mechanism

4.7.2.1 Issue: DP is broken due to leakage \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\).

Based on the result of the previous subsection, we can simply run the product sampling protocol to achieve a two-party exponential mechanism without the central curator. However, there is one issue we need to address. In particular, the leakage from the previously described protocols for product sampling violates the DP guarantee of the exponential mechanism; the leakage \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\) is clearly not differentially private with respect to \(P_2\)’s input.

Thus, to instantiate the exponential mechanism, we give an alternative inner product approximation protocol that achieves differential privacy. Using this approximation, we can build a protocol that is able to sample from exactly the product distribution while additionally leaking a value \(\mathsf{leak}\) that is differentially-private and thus does not violate the DP guarantee of the exponential mechanism. We build such a protocol based on the approximate inner product using the JLT given in Section 4.6.1.

4.7.2.2 Approximating the inner product differentially privately.

We now describe a mechanism, executed by a trusted curator, to approximate the inner product on inputs \(\boldsymbol{w}_1\) and \(\boldsymbol{w}_2\) with \({w}_{b,i} = \frac{{v}_{b,i}}{||\boldsymbol{v}_b||_1}\) for \(b \in \{1,2\}\) and \(i \in [n]\) as described above. This mechanism is essentially the approxIP algorithm described in Section 4.6.1 with noise added in the exponent to guarantee differential privacy.

  1. \(\mathsf{DP}\mbox{-}\mathsf{approxIP}(\boldsymbol{w}_1, \boldsymbol{w}_2)\):

  2. Choose \(k \times n\) matrix \(\boldsymbol{M}\) such that each entry \(M_{i,j}\) chosen from an independent Gaussian distribution of mean \(0\) and variance \(1\). The dimension \(k\) (with \(k \ll n\)) is determined appropriately according to Lemma 33.

  3. Choose a value \(x\) from the Laplace distribution \({\mathsf Lap}(1/(\Delta u \cdot |D|))\).

  4. Output \(e^x \cdot \langle \boldsymbol{M}\boldsymbol{w}_1, \boldsymbol{M}\boldsymbol{w}_2 \rangle\).

4.7.2.3 Public sampling of \(\boldsymbol{M}\).

Contrary to Section 4.6 where \(\boldsymbol{M}\) was sampled inside the FHE, here, the matrix \(\boldsymbol{M}\) can be publicly sampled (e.g., through a commonly chosen random PRG seed), since DP is achieved through adding a Laplace noise.

4.7.2.4 Differential privacy.

We say that two datasets \(D\) and \(D'\) are neighboring if they differ in exactly one row.

Recall that, as in the application described in Section 4.7.1, the parties’ inputs to the product sampling are of the form \(\boldsymbol{w}_b\) where \({w}_{b,i} \propto e^{-\epsilon \cdot \frac{f^{c_i}_{\mathsf{loss}}(D_b)}{2 \Delta u}}\) for some additive loss functions \(f^{c_i}_\mathsf{loss}\).

Theorem 36. If \(|D| \ge 40 \cdot (\log n + \lambda)/\epsilon\), the mechanism \(\mathsf{DP}\mbox{-}\mathsf{approxIP}\) is \(\epsilon\)-differentially private w.r.t a database \(D_1\) (resp., \(D_2\)) when the loss functions \(f^{c_i}_{\mathsf{loss}}(D)\) have low sensitivity \(1/|D|\).

Proof. We prove differential privacy with respect to \(D_1\) (i.e., the adversary knows \(D_2\) and the differential privacy guarantee holds relative to rows of \(D_1\)). The reverse case is analogous.

Note that the change of a single row in \(D_1\) causes the values \({v}_{1,i}\) (for \(i \in [n]\)) and the value \(\|\boldsymbol{v}_1\|_1\) to change by at most a multiplicative factor of \(\alpha := e^{\pm \epsilon / (2 \Delta u \cdot |D|)}\). Thus, letting \(\boldsymbol{M}_\ell\) be the \(\ell\)-th row of the JLT matrix (which is fixed and public), for each \(\ell \in [k]\), the value \(\langle \boldsymbol{M}_\ell, \boldsymbol{w}_b \rangle\) can change by at most a multiplicative factor of \(\alpha^2\). Therefore, the dot product \(\langle \boldsymbol{M} \boldsymbol{w}_1, \boldsymbol{M} \boldsymbol{w}_2\rangle\) can change by at most a multiplicative factor of \(\alpha^2\).

Ultimately, this means that we have additive sensitivity of \(\epsilon/ (\Delta u \cdot |D|)\) in the exponent. To achieve differential privacy, we thus need to multiply the dot product estimate by \(e^x\), where \(x\) is drawn from \(\mathsf{Lap}(1/ (\Delta u \cdot |D|))\). ◻

4.7.2.5 Correctness.

We briefly analyze the estimation error due to the added noise. Since \(x\) is drawn from \(\mathsf{Lap}(1/(\Delta u \cdot |D|))\), the probability that \(|x| \geq \epsilon\) is at most \(e^{-\Delta u \cdot |D|}\). When \(|D| > \Delta u \cdot \lambda/\epsilon\), this probability is at most \(e^{-\lambda}\), which is negligible.

In other words, when \(D\) is a sufficiently large dataset, with overwhelming probability, the incurred multiplicative error is \(e^{|x|} \le e^{\epsilon} < 1+2\epsilon\). Thus, differential privacy adds at most a \(1 \pm 2\epsilon\) multiplicative error on top of the error of the approximation algorithm.

4.7.2.6 Removing the curator.

We described the inner product approximation protocol as being run by a trusted curator. As is standard, we can replace this curator with a secure 2-PC evaluating the mechanism to achieve computational DP.

4.7.3 Instantiating the Exponential Mechanism

We now have all the necessary pieces to instantiate a sublinear communication protocol to evaluate the exponential mechanism for a database \(D\) held jointly by two parties.

4.7.3.1 The two-party exponential mechanism protocol.

We now describe the distributed exponential mechanism where \(P_b\) has input \(D_b\) and the loss functions have low sensitivity. This protocol is in the \(\mathcal{F}_{\mathsf{osample(L_1)}}\)-hybrid model.


Protocol 18. Inputs: Party \(P_b\) has input \(D_b\)

  1. \(P_b\) computes \(\boldsymbol{v}_b = (v_{b, 1}, \ldots, v_{b,n})\) such that \({v}_{b,i} = e^{-\epsilon \cdot \frac{f^{c_i}_{\mathsf{loss}}(D^b)}{2 \Delta u}}\), where \(\Delta u = \frac{\epsilon}{40(\log n + \lambda)}\). Let \(\boldsymbol{w}_{b}=\frac{\boldsymbol{v}_{b}}{||\boldsymbol{v}_b||_1}\).

  2. Invoke the \(\mathcal{F}_{2PC}\) ideal functionality to evaluate \(\eta = {\mathsf{DP}\mbox{-}\mathsf{approxIP}}(\boldsymbol{w}_1, \boldsymbol{w}_2)\). Note that \(\eta\) is an \((1+2\epsilon)\)-approximation of the inner product.

  3. The parties execute the following steps \(m=\frac{(1+2\epsilon) \cdot \omega(\log{\lambda})}{\eta}\) times in parallel.

    1. Invoke the \(\mathcal{F}_{\mathsf{osample(L_1)}}\) ideal functionality with \(P_1\) as the sender with input \(\boldsymbol{w}_1\) and \(P_2\) as the receiver. Let \(i_{1,1}^j\) and \(i_{1,2}^j\) be the output of the \(j\)th execution to \(P_1\) and \(P_2\) respectively.

    2. Invoke the \(\mathcal{F}_{\mathsf{osample(L_1)}}\) ideal functionality with \(P_2\) as the sender with input \(\boldsymbol{w}_2\) and \(P_1\) as the receiver. Let \(i_{2,1}^j\) and \(i_{2,2}^j\) be the output of the \(j\)th execution to \(P_1\) and \(P_2\) respectively.

  4. Invoke the \(\mathcal{F}_{2PC}\) ideal functionality for the following circuit:

    1. Input: \((i_{1,1}^j, i_{2,1}^j, i_{1,2}^j, i_{2,2}^j)\) for \(j = 1, \ldots, m\).

    2. Let \(i_1^j = i_{1,1}^j \oplus i_{1,2}^j\), \(i_2^j = i_{2,1}^j \oplus i_{2,2}^j\).

    3. Find the smallest \(j\) such that \(i_1^j\) equals \(i_2^j\), and output \(i_1^j\) to both \(P_1\) and \(P_2\). If no such \(j\) exists, output \(\mathsf{abort}\).

Output: Both parties output the sampled index \(i\) or \(\mathsf{abort}\).

Exponential Mechanism Protocol (\(\Pi_{\mathsf{EM}}\)) in the \(\{\mathcal{F}_{2PC},\allowbreak \mathcal{F}_{\mathsf{osample(L_1)}}\}\)-hybrid model


4.7.3.2 Security.

We will prove the following theorem.

Theorem 37. If \(|D| \ge 40 \cdot \lambda(\log n + \lambda)/\epsilon^2\), protocol \(\Pi_{\mathsf{EM}}\) is \((2\epsilon,\mathsf{negl}(\lambda))\)-DP.

It is easy to see that this protocol runs a sufficient number of product samplings in parallel so that it does not output \(\mathsf{abort}\), except with negligible probability (see Section 4.6.2). Therefore, for the proof, we assume that the protocol does not output \(\mathsf{abort}\).

Proof. We first consider where \(P_1\) is corrupted by the adversary \(A\). Let \(\mathsf{view}_A(D)\) be the view of the protocol to \(A\) (consisting of input, output and transcript) in the \(\{\mathcal{F}_{2PC}, \mathcal{F}_{\mathsf{osample(L_1)}}\}\)-hybrid model. In the \(j\)-th invocation of \(\mathcal{F}_{\mathsf{osample(L_1)}}\), the outputs \((\{i_{1,1}^j, i_{2,1}^j\}_j, i)\) sent to \(A\) by the ideal functionality are uniformly distributed and independent of \(D\). Thus, WLOG, we assume that \(A\)’s view consists of its input, transcript \(\eta\), and output \(i\). Let \(\mathsf{view}^{\mathsf{trans}}_A(D)\) (resp., \(\mathsf{view}^{\mathsf{out}}_A(D)\)) be the transcript (resp., output) contained in \(A\)’s view during a random execution of the protocol with input \(D\).

For all neighboring database \(D\) and \(D'\), and for all \(\eta\) and \(i\), we have: \[\begin{aligned} && \Pr[\mathsf{view}^{\mathsf{trans}}_A(D) = \eta, \mathsf{view}^{\mathsf{out}}_A(D) = i] \\ && = \Pr[\mathsf{view}^{\mathsf{trans}}_A(D) = \eta] \cdot \Pr[\mathsf{view}^{\mathsf{out}}_A(D) = i | \eta] \\ && \le e^{\epsilon} \Pr[\mathsf{view}^{\mathsf{trans}}_A(D') = \eta] \cdot \Pr[\mathsf{view}^{\mathsf{out}}_A(D) = i | \eta] \\ && \le e^{\epsilon} \Pr[\mathsf{view}^{\mathsf{trans}}_A(D') = \eta] \cdot e^{\epsilon} \Pr[\mathsf{view}^{\mathsf{out}}_A(D') = i | \eta] \\ && = e^{2\epsilon} \Pr[\mathsf{view}^{\mathsf{trans}}_A(D') = \eta, \mathsf{view}^{\mathsf{out}}_A(D') = i], \end{aligned}\]

The first inequality holds from the DP of protocol \(\mathsf{DP}\mbox{-}\mathsf{approxIP}\), and the second inequality holds from the DP of the exponential mechanism.

The case when \(P_2\) is corrupted can be proved similarly. ◻

5 Privacy of Min-Hash

5.1 Introduction

5.1.0.1 Min-hash sketch.

The min-hash sketch is a simple and well-known technique to produce an unbiased estimate of the Jaccard index [151], [152]. The Jaccard index [153] is a similarity measure between two sets \(A\) and \(B\), denoted \(J(A, B)\), defined as the fraction of the elements in the intersection of \(A\) and \(B\) divided by the number of elements in their union. That is, \(J(A,B)=\frac{|A \cap B|}{|A \cup B|}\). The Jaccard index has seen wide application for clustering of websites and documents [151], [154], community identification [155], DNA matching [61], and machine learning [156], [157].

Computing the Jaccard index exactly, especially when the input sets are large, can be costly. The min-hash sketch allows communication-efficient approximation [151]. The basic idea behind the min-hash sketch is to apply a random hash function \(h\) to both sets \(A\) and \(B\) and then compare the minimum hashes (denoted \(\min h(A)\), \(\min h(B)\)) in both sets. If \(\min h(A) = \min h(B)\), it means that an element in \(A \cap B\) has been hashed to the minimum value among elements in \(A \cup B\). This occurs with probability \(J(A,B)\). Thus, to get an unbiased approximation of the Jaccard index, it suffices to repeat this procedure with sufficiently many random hashes.

5.1.0.2 Private Jaccard index via min-hash.

Due to its simplicity and efficiency, the min-hash sketch has become a popular tool to approximate the Jaccard index. Moreover, since the min-hash sketch only needs to compare the minimum hashes, it has been a key building block when maintaining privacy of the input sets is important, e.g., if the input sets represent fingerprints, DNA, or medical records.

There are two classes of solutions for privacy-preserving min-hash. The first class of solutions (e.g. [61], [62], [63], [158]) considers how to compute the min-hash and Jaccard index in a two-party setting, where the parties do not trust each other with their private inputs. The goal of these works is to design secure two-party computation protocols for computing the min-hash sketch as efficiently as possible, but they generally do not consider the privacy implications of revealing the output. The second line of work (e.g. [64], [65], [66]) considers how to make the min-hash approximation privacy-preserving by adding noise to the local min-hash sketches.

5.1.0.3 Our work.

These works serve as the starting point for our study. In particular, we first present a protocol that addresses the privacy of min-hash-based approximations from two perspectives. Similar to the first class of solutions, our protocol ensures that no private information about the input is revealed beyond the Jaccard index. Additionally, in line with the second class of solutions, our protocol guarantees that even the Jaccard index output satisfies differential privacy, which is achieved through adding a small amount of noise. Next, we explore whether any variant of differential privacy can be achieved without adding noise to the protocol, which would improve its accuracy. Interestingly, we demonstrate that under specific constraints on the inputs, the resulting protocol still provides a certain level of privacy guarantees.

More formally, we define three ideal functionalities to capture flavors of min-hash. \({\mathcal{F}_\mathsf{minH}}\) computes the min-hash and then outputs both the min-hash count and the random hashes used. On the other hand, \({\mathcal{F}_\mathsf{privH}}\) computes the min-hash functionality and outputs only the min-hash count. This corresponds to a setting where the min-hash is computed by a trusted curator who does not disclose the hashes used. Finally, we define \({\mathcal{F}_\mathsf{noisy\mbox{-}minH}}\) which adds noise to the min-hash count computed by \({\mathcal{F}_\mathsf{minH}}\). For our first result we show that for appropriate noise levels, the \({\mathcal{F}_\mathsf{noisy\mbox{-}minH}}\) functionality achieves both high accuracy and differential privacy, and design a secure two-party computation of \({\mathcal{F}_\mathsf{noisy\mbox{-}minH}}\) that is both computation and communication-efficient. For our second result, we consider a setting in which the outputs of \({\mathcal{F}_\mathsf{minH}}\) or \({\mathcal{F}_\mathsf{privH}}\) have already been released without added noise and show that, under certain conditions on the inputs, this setting also provides privacy guarantees for individuals’ inputs.

5.1.0.4 Differentially-private and secure computation of min-hash.

To build a protocol for differentially-private min-hash we observe that the min-hash count has low global sensitivity. This allows us to define a functionality \({\mathcal{F}_\mathsf{noisy\mbox{-}minH}}\), parameterized by \((\epsilon, \delta)\) which adds (properly-tuned) Laplace noise to the output of the min-hash (See Protocol 20 for details.) We then prove the following theorem about this functionality.

Theorem 38 (Informal). \({\mathcal{F}_\mathsf{noisy\mbox{-}minH}}\) is \((\epsilon, \delta)\)-DP against an adversary corrupting either party.

To realize a protocol for DP estimation of the Jaccard index, we now just need to instantiate this functionality. We show how this can be done efficiently using a PSI-CA functionality in Section 5.4. In Section 5.9, we evaluate the performance when instantiating the PSI-CA protocol [159], [160] in the semi-honest setting. The resulting protocol has better accuracy compared to the prior work [47], [64]. We recommend this protocol to compute differentially-private estimates of the Jaccard index.

5.1.0.5 Privacy after leakage of min-hash output.

While ideally, parties should follow recommendations to add noise to the output of the min-hash count before releasing it (as in functionality \({\mathcal{F}_\mathsf{noisy\mbox{-}minH}}\)), in practice, this may not happen. Further, there may be historical counts that have already been released without added noise. We refer to settings in which such output is released as “output leakage.”

We ask whether any privacy for an individual can be salvaged in this case. Somewhat surprisingly, we show that under certain conditions on the inputs to \({\mathcal{F}_\mathsf{minH}}\) or \({\mathcal{F}_\mathsf{privH}}\), the error of the min-hash approximation itself is sufficient to achieve (variants of) differential privacy–meaning that the presence of an individual element in one of the two input sets cannot be inferred given the output of \({\mathcal{F}_\mathsf{minH}}\) or \({\mathcal{F}_\mathsf{privH}}\). Essentially, the error of the sketch acts as noise to protect the privacy of the inputs. Similar observations that sketching algorithms inherently preserve privacy under certain input restrictions have previously been shown for the Johnson-Lindenstrauss sketch [44], the LogLog sketch [43], [45], and other sketches [46].

We first consider the simpler case of the privacy of an individual once the output of \({\mathcal{F}_\mathsf{privH}}\) has been released. Recall that in this setting a set of private hashes is chosen by the functionality and these hashes are not returned as output of the functionality. Standard differential privacy in this setting requires that conditioned on knowledge of \(A\) and all but one element of \(B\) (denoted by \(x^*\)), the probability that the functionality outputs any value \(\mathsf{out}\) when \(x^* \in B\) versus when \(x^* \notin B\) differs by a factor of at most \(e^\epsilon\) with all but negligible probability.

We note that min-hash is not differentially private in this setting if \(A \cap B\) is either too large or too small. For example, if \(|A \cap B|=0\) when \(x^* \notin B\) and 1 when \(x^* \in B\), then min-hash always outputs 0 in the first case and outputs a count \(\ge 1\) with noticeable probability in the second. We prove the following theorem showing that when this is not the case the min-hash output is differentially private:

Theorem 39 (Informal). If the size of the intersection is a constant fraction of the size of \(A\) and \(B\), then the output of \({\mathcal{F}_\mathsf{privH}}\) is \((\epsilon,\delta)\)-DP for negligible \(\delta\).

We stress that this theorem crucially relies on the fact that the parties, and the adversary, do not have any information about the chosen hashes, and cannot learn the evaluation of the hashes on their own inputs. Note that for this theorem to be useful in a two-party protocol, the parties must compute the hashes under a 2-PC or FHE. This is unlikely to be done in practice. Thus, typically, the parties will locally store the hashes9 during the computation. To understand the privacy of this approach, we consider the case of the \({\mathcal{F}_\mathsf{minH}}\) functionality where the output leakage includes the hash functions as well as the counts.

Unfortunately, in this case there is a problem when trying to argue privacy. In the standard DP setting, we assume that the adversary knows all of the inputs (in this case, all entries in both sets \(A\) and \(B\)) except for some input \(x^*\) and wants to determine, from the output of the computation, whether \(x^*\) was in the other party’s set. If the hashes are known, then the output of min-hash is deterministic: The adversary can exactly reconstruct the min-hash execution for the case when \(x^*\) is in the set and when it is not, and then see which of these matches the output it received. Since the min-hash protocol provides a good approximation of the Jaccard index, the adversary will be able to exactly determine whether or not \(x^* \in B\) with noticeable probability.

Note that the above attack works only if the adversary knows the entirety of both sets \(A, B\) and just tries to distinguish whether \(x^* \in B\) or not. Realistically, especially when the inputs are large, the adversary would not know the entire input of the honest party. More precisely, we assume that given the adversary’s set (and even the intersection between the two sets), the honest party’s set still has sufficiently high min-entropy. With this assumption, we turn to the tool of distributional DP (DDP) [161] which allows us to analyze differential privacy when the distribution of inputs has sufficient uncertainty.

We begin with a relatively strong assumption on the amount of uncertainty the adversary has about the honest set. Specifically, we assume that every element that is not in the intersection is highly unpredictable (i.e., has a high amount of min-entropy), even conditioned on all the other set elements. Under this assumption, we prove the following theorem:

Theorem 40 (Informal). If each non-intersecting item has sufficiently high min-entropy, revealing the hash functions10 together with the min-hash counts (as in the \({\mathcal{F}_\mathsf{minH}}\) functionality) preserves \((\epsilon,\delta)\)-DDP for negligible \(\delta\), as long as the size of the intersection is a constant fraction of the size of \(A\) and \(B\).

Not surprisingly, the proof of this Theorem (given in Section 5.6) leverages the fact that when each element has individual high min-entropy, hashing each element acts as a strong randomness extractor, thus resulting in sufficient random noise for privacy.

5.1.0.6 DDP over a polynomial-size universe.

However, this assumption that every item has high min-entropy is quite strong. For example, consider the setting where each item in \(B\) is chosen from a polynomial-size universe. In this case, while individual items cannot have much min-entropy, the honest party’s set may still collectively have high min-entropy as long as it is large enough. Thus, for our third result, we analyze what happens under this weaker assumption that only the full honest set, instead of each individual item, has high min-entropy.

Note that in this case, we cannot apply the hash function as randomness extractor technique. This is because in order to guarantee that the randomness extractor yields output that is negligibly close to uniform, we must lose superlogarithmic in \(n\) bits of entropy from each input. However, in the case we are currently considering, each element has at most \(O(\log n)\) bits of min-entropy. Further, we in fact have no guarantee that each element has individually high min-entropy (since the elements are not necessarily independent), but only that the total min-entropy of the non-intersection items is high. Nevertheless, we show \({\mathcal{F}_\mathsf{minH}}\) still achieves DDP, by proving a new strong chain rule for min-entropy (see Section 5.8.5).

Specifically, we consider the following class of distributions \(\mathcal{C}\) over secret sets \(R\) of size \(n\):

Theorem 41 (Informal). Assume the set \(R\) is drawn from a distribution \(\mathcal{D} \in \mathcal{C}\). Then the min-hash protocol in the random oracle model (corresponding to functionality \({\mathcal{F}_\mathsf{minH}}\)) preserves \((\epsilon,\delta)\)-DDP for negligible \(\delta\), as long as the size of the intersection is a constant fraction of the size of \(A\) and \(B\).

5.1.0.7 On spoiling bits and leakage resilience.

Consider a distribution over sets of \(n\) elements \(R = R_1, \ldots, R_n\), where each \(R_i\) is chosen from a universe of size \(\ell \in \Omega(n)\). Note that the set \(R\) can have min-entropy \(\Omega(n \lg(\ell))\) while it can still be possible that for every \(i\), the marginal distribution over \(R_i\) has only constant min-entropy (see Example 1.1 in [162]). To deal with such situations, Skórski [163] proves a theorem showing the existence of “spoiling bits.” Namely, given \(R_1, \ldots, R_n\), some additional information known as spoiling bits can be released such that, conditioned on this information, for each \(i \in [n]\), the distribution of \(R_i\) conditioned on \(R_{<i}\), where \(R_{<i}\) denotes \((R_1, \ldots, R_{i-1})\), is nearly flat (in the sense that the min/max entropy gap is at most a small additive constant). Further, the total number of spoiling bits that are released is small.

It is not hard to use Skórski’s result to show that if \(R\) starts out with sufficiently high min-entropy then for a large fraction of \(i\) (those in the set \(V \subseteq [n]\)), the distribution of \(R_i\) conditioned on \(R_{<i}\) has high min-entropy of at least \(\Omega(\log(n))\), while the remaining indices (those in the set \(W = [n]\setminus V)\)) may have low min-entropy.

Unfortunately, this result is very brittle in the sense that the flatness conditions hold only for this particular distribution of \(R\) conditioned on the spoiled bits. Specifically, despite the flatness condition being satisfied for this distribution, the random variables \(R_i\) are not independent of one another. Thus, if additional information is leaked on \(R_j\) after the spoiling bits are computed, then the flatness guarantees may no longer hold for \(R_i\).

In our setting, we require additional leakage \(\{\ell_i\}_{i \in W}\) on the elements \(\{R_i\}_{i \in W}\). One issue is that the set \(W\) (i.e., low min-entropy elements conditioned on the spoiling bits) is only known after the spoiling bits are computed. This leaves us with a dilemma:

To solve this problem, we prove a new variant of the spoiling lemma that computes the spoiling bits at the same time as the additional leakage \(\ell_i\) for \(i \in W\) is computed so that the spoiling bits also contain \(\{\ell_i\}_{i \in W}\), while still maintaining the flatness condition. The types of leakage that can be captured are essentially those such that the leakage \(\ell_i\) for \(i \in W\) can be expressed as a function of \(R_i\) and the leakages \(\{\ell_j: j > i, j \in W\}\). It turns out that the leakage we need for our result has this form.

We state our theorem in general terms as we believe it may find further applications in leakage resilient cryptography. For the formal theorem statement see Theorem 63.

5.1.0.8 A note on composition.

One known weakness of the DDP definition is the lack of a general composition theorem [161]. However, for the specific setting of our min-hash protocols we can leverage the small output of min-hash to argue composition properties after leakage of several outputs. Specifically, suppose that the adversary executes a min-hash protocol with \((\epsilon, \delta)\)-DDP security twice with the same honest party’s input both times. Since each min-hash protocol outputs a single number between \(0\) and \(k\) (i.e., \(\lg k\) bits long), when we apply Theorem 41, the leakage profile increases to a total of at most \(L + 2 \cdot \lg k\) bits. However, according to Theorem 41, as long as \(|L| + 2 \lg k \le c \cdot n \lg \ell\), each protocol execution will preserve DDP, and therefore the composition of the two protocol executions will preserve \((2 \epsilon, 2\delta)\)-DDP. In general, assuming that the initial leakage \(|L|\) is a small constant, this type of DDP composition will hold for \(O(n \cdot \frac{\lg \ell}{ \lg k })\) executions.

5.1.0.9 Comparison to other approaches.

We note that an alternative approach to get a differentially-private estimate of the Jaccard index is via mergeable cardinality estimation sketches (e.g. [47]) to compute (an approximation of) the set intersection cardinality and use this via the inclusion-exclusion principle to compute the Jaccard index. We give a detailed comparison of error from our protocol vs. the best known cardinality estimator [47] in Section 5.9.

5.2.0.1 Differential privacy (DP).

Differential privacy protects the privacy of individuals by limiting an adversary’s ability to learn information about an individual input from the output of a computation [1], [2]. For a good overview of differential privacy and many of the algorithms to achieve it, both in the standard curator setting and in distributed settings, we refer the reader to the book by Dwork and Roth [3].

5.2.0.2 Optimizing secure computation using differential privacy.

Another direction of work has considered how to use DP to reduce the cost of secure computation, especially when we aim for DP-style guarantees from the final output.  [67] first proposed such optimization for the problem of secure summation.  [68] and  [69] applied the differential privacy relaxation to improve efficiency of set-intersection protocols.  [70], and  [164] consider graph-parallel computations and design more efficient solutions with differential private leakages.  [165] consider classic tasks like sorting, merging, and range-query data structures with differential privacy relaxation.  [71] consider multiparty shuffle that allows a differentially private leakage and shows that it suffices to achieve end-to-end differential privacy in the shuffle model of DP.

5.2.0.3 Private sketching.

Sketching algorithms, or “sketches” are sublinear space algorithms for approximating certain properties of large inputs or data streams. The main idea behind sketching algorithms is to generate a compact summary data structure that allows for efficient storage, merging, and processing.

Some recent works [41], [43], [44], [45], [46], [47], [48], [49], [50], [51], [52], [53], [54], [55] have additionally observed that sketches can often also aid in achieving privacy as the inherent loss of information in the sketch can essentially make the sketch itself be differentially private or to only require a little additional noise.

A line of research pertinent to our work involves constructing private sketches for set cardinality estimations  [56], [57], [58], [59], [60]. Recently,  [47] proposed a private mergeable sketch that can be used to estimate the size of the intersection and union of sets.

5.2.0.4 Secure approximation.

Secure approximation studies what functions can be securely approximated without revealing anything beyond the true output [72], [73]. While this notion is quite different from that of differentially private approximation that we consider here, we note that our FHE-based protocol described in Section 5.5 additionally achieves this.

5.2.0.5 Adversarially robust property-preserving hash functions and robust sketching.

Property-preserving hash (PPH) functions allow compressing large input \(x\) into a short digest \(h(x)\) such that some property \(P(x,y)\) can be computed given only \(h(x)\) and \(h(y)\). Adversarially-robust PPH [74], [75], [76], [77] aim to further guarantee that \(P(x,y)\) is correctly computed (i.e., robust) even if the inputs \(x\) and \(y\) are chosen after the hash function \(h\) is fixed. A related concept of robust sketching, e.g. [78], [79] aims to construct sketches that provide good approximations even when inputs are chosen after the randomness of the sketch is fixed.

Both of these approaches are similar to our work in that they also study the consequences of making the choice of hash (or sketch) known to the adversary. However, these works focus on robustness to adversarial inputs, while we instead focus on the privacy of the output when the adversary additionally sees the hash functions.

5.2.0.6 Differentially private min-hash.

DP min-hash aims to make min-hash approximation differentially private by adopting standard DP mechanisms such as adding DP noises to the output to hide individual items in the input sets. In particular,  [64] achieves local DP (LDP) min-hash by either adding Laplacian noise, or using generalized randomized response to perturb the min-hash vectors. Other than this, there are also other earlier efforts. For example,  [65] attempts to use a flawed exponential mechanism to achieve DP. This leads to a faulty claim of \(\epsilon\)-DP, as pointed out in [64].  [66] correctly applies exponential mechanism. However, this results in a large amount of noise being added to the results.

5.3 Preliminaries

A function \(g\) is negligible, denoted \(\mathsf{negl}(\cdot)\), if for every positive integer \(c\), there is an integer \(n_c\) such that for all \(n \ge n_c\) we have \(g(n) \le 1/n^c\). Let \(\kappa\) denote the security parameter.

5.3.0.1 Range of hash functions and the random oracle model.

We model each hash function as a random oracle that maps each item to a real value in \([0, 1]\), and the output of the hash function is long enough to ensure that the probability of any two different items having a hash collision is negligible.

5.3.0.2 Notation.

Let \(\mathcal{U}\) denote the universe of input elements. In this chapter, we will consider two input sets \(A,B \subseteq \mathcal{U}\). Let \(n_A = |A|, n_B = |B|\). Let \(I = A \cap B\), \(n_{I} = |I|\). We will also let \(B_{+x^*} = B \cup \{x^*\}\).

Let \({\mathsf Eq}\) be an equality function; i.e., \({\mathsf Eq}(a, b) = 1\) if \(a=b\) and \(0\) otherwise. For a hash function \(h\) and a set \(A\), we let \(h(A) := \{h(a): a \in A\}.\) Let \(\mathsf{B}(m,p)\) be the binomial distribution with \(m\) trials and each trial having success probability \(p\).

5.3.0.3 Basic min-hash functionality.

We describe the basic min-hash functionality in Protocol 19. In this work, we will consider several variants and consider privacy implications.


Protocol 19 (The Basic Min-Hash Functionality \({\mathcal{F}_\mathsf{minH}}\)).

The functionality is parameterized with a random oracle \(\mathcal{O}\).

Input: \(P_1\) and \(P_2\)’s input vectors \(A = (x^A_1, \ldots, x^A_{n_A})\) and \(B = (x^B_1, \ldots, x^B_{n_B})\).

Minhash:

  1. Randomly sample prefix \(\mathsf{pre}\), which is used to define hash functions \(h_1,h_2,\dots,h_k\), where for \(i \in [k]\), \(h_i(\cdot) := \mathcal{O}(\mathsf{pre} || i || \cdot)\).

  2. For input \(A\), compute the min-hash vector \((u^A_1,u^A_2,\dots,u^A_k)\) as follows:

    1. For each iteration \(j \in [k]\):

      1. For each item \(x^A_i \in A\), compute \(y^A_{i,j} = h_j(x^A_i)\).

      2. Compute the min-hash for iteration \(j\); that is, \(u^A_j = \min \{ y^A_{i,j} : i \in [n_A] \}.\)

  3. Likewise, compute another min-hash vector \((u^B_1,u^B_2,\dots,u^B_k)\) for input \(B\) similarly.

  4. Compute \(c = \sum_{j=1}^k {\mathsf Eq}(u^A_j, u^B_j).\)

Output: Return \((\mathsf{pre}, c)\) to \(P_1\) and \(P_2\).


5.3.0.4 Differential privacy.

The definitions of \((\epsilon,\delta)\)-differential privacy are given below.

Definition 42 (\((\epsilon,\delta)\)-indistinguishability). Two random variables \(X\) and \(Y\) are \((\epsilon,\delta)\)-indistinguishable (denoted as \(X \approx_{\epsilon,\delta}Y\)) if, for all events \(S\), we have \[\Pr[X \in S] \leq e^\epsilon\cdot \Pr[Y \in S] + \delta, ~~ \Pr[Y \in S] \leq e^\epsilon\cdot \Pr[X \in S] + \delta.\]

Definition 43 (Computational \((\epsilon,\delta)\)-indistinguishability). Two random variables \(X\) and \(Y\) are computationally \((\epsilon,\delta)\)-indistinguishable (denoted as \(X \stackrel{c}{\approx}_{\epsilon,\delta}Y\)) if, for any polynomial time adversary \(\mathcal{A}\), it holds \[\Pr[\mathcal{A}(X) = 1] \leq e^\epsilon\cdot \Pr[\mathcal{A}(Y) = 1] + \delta, ~~ \Pr[\mathcal{A}(Y) = 1] \leq e^\epsilon\cdot \Pr[\mathcal{A}(X) = 1] + \delta.\]

Definition 44 ((Computational) \((\epsilon,\delta)\)-differential privacy). Let \(X\) be an input space and \(\simeq_X\) be a relation capturing the notion of neighboring inputs. Let \(\mathcal{M}: X \rightarrow Z\) be a randomized algorithm that takes input \(x\in X\) and outputs a value over \(Z\). We say that the mechanism \(\mathcal{M}\) is \((\epsilon, \delta)\)-differentially private if the following holds: \[\forall x, x' \in X \mbox{ s.t. }x \simeq_Xx': ~ \mathcal{M}(x) \approx_{\epsilon,\delta}\mathcal{M}(x').\] The mechanism \(\mathcal{M}\) is \((\epsilon, \delta)\)-computationally differentially private if \(\forall x, x' \in X \mbox{ s.t. }x \simeq_Xx': ~ \mathcal{M}(x) \stackrel{c}{\approx}_{\epsilon,\delta}\mathcal{M}(x').\)

Definition 45. The global sensitivity of a function \(f:\mathbb{N}^{|\mathcal{X}|} \to \mathbb{R}^k\) is: \[\Delta f = \max_{X, Y \in \mathbb{N}^{|\mathcal{X}|}, \Vert X - Y \Vert_1 = 1} \Vert f(X) - f(Y) \Vert_1\]

Definition 46. The Laplace Distribution (centered at 0) with scale \(b\) is the distribution with probability density function: \(Lap(x|b) = \frac 1 {2b} e^{-|x|/b}.\)

We will write \(Lap(b)\) to denote the Laplace distribution with scale \(b\). Given any function \(f:\mathbb{N}^{|\mathcal{X}|} \to \mathbb{R}^k\), the Laplace mechanism that adds noise drawn from Laplace distribution; that is, given an input database \(X\), the mechanism outputs \(f(X) + (Y_1, \ldots , Y_k),\) where \(Y_i\) are i.i.d. random variables drawn from \(Lap(\Delta f/\epsilon)\). It is known that the Laplace mechanism achieves \((\epsilon, 0)\)-differential privacy [3], Theorem 3.6.

5.3.0.5 Distributional differential privacy (DDP).

We adapt the original definition [161] for our purpose to consider a two-party protocol that takes sets as input more explicitly. Specifically, we consider a computational indistinguishability variant for our DDP definition.

Definition 47 (View of a party in a two-party functionality). Given a two-party functionality \(\mathcal{F}\) with parties \(P_1\) and \(P_2\), let \(\mathsf{view}_{P_1}^\mathcal{F}(A, B)\) denote the view of \(P_1\) for the execution of functionality \(\mathcal{F}\) with \(A\) and \(B\) being the input of \(P_1\) and \(P_2\) respectively. In particular, \(\mathsf{view}_{P_1}^\mathcal{F}(A, B)\) consists of the following (the view of \(P_2\) is defined similarly):

Definition 48 (DP and DDP of a two-party functionality). A two party functionality \(\mathcal{F}\) is (computationally) \((\epsilon,\delta)\)-DP against an adversary corrupting \(P_1\), if for every \((A, B)\) and every \(x^* \in \mathcal{U}\), it holds that \(\mathsf{view}^\mathcal{F}_{P_1}(A, B)\) is (computationally) \((\epsilon,\delta)\)-indistinguishable from \(\mathsf{view}^\mathcal{F}_{P_1}(A, B_{+x^*})\).

Let \(\mathcal{X}\) denote a random variable for two sets over universe \(\mathcal{U}\). Let \(\mathcal{Z}\) denote the random variable measuring the additional auxiliary information known to the adversary. A two party functionality \(\mathcal{F}\) is (computationally) \((\epsilon,\delta,\Delta)\)-DDP against an adversary corrupting \(P_1\), if for every distribution \({\cal D}\in \Delta\) on \((\mathcal{X},\mathcal{Z})\), every \((X = (A, B), Z)\) in the support of \((\mathcal{X}, \mathcal{Z})\) and every \(x^* \in \mathcal{U}\), it holds that \(\big(\mathsf{view}^\mathcal{F}_{P_1}(A, B), Z\big)\) is (computationally) \((\epsilon,\delta)\)-indistinguishable from \(\big(\mathsf{view}^\mathcal{F}_{P_1}(A, B_{+x^*}), Z\big)\). Here, \((A, B)\) and \(Z\) are sampled from \({\cal D}\), and each party may use additional randomness.

DP and DDP against an adversary corrupting \(P_2\) is defined symmetrically.

5.3.0.6 Tail bound for a Binomial distribution.

We will use this well-known inequality.

Lemma 49 ([166]). Consider a Binomial distribution \(B(n,p)\). We have \[\Pr_{X \sim B(n,p)}[X \ge k] \le \binom{n}{k} p^k.\]

5.4 Min-Hash with DP

Since the noiseless min-hash functionality cannot achieve DP as discussed above, we consider a noisy variant that provides DP. We first consider the global sensitivity of \({\mathcal{F}_\mathsf{minH}}\) and use the standard Laplace mechanism to provide DP.

5.4.1 Sensitivity

Let \(B = (x_1^B, \ldots, x_{n_B}^B)\) and \(B_{+x^*}= (x_1^B, \ldots, x_{n_B}^B, {x^*})\), and WLOG, we consider two neighboring inputs \((A, B) \mbox{ and } (A, B_{+x^*})\); the case in which \({x^*}\) is added into \(A\) can be shown symmetrically.

We show how changing the input sets from \(B\) to \(B_{+x^*}\) affects the final count. Let \({x^*}\) be the \((n_B+1)\)-th element of \(B_{+x^*}\). Consider iteration \(j\) of Step 2 in Protocol 19. Since we model each hash function \(h_j\) as a random oracle, \((y^B_{1, j}, \ldots, y^B_{n_B+1, j})\) will be uniformly distributed. Now, consider how the min-hash \(u_j^B\) is computed. The value \({x^*}\) from \(B_{+x^*}\) can affect the min-hash \(u_j^B\) (and thereby the final count \(c\)), only if \(y^B_{n_B+1,j}\) is smaller than \((y^B_{1, j}, \ldots, y^B_{n_B, j})\).

The probability that \(y^B_{n_B+1,j}\) will be less than all \(y^B_{i,j}\)s is at most \(1/(n_B+1)\) by a symmetry argument. Note the final output is computed as the sum of \(k\) of these trials. Let \[S_{x^*}= \left\{j \in [k]: y^B_{n_B+1,j} < \min_{i \in [n_B]} \{y^B_{i,j}\} \right\}.\] Therefore, we consider a binomial distribution \(|S_{x^*}| \sim \mathsf{B}(k,1/(n_B+1)),\) which represents how many iterations \(j\) cause \({x^*}\) to be the min-hash \(u_j^B\). In other words, \(|S_{x^*}|\) captures the sensitivity of min-hash. Therefore, given the failure probability \(\delta\), the following measure can be used as the global sensitivity: \[\mathsf{\sigma}(\delta, k, n_B) := \arg\min_s ~~\{s: \Pr_{h_1, \ldots, h_k}[|S_x| \ge s] \le \delta \}\]

Lemma 50. For any \(\{x_{i}^B\}_{i \in [n_B]}\) and \(x \in \mathcal{U}\), we have \(\mathsf{\sigma}(\delta, k, n_B) \le \binom{k}{s} \cdot \left(\frac{1}{n_B+1}\right)^s\).

Proof. The result immediately follows from Lemma 49. ◻

According to the above lemma, asymptotically, with \(k = \Omega(\kappa)\), we have \(\sigma(\delta = \mathsf{negl}(\kappa), k, n = \Theta(k^2)) = O(\lg\lg k)\).

5.4.2 Noisy Min-Hash

We consider a variant \({\mathcal{F}_\mathsf{noisy\mbox{-}minH}}\) of \({\mathcal{F}_\mathsf{minH}}\) described in Protocol 20.


Protocol 20 (Noisy Min-Hash Functionality \({\mathcal{F}_\mathsf{noisy\mbox{-}minH}}\)).

  1. Run \({\mathcal{F}_\mathsf{minH}}\) and let \((\mathsf{pre},c)\) be the output from \({\mathcal{F}_\mathsf{minH}}\).

  2. Sample \(\zeta^A\) and \(\zeta^B\) from Laplace distributions \(Lap(\frac{\mathsf{\sigma}(\delta/2,k, n_A)}{\epsilon})\) and \(Lap(\frac{\mathsf{\sigma}(\delta/2,k, n_B)}{\epsilon})\) respectively. Let \({\mathsf coins}_A\) and \({\mathsf coins}_B\) be the random coins that the functionality used to sample them.

  3. Let \(\ell_A\) and \(\ell_B\) be the minimum integers satisfying \(\Pr[|\zeta^A| > \ell_A] \le \delta/2\) and \(\Pr[|\zeta^B| > \ell_B] \le \delta /2\). If \(|\zeta_A| > \ell_A\), then truncate it so that it holds \(|\zeta_A| = \ell_A\). Likewise, truncate \(\zeta_B\) if necessary.

  4. Let \(\mathsf{r}(\cdot)\) be a rounding function. Output \(({\mathsf{pre}}, {\mathsf coins}_A, \mathsf{r}(c + \zeta^B))\) to \(P_1\) and \(({\mathsf pre}, {\mathsf coins}_B, \mathsf{r}(c + \zeta^A))\) to \(P_2\).


Theorem 51. \({\mathcal{F}_\mathsf{noisy\mbox{-}minH}}\) is \((\epsilon, \delta)\)-DP against an adversary corrupting either party.

Proof. Based on the definition, \(\mathsf{\sigma}(\cdot)\) works as the upperbound on the sensitivity with probability \(1-\delta/2\). For the honest party’s noise (i.e., \(\zeta_A\) or \(\zeta_B\)), truncation takes place with probability at most \(\delta/2\). Therefore, using the standard Laplace mechanism [3], Theorem 3.6, and since DP is preserved even with post-processing, \({\mathcal{F}_\mathsf{noisy\mbox{-}minH}}\) provides \((\epsilon, \delta)\)-DP. ◻

5.4.2.1 A two party protocol \(\pi_{\mathsf NMH}\) securely realizing \({\mathcal{F}_\mathsf{noisy\mbox{-}minH}}\)

. We construct a two party protocol that securely realizes functionality \({\mathcal{F}_\mathsf{noisy\mbox{-}minH}}\). The protocol takes advantage of an ideal functionality \(\mathcal{F}_{{\mathsf psi\mbox{-}ca}}\) of private set intersection cardinality (PSI-CA) [159] that computes the exact cardinality of the intersection of the two input sets, as described in Protocol 21.


Protocol 21 (Functionality of Private Set Intersection Cardinality \(\mathcal{F}_{{\mathsf psi\mbox{-}ca}}\)).

Input: \(P_1\) has a set \(A\) and \(P_2\) has a set \(B\).

Output: Return \(|A \cap B|\) to \(P_1\) and \(\bot\) to \(P_2\).


In particular, in order to compute the noisy min-hash match counts, the parties construct two sets consisting min-hash values and additional dummy elements and then run \(\mathcal{F}_{{\mathsf psi\mbox{-}ca}}\) on these sets. To reflect the Laplace noise into elements of a set, the protocol uses unary encoding, which introduces some inefficiency. However, as the tail probability of Laplace noise decreases exponentially, the unary encoding length can be bounded with a small value, and the protocol’s overall efficiency is still maintained. Detailed steps of the protocol are provided in Protocol 22.

It is worth noting that the above task could also be implemented using a generic two-party computation (2PC) protocol. However,  [159] proposed an efficient PSI-CA protocol that outperforms 2PC protocols for small input sizes (using the start-to-finish comparison including the 2PC preprocessing steps). See Section 5.9.1 for more details of this PSI-CA protocol. Since our input sets are small, we chose to present protocol \(\pi_{\mathsf NMH}\) using the PSI-CA functionality.

We will prove below that protocol \(\pi_{\mathsf NMH}\) securely realizes \({\mathcal{F}_\mathsf{noisy\mbox{-}minH}}\). It implies that protocol \(\pi_{\mathsf NMH}\) is also \((\epsilon, \delta)\)-computational-DP [142]. The main benefit of the protocol is that the hash computations can be computed locally and the communication complexity of the protocol is sub-linear in \(n_A\) and \(n_B\) even when the protocol implementing \(\mathcal{F}_{{\mathsf psi\mbox{-}ca}}\) has a linear communication complexity.


Protocol 22 (Two-party Noisy Min-hash Protocol \(\pi_{\mathsf NMH}^{\mathcal{O}}\)).

Input: \(P_1\) and \(P_2\)’s input vectors \(A = (x^A_1, \ldots, x^A_{n_A})\) and \(B = (x^B_1, \ldots, x^B_{n_B})\).
Protocol:

  1. \(P_1\) samples prefix \(\mathsf{pre}\) and sends it to \(P_2\). This prefix is used to define hash functions \(h_1,h_2,\dots,h_k\), where for \(i \in [k]\), \(h_i(\cdot) := \mathcal{O}(\mathsf{pre} || i || \cdot)\).

  2. \(P_1\) computes the min-hash vector \((u^A_1,u^A_2,\dots,u^A_k)\) locally exactly as described in \({\mathcal{F}_\mathsf{minH}}\). Likewise, \(P_2\) locally computes \((u^B_1,u^B_2,\dots,u^B_k)\).

  3. \(P_1\) (resp. \(P_2\)) samples \(\zeta^A\) (resp. \(\zeta^B\)) from Laplace distribution \(Lap(\frac{\mathsf{\sigma}(\delta/2,k, n_A)}{\epsilon})\) (resp. \(Lap(\frac{\mathsf{\sigma}(\delta/2,k, n_B)}{\epsilon})\)). Let \({\mathsf coins}_A\) (resp. \({\mathsf coins}_B\)) be the random coins that \(P_1\) (resp. \(P_2\)) used in sampling the noise \(\zeta^A\) (resp. \(\zeta^B\)). As in \({\mathcal{F}_\mathsf{noisy\mbox{-}minH}}\), parties truncate \(\zeta^A\) and \(\zeta_B\) based on \(\ell_A\) and \(\ell_B\), if necessary.

    Let \(Z^B\) be a \(2\ell_B\)-bit vector representing the unary encoding of \(\mathsf{r}(\zeta^B+\ell_B)\). That is, the first \(\mathsf{r}(\zeta^B+\ell_B)\) bits are 1’s and the remaining bits are 0’s. We let \(Z^B_j\) denote the \(j\)th bit of \(Z^B\).

  4. \(P_1\) and \(P_2\) invoke \(\mathcal{F}_{{\mathsf psi\mbox{-}ca}}\) with the following inputs:

    • \(P_1\)’s input: \(\{ (i, u_i^A) : i \in [k]\} \cup \{(j+k, 1) : j \in[2\ell_B]\}\)

    • \(P_2\)’s input: \(\{ (i, u_i^B) : i \in [k]\} \cup \{(j+k, Z^B_j) : j \in[2\ell_B]\}\)

    Let \(out\) be the output to \(P_1\) from functionality \(\mathcal{F}_{{\mathsf psi\mbox{-}ca}}\). Set \(c_A = out - \ell_B\).

  5. \(P_1\) computes \(c^{+} = c^A + \mathsf{r}(\zeta^A)\) and sends \(c^+\) to \(P_2\). \(P_2\) computes \(c^B = c^{+} - \mathsf{r}(\zeta^B)\).

Output: \(P_1\) and \(P_2\) output \((\mathsf{pre}, {\mathsf coins}_A, c^A)\) and \((\mathsf{pre}, {\mathsf coins}_B, c^B)\) respectively.


Proposition 52. Protocol \(\pi_{\mathsf NMH}^{\mathcal{O}}\) described in Protocol 22 securely realizes \({\mathcal{F}_\mathsf{noisy\mbox{-}minH}}\) in the semi-honest model.

Proof. First note that the protocol will correctly compute \(c_A = \mathsf{r}(c + \zeta^B)\) and \(c_B = \mathsf{r}(c + \zeta^A\)) as in \({\mathcal{F}_\mathsf{noisy\mbox{-}minH}}\). For privacy, when \(P_1\) is corrupted, the only message to simulate is \(c_A\), the output from \(\mathcal{F}_{{\mathsf psi\mbox{-}ca}}\). Since the protocol is in the \(\mathcal{F}_{{\mathsf psi\mbox{-}ca}}\) hybrid, this message \(c^A\) can be perfectly simulated by using the output from \({\mathcal{F}_\mathsf{noisy\mbox{-}minH}}\). The simulator can also make sure that \(\mathsf{pre}\) and \(\zeta^A\) are correctly sampled by using \(\mathsf pre\) and \({\mathsf coins}_A\) from \({\mathcal{F}_\mathsf{noisy\mbox{-}minH}}\). For corrupted \(P_2\), first the simulator makes sure that \(\mathsf pre\) and \(\zeta^B\) are correct by using \(\mathsf pre\) and \({\mathsf coins}_B\) from \({\mathcal{F}_\mathsf{noisy\mbox{-}minH}}\). The message \(c^+ = c^B + \mathsf{r}(\zeta^B)\) can also be perfectly simulated, since the simulator can obtain \(c^B\) from \({\mathcal{F}_\mathsf{noisy\mbox{-}minH}}\). ◻

5.5 Noiseless Protocol in the Private Hash Setting

In Protocol 23, we describe the min-hash protocol \({\mathcal{F}_\mathsf{privH}}\) in the private hash setting. We show that if \(J(A, B)\) is a constant, there exist parameter regimes where \({\mathcal{F}_\mathsf{privH}}\) without noise satisfies differential privacy. Our observation is that the final count \(c\) follows a binomial distribution in the private hash setting, which can be treated as noise to obscure the sensitivity.


Protocol 23 (Min-Hash in the Private Hash Setting \({\mathcal{F}_\mathsf{privH}}\)).

\({\mathcal{F}_\mathsf{privH}}\) works exactly the same as \({\mathcal{F}_\mathsf{minH}}\) except that it outputs only the final count \(c\) (with the prefix \({\mathsf{pre}}\) hidden to the participants).


Theorem 53. For any constant \(\epsilon> 0\), if \(k = k(\epsilon, \kappa) \in \Omega(\kappa), n_A/k \in \Omega(\kappa), n_B/k \in \Omega(\kappa)\), and \(J(A, B) \in (0, 1)\) is a constant independent of \(\kappa\), then \({\mathcal{F}_\mathsf{privH}}\) is \((\epsilon,\delta)\)-DP with \(\delta \in \mathsf{negl}(\kappa)\).

Proof. WLOG, let \(B = (x_1^B, \ldots, x_{n_B}^B)\) and \(B_{+x^*}= (x_1^B, \ldots, x_{n_B}^B, {x^*})\). Let \(p = J(A, B)\), \(s = \sigma(\delta, k, \min(n_A, n_B)) = O(\lg\lg \kappa)\). Recall the definition \(S_{x^*}\) in Section 5.4.1 and let \(K_{x^*}= [k] \setminus S_{x^*}\). Note that for the iterations in \(K_{x^*}\), the min-hash matches (denoted as \(c_{K_{x^*}}\)) for both \((A, B)\) and \((A, B_{+x^*})\) will be identically distributed. This match count \(c_{x^*}\) will work as an additive noise. Since \(h_1, \ldots, h_k\) are private, we have \(c_{K_{x^*}} \sim \mathsf{B}(k-s, p).\) By applying Lemma 54 below, we conclude that \({\mathcal{F}_\mathsf{privH}}\) is differentially private. ◻

Lemma 54. Consider a Binomial distribution \(\mathsf{B}(n,p)\), where \(n \in \Omega(\kappa)\) and \(p \in (0,1)\) is a constant independent of \(\kappa\). Then, for any constant \(\epsilon\) and \(s = O(\lg\lg \kappa)\), there are \(a, b \in [n]\) with \(a < np < b\) such that

The proof of the lemma is found in Section 8.3.1.

5.5.0.1 Remark.

While \({\mathcal{F}_\mathsf{privH}}\) could be considered as a trusted curator model, a two-party protocol realizing it can be constructed without relying on a trusted curator. In particular, the computation of \((u^A_1, \ldots, u^A_k)\) (including all \(n\) hash evaluations) can be performed locally under a threshold FHE so that only the encryption of them may be sent to party \(B\). Then, by computing the remaining steps under FHE and delivering the result using a threshold decryption, the protocol will securely realize \({\mathcal{F}_\mathsf{privH}}\) in the semi-honest setting. We note that the resulting protocol has sublinear communication in \(n\) since only the \(k\) inputs to the comparisons need to be communicated.

5.6 DDP of \({\mathcal{F}_\mathsf{minH}}\)

In this section, we show that there are parameter regimes where the public min-hash protocol \({\mathcal{F}_\mathsf{minH}}\) can satisfy DDP without adding noise. In Protocol 24, we first describe the family of distributions we consider in the context of our min-hash protocol. The distribution models a situation in which the adversary, having corrupted one of the two parties, has access to the view of the party and even the actual intersection. However, the adversary does not know the other party’s input set (except from the intersection).


Protocol 24 (Distribution Family \(\Delta_\mathsf{PH}\)).

Parameterized with \((n_A, n_B, n_I)\), a distribution \({\cal D}_{A, B}\) in this family samples \((A, B)\) such that

Output:


Below, we show that \({\mathcal{F}_\mathsf{minH}}\) achieves DDP under certain circumstances.

Theorem 55. For every constant \(\epsilon > 0\), consider \({\mathcal{F}_\mathsf{minH}}\) in the random oracle model with \(k = k(\epsilon, \kappa)\), where \(k \in \Omega(\kappa)\). Let \(R = B \setminus I\), each element of which has min-entropy at least \(\kappa\). Let \(n_A/k, n_B/k \in \Omega(\kappa)\), and \(n_I/n_A \in (0, 1)\) is a constant independent of \(\kappa\). Then, \({\mathcal{F}_\mathsf{minH}}\) is computationally \((\epsilon,\delta,\Delta_\mathsf{PH})\)-DDP against an adversary corrupting \(P_1\) with \(\delta\in \mathsf{negl}(\kappa)\). DDP against an adversary corrupting \(P_2\) holds when the parameters are set symmetrically.

Theorem 56. For security parameter \(\kappa\), every constant \(\epsilon > 0\), and every constant \(\gamma \in (0,1)\), consider \({\mathcal{F}_\mathsf{minH}}\) in the random oracle model with \(k = k(\epsilon, \kappa)\), where \(k \in \Omega(\kappa \cdot \lg\lg\kappa)\). Let \(R = B \setminus I\) be a set of size \(n_R\), with \(n_R/k^2 \in \Omega(\kappa)\). Let the universe \(\mathcal{U}\) be of size \(n_R \cdot \ell\), where \(\ell = \Omega(n_R^3)\). Assume the secret set \(R\) is chosen uniformly from all subsets of \(\mathcal{U}\) of size \(n_R\), conditioned on arbitrary leakage on \(R\) of length \(L\), where \(n_R \lg \ell - L \ge \frac{8n_R}{9} \lg \ell + 2n_R\). Let \(|I| \in \Theta(n)\). Then the output of \({\mathcal{F}_\mathsf{minH}}\) achieves computational \((\epsilon, \delta, \Delta_\mathsf{PH})\)-DDP with \(\delta \in \mathsf{negl}(\kappa)\) against an adversary corrupting \(P_1\). DDP against an adversary corrupting \(P_2\) holds when the parameters are set symmetrically.

5.6.0.1 Remark.

An easy way to realize \({\mathcal{F}_\mathsf{minH}}\) is to have each party locally hash their inputs using the \(k\) public hash functions and to locally compute the minimum for each iteration. The parties can then run a simple two-party computation to compute the number of times these minimums match. We note that this protocol has communication and computation that is sublinear in the input size as it only depends on the number of hash functions. By Theorems 55 and 56 this protocol achieves DDP when the conditions of either of the theorems are satisfied.

5.7 Proof of Theorem 55

We first give the intuition of the proof. We assume that each of the non-intersecting elements has high min-entropy. WLOG, consider an adversary corrupting \(P_1\). The view of the adversary will be \[\mathsf{view}^{{\mathcal{F}_\mathsf{minH}}}_{P_1}(A, B) := (A,c, h_1, \ldots, h_k).\] As shown above, the sensitivity can be upper-bounded by a small value \(s\).

Unlike \({\mathcal{F}_\mathsf{privH}}\), however, when we show the existence of sufficient noise from the remaining iterations, we need to take the additional leakage into consideration.

First, since the hash functions are public, iterations are no longer independent of each other as needed by the analysis in Section 5.5. We address this issue by employing the fact that each of the non-intersecting items has high min-entropy. In the random oracle model, as long as the adversary does not query hash function \(h\) on some point \(x\), \(h(x)\) is uniformly random to the adversary. Since the non-intersecting items have high min-entropy, the adversary is negligibly likely to query any of them to the hash functions, thus guaranteeing independence.

5.7.0.1 Good iterations and Poisson Binomial distribution.

Now, to see how the remaining iterations still hide the sensitivity even with the public hash functions, let \(R = B \setminus I\). For the remaining \(k-s\) iterations, the high min-entropy of each element in \(R\) will jitter the final count. In particular, consider the \(j\)th hash function \(h_j\) in the protocol (among the \(k-s\) remaining iterations) and let \[v_j^A = \min h_j(A),~~ v_j^I = \min h_j(I),~~ v_j^R = \min h_j(R).\] Suppose \(v_j^A = v_j^I\). Then, if \(v_j^R \ge v_j^I\), the min-hash \(u_j^A\) of \(A\) will be equal to the min-hash \(u_j^B\) of \(B\) (both of which are equal to \(v_j^I\)) and the final count \(c\) will be incremented due to this \(j\)th iteration. However, if \(v_j^R < v_j^I\), then it will be \(u_j^A \ne u_j^B\), and the final count will not be incremented. This way, the distribution of \(v_j^R\) will jitter the final count. The above discussion can be formalized into the following definition.

Definition 57 (\(\theta\)-good iteration). Let \(n_R = n_B - n_I\), we define \(\mathsf{good}_\theta(h_j, A, I, n_B)\) to be true if and only if the following holds: \[\begin{aligned} &\min h_j(A) = \min h_j(I), ~\mbox{and}~\\ &\min h_j(I) \in \left[1-\left(\frac{1}{2}+\theta\right)^{1/n_R}, 1-\left(\frac{1}{2}-\theta\right)^{1/n_R}\right]. \end{aligned}\]

The second condition of the definition requires that \(\min h_j(I)\) is somewhere in the middle (parameterized by \(\theta \in \Theta(1)\)) so that the distribution of \(R\) (i.e., random \(v_j^R\)) may reduce the final count with a decent chance (and also keep the count with a decent chance). As long as \(n_I/n_A\) is a constant fraction, there are sufficiently many \(\theta\)-good iterations, although we lose some iterations. In particular, if we let \(k_g\) be the number of good iterations, we have \(k_g = \Theta(k)\).

With public hash functions and thereby \(\min h_j(I)\) being leaked to the adversary, it turns out that the noise from the \(k_g\) iterations follows a Poisson Binomial distribution, which is a generalization of a Binomial distribution where each trial has a different success probability. However, using the techniques of [167], we can still show that this distribution works as a good noise to hide the private data.

5.7.1 Proof

WLOG, we consider two neighboring inputs \((A, B) \mbox{ and } (A, B_{+x^*}).\) DDP for the case in which \({x^*}\) is added into \(A\) can be shown symmetrically. We prove the theorem by a hybrid argument. In particular, we define a slightly different ideal functionality \({\mathcal{F}_\mathsf{minH}}^{(1)}\) as follows:

We set up the following hybrids. We will argue that for any \({x^*}\in \mathcal{U}\) and over \((A, B, I) \leftarrow\Delta_\mathsf{PH}\), it holds \[\begin{aligned} & (\mathsf{view}^{{\mathcal{F}_\mathsf{minH}}}_{P_1}(A,B), I) \stackrel{c}{\approx} (\mathsf{view}^{{\mathcal{F}_\mathsf{minH}}^{(1)}}_{P_1}(A,B), I) \\ & ~~~~~ \approx_{\epsilon, \delta} (\mathsf{view}^{{\mathcal{F}_\mathsf{minH}}^{(1)}}_{P_1}(A, B_{+x^*}), I) \stackrel{c}{\approx}(\mathsf{view}^{{\mathcal{F}_\mathsf{minH}}}_{P_1}(A, B_{+x^*}), I) \end{aligned}\] for any constant \(\epsilon> 0\) and for some \(\delta\in \mathsf{negl}(\kappa)\), as long as each element in \(B \setminus I\) has high min-entropy.

Recall that the min-entropy of each element \(x^B_i\) with \(i \in B\setminus A\) is at least \(\kappa\). Therefore, the probability that any adversary making at most polynomially many oracle queries queries any \(x^B_i\) is \(\mathsf{negl}(\kappa)\). Conditioned on the adversary not querying any such \(x^B_i\), any \(y^B_{i,j}\) for \(j \in [k]\) is chosen uniformly random from \(\mathcal{U}\). The same argument shows \(\mathsf{view}^{{\mathcal{F}_\mathsf{minH}}}_{P_1}(A,B_{+x^*}), I) \stackrel{c}{\approx} (\mathsf{view}^{{\mathcal{F}_\mathsf{minH}}^{(1)}}_{P_1}(A,B_{+x^*}), I)\). Therefore, we are left only to show \((\mathsf{view}^{{\mathcal{F}_\mathsf{minH}}^{(1)}}_{P_1}(A,B), I) \approx_{\epsilon,\delta}(\mathsf{view}^{{\mathcal{F}_\mathsf{minH}}^{(1)}}_{P_1}(A, B_{+x^*}), I)\).

5.7.1.1 DDP of \({\mathcal{F}_\mathsf{minH}}^{(1)}\).

We show \((A, I, h_1, \ldots, h_k, c) \approx_{\epsilon,\delta}(A, I, h_1, \ldots, h_k, c_{+{x^*}})\), where \(c\) is the final count from \({\mathcal{F}_\mathsf{minH}}^{(1)}(A, B)\) and \(c_{+{x^*}}\) is the final count from \({\mathcal{F}_\mathsf{minH}}^{(1)}(A, B_{+x^*})\). We show how to leverage the uncertainties of \(x^B_i \in R = B \setminus A\) so that good iterations work like the needed noise to guarantee DP.

Lemma 58. For any \(A, I, n_B\) and \(n_R = n_B - n_I\), we have \[p_\theta \stackrel{def}{=} \Pr_{h}[\mathsf{good}_\theta(h, A, I, n_B)] \ge \left(\left(\frac{1}{2}+\theta \right)^{\frac{n_A}{n_R}} - \left(\frac{1}{2}-\theta \right)^{\frac{n_A}{n_R}}\right) \cdot \frac{n_I}{n_A} ~~.\]

The proof is found in Section 8.3.2. This lemma shows that a random hash leads to a good iteration with probability \(p_\theta\), which is constant in our setting based on the assumption about \(n_A, n_I, n_R\).

Recall that \(S_{{x^*}}\) was the random variable that represents the set of iterations \(j\) such that the min-hash \(u_j^B\) comes from \({x^*}\) when \(P_2\)’s input is \(B_{+x^*}\). From Lemma 50, with overwhelming probability \(|S_{{x^*}}| = O(\lg\lg\kappa)\).

Now, fix \(A, I, {x^*}\) and \(h_1, \ldots, h_k\) and let \(G_{\theta}\) be the set of iterations \(j\) in which a \(\theta\)-good event takes place; i.e., \[G_{\theta} = \left\{ j \in [k]: \mathsf{good}_\theta(h_j, A, I, n_B) \right\}.\]

Let \(K_{\theta} = G_{\theta} \setminus S_{{x^*}}\). The following lemma shows that the \(\theta\)-good events takes place \(\Theta(\kappa)\)-many times, with overwhelming probability.

Lemma 59. Suppose \(k = \Theta(\kappa)\), \(n_B = \Omega(\kappa^2)\), and \(p_\theta \in \Theta(1)\). Let \(s = |S_{x^*}|\). Then, we have \[\Pr_{h_1, \ldots, h_k}\left[ |K_\theta| > \frac{2}{3} (k-s) p_\theta \right ] \ge 1 - \mathsf{negl}(\kappa).\]

The proof is found in Section 8.3.3.

5.7.1.2 Our goal.

For a set \(W\), define \(c_W \stackrel{def}{=} \sum_{j \in W} \mathsf{Eq}(u^A_j, u^B_j)\). Let \(\overline K_\theta := [k] \setminus K_\theta\). Note that the contributions to the final output can be divided into two parts:

Essentially, for any final count \(q\), we are interested in comparing the two probabilities: \[\Pr[c_{\overline K_\theta} + c_{K_\theta} = q] \mbox{~and~} \Pr[c^{{+x^*}}_{\overline K_\theta} + c^{{+x^*}}_{K_\theta} = q].\]

Following our discussion on sensitivity in Section 5.4, the difference of \(c_{\overline K_\theta}\) and \(c^{{+x^*}}_{\overline K_\theta}\) is upper-bounded by \(s = O(\lg\lg \kappa)\). Note that we have \(c_{K_\theta} = c^{{+x^*}}_{K_\theta}\) because \(j \in K_\theta\) implies \(j \not \in S_{{x^*}}\). Therefore, we only need to analyze the single distribution of \(c_{K_\theta}\) as a noise and compare the following two probabilities: \[\Pr[c_{K_\theta} = q] \mbox{~~and~} \Pr[c_{K_\theta}+s = q].\]

5.7.1.3 Distribution of \(c_{K_\theta}\).

We have \(c_{K_\theta} = \sum_{j \in K_\theta} c_j,\) where \(c_j = {\mathsf Eq}(u_j^A, u_j^B)\). Note that since we have \(j \in K_\theta\), a \(\theta\)-good event takes place in iteration \(j\), i.e., \(\min h_j(A) = \min h_j(I)\).

Let \(\gamma_j = 1 - \min h_j(I)\). Note that the hash of each item \(R\) is randomly distributed in \({\mathcal{F}_\mathsf{minH}}^{(1)}\). Therefore, the probability that \(c_j = 1\) is \((\gamma_j)^{n_R}\), in which case every hash of items in \(R\) must be at least \(\min h_j(I)\).

Let \(\eta_{-\theta} = 1/2-\theta\) and \(\eta_{+\theta}= 1/2+\theta.\) Since \(j\) is a good iteration, we have \((\gamma_j)^{n_R} \in [\eta_{-\theta}, \eta_{+\theta}].\) Therefore, letting \(p_j = (\gamma_j)^{n_R}\), we have \(c_j \sim \mathsf{Ber}(p_j)\), where \(\mathsf{Ber}\) denotes the Bernoulli distribution. Since these Bernoulli distributions are independent from each other, we can apply Lemma 60 below to conclude that \(C_{K_\theta} \approx_{\epsilon,\delta} C_{K_\theta}+s\).

For \(j \in [n]\), consider \(c_j \sim \mathsf{Ber}(p_j)\). With \(p_J = \{p_j\}_{j=1}^n,\) let \(\mathsf{PB}(n, p_J)\) denote the distribution of \(\sum_{j \in [n]} c_j\). This distribution is called an Additive Poisson Binomial distribution.

We conclude the proof by showing that the Additive Poisson Binomial distribution with appropriate parameters satisfies the following DP-like property.

Lemma 60. Consider an Additive Poisson Binomial distribution \(\mathsf{PB}(n, p_J)\), where \(n \in \Omega(\kappa)\) and for each \(p_j\), it holds that \(p_j \in [1/2 - \theta, 1/2 + \theta]\) where \(\theta \in (0, 1/2)\) is a constant independent of \(\kappa\). Then, for any constant \(\epsilon\) and \(s = \Theta(\lg\lg \kappa)\), there are \(a, b \in [n]\) such that

The proof is found in Section 8.3.4.

5.8 Highlights of Proof of Theorem 56

Here, we highlight only the important parts of the proof of Theorem 56. The full proof can be found in Section 8.3.5. We show that \({\mathcal{F}_\mathsf{minH}}\) satisfies DDP even when the size of the universe \(\mathcal{U}\) of size \(n_R \cdot \ell\) is polynomial in \(\kappa\) with \(\ell = \Omega(n_R^3)\), and the secret set \(R\) is chosen from the uniform distribution on \(\mathcal{U}\), conditioned on arbitrary leakage on \(R\) of length \(L\), where \(L \le n_R (\lg \ell - 3 \lg n_R - 2)\). WLOG, we assume that the adversary corrupts \(P_1\).

We set \(n_R' := n_R/3\); looking forward, it is the size of a subset \(R' \subset R\), each of whose elements has high remaining min-entropy even after leakage (that we will define in the proof) is considered.

5.8.1 Min-hash Graph

Consider running the min-hash protocol \({\mathcal{F}_\mathsf{minH}}\) with \(k\) iterations such that \(k_g\) of them belong to \(G_\theta\). For this, we consider all the hash outputs in two different stages and define the following sets: \[H_1 = \{ h_j(A_{+{x^*}})\}_{j=1}^k, ~ H_2 = \{h_j(\mathcal{U}\setminus A_{+x^*})\}_{j=1}^k.\] Since we are in the random oracle model, each hash value is chosen uniformly at random. For our analysis, we construct the following bipartite graph \((\mathcal{X},\mathcal{Y},\mathcal{E})\), which we call the min-hash graph, based on the sets \(A, I\) and \({x^*}\) along with the hash functions as follows:

  1. MinhashG\(_{H_1}(A, I, {x^*}, H_2)\):

  2. Set \(\mathcal{X} = \mathcal{U}\setminus A_{+{x^*}}\). In other words, the graph considers all potential elements that could be in \(R = B\setminus I\). A distribution of \(R\) is equivalent to a distribution of how to choose \(n_R\) nodes from \(\mathcal{X}\). Note that \(H_1\) determines \(G_\theta\) (based on the hash values of \(A\) and \(I\)). We set \(\mathcal{Y}= G_\theta\). In other words, \(\mathcal{Y}\) corresponds to all the good iterations that could potentially positively contribute to the final count.

  3. Let \(p_j = \min h_j(I)\). Use \(H_2\) to determine the set of edges: \[\mathcal{E} = \{ (i, j): (i, j) \in \mathcal{X}\times \mathcal{Y}\mbox{ and } h_j(x_i) < p_j = \min h_j(I) \}.\] In other words, existence of an edge \((i,j)\) means that if node \(i\) belongs to \(R\), iteration \(j\) will not contribute to the final count.

  4. Output the resulting bipartite graph \((\mathcal{X}, \mathcal{Y}, \mathcal{E})\).

image

1 2 3 4 5 6 7 8 9 10 11
\(h_1\) 0.83 0.25 0.77 0.85 0.93 0.35 0.86 0.92 0.49 0.21 0.5
\(h_2\) 0.62 0.83 0.27 0.59 0.63 0.26 0.4 0.26 0.72 0.36 0.6
\(h_3\) 0.68 0.11 0.67 0.29 0.82 0.3 0.62 0.23 0.67 0.35 0.7
\(h_4\) 0.02 0.43 0.22 0.58 0.69 0.67 0.93 0.56 0.11 0.42 0.8

5.8.1.1 Example.

Let the universe be \(\mathcal{U}= [11]\). Let \(A = \{1, 2, 3, 4\},\) \(I = \{2, 3\}\), \({x^*}= 11\). Let the threshold range for the \(\theta\)-good iterations be \([0.2, 0.7]\). Assume that our protocol runs in 4 iterations using the hash functions defined in table [examplehash].

Figure [fig:bigraph] shows the constructed min-hash graph. We have \(\mathcal{X}= \{5, 6, \ldots, 10\}\) and \(\mathcal{Y}= \{h_1, h_2\}\); \(h_3\) has been ruled out since \(p_3 = h_3(2) = 0.11 \not \in [0.2, 0.7]\), and \(h_4\) has been ruled out because \(\min h_4(A) \ne \min h_4(I)\). Moreover, we have \(p_1 = h_1(2) = 0.25\) and \(p_2 = h_2(3) = 0.27\). Note that \((8, h_2) \in \mathcal{E}\), because \(h_2(8) < p_2\).

5.8.2 Fixed Subsets \((R',T)\) of Secret Items and Good Iterations

We fix \(H_1\) and thereby the nodes \(\mathcal{X}\) and \(\mathcal{Y}\) of the min-hash graph. In this section, as the first step, we fix subsets \(R' \subset \mathcal{X}\) and \(T \subseteq \mathcal{Y}\) and analyze the noise over the choice of \(H_2\). In other words, we are treating \(H_2\) as private from the adversary. Extending this, in the next section, we will consider the actual protocol setting where the hash functions are public and then analyze the noise over a distribution of \(R'\).

5.8.2.1 Edge distribution in the min-hash graph.

The probability (over the choice of \(H_2\)) that an edge \((i,j)\) forms is exactly equal to \(p_j\). Moreover, since we are in the random oracle model, the probability that \((i,j)\) forms is independent of the probability that any other edge in the graph forms.

5.8.2.2 Noise distribution.

We are interested in the probability \(E^{R'}_{T,r}\) over the choice of \(H_2\) that the final count is reduced by exactly \(r\) due to the elements of \(R'\) over a bundle \(T\) of iterations. In the random oracle model, the probability depends only on the size of the sets \(n' = |R'|\) and \(k_b = |T|\). Therefore, we will often use the notation \(E^{n'}_{k_b,r} = E^{R'}_{T,r}\). We will sometimes even omit \(k_b\) and write \(E^{n'}_r\). Observe that \(E^{n'}_{r}\) is another way of representing an Additive Poisson Binomial distribution. That is, \(E^{n'}_{k_b,r} = \Pr[ \mathsf{PB}(k_b, p_J) = r ].\) Therefore, based on Lemma 60, we have the following:

Corollary 61. Let \(k_b \in \Omega(\kappa)\), and consider any \(H_1\) that makes \(|\mathcal{Y}| > k_b\) in the min-hash graph construction. For any \(s = O(\lg\lg\kappa)\), any constant \(\epsilon\), there are \(a, b \in [k_b]\) such that over the choice of \(H_2\), we have

The above indicates that the distribution over \(r\) is amenable for use as a noise distribution in a differential privacy context.

5.8.3 Noise Over the Choice of \(R'\) with Public Hash Functions

Our main technical challenge is to show that the properties needed for differential privacy hold even when the hash functions are public.

For this, we first fix \(H_1\) and \(H_2\). Then, we consider the derived min-hash graph \(G = (\mathcal{X}, \mathcal{Y}, \mathcal{E})\). Let \({\cal D}\) be the distribution of \(R'\). For any set \(T\) of iterations of size \(k_b\) and any integer \(r\), let \(I_{R', T, r}\) be the indicator random variable that is set to \(1\) if set \(R'\) contributes \(-r\) to the total count in the min-hash protocol. We define a random variable \(D_{T,r}\) that is the probability that \(R'\) contributes to the noise reduction \(r\) over iterations in \(T\): \[D_{T,r}({\cal D}) := \Pr_{R' \sim {\cal D}}[ I_{R', T, r} ] = \sum_{R'} \Pr_{R' \sim {\cal D}}[R'] \cdot I_{R', T, r}.\]

5.8.3.1 Conditions for the hash functions.

Ideally, we would like to show the following:

The universal quantifier for \(H_1\) and \(H_2\) in the above can be slightly relaxed so that the condition holds with all but small probability over the choice of the hash functions, which can be captured by showing that \(D_{T,r}\) is close to its mean \(E_{\hat k,r}^{n_R'}\) (and then applying Corollary 61).

5.8.3.2 Geometric collision property.

This is essentially to show that \(D_{T,r}\) is strongly concentrated around its mean. We could try to apply Chernoff bound to show the concentration property, but we cannot do so because \(I_{R'_i, T, r}\) and \(I_{R'_j, T, r}\) are not necessarily independent if \(R'_i \cap R'_j \neq \emptyset\). Therefore, we instead use Chebyshev for bounding the tail, which requires \(D_{T,r}\) to have small variance. Thus, our next goal is to upperbound \(\mathsf{Var}[D_{T,r}]\). To do so, we introduce a property of distributions \(\mathcal{D}\) over sets \(R'\) which we call the “Geometric Collision Property”. In a nutshell, this property states that the probability that two sets \(R'_1, R'_2\) drawn independently from \(\mathcal{D}\) have intersection of size \(z\) is at most \((\frac{1}{n^{0.5}})^z\) for all \(z \in [n']\). We show that \(\mathsf{Var}[D_{T,r}]\) can be bounded for any distribution over sets \(R'\) that has this property.

Definition 62 (Geometric Collision Property). Let \(\mathcal{D}\) be a distribution over sets \(R'\) of size \(n'_R\). We say that \({\mathcal{D}}\) has the Geometric Collision Property if for all \(z \in [n'_R]\) \[\Pr_{R'_i, R'_j \sim {\mathcal{D}}} \left [|R'_i \cap R'_j| = z \right ] \leq \left ( \frac{1}{\sqrt{n_R}} \right)^z.\]

Based on this property, we can show the following lemma.

Lemma 1. Let \(k_b \in \Omega(\kappa)\), and consider any \(H_1\) that makes \(|\mathcal{Y}| > k_b\) in the min-hash graph construction. Let \({\cal D}\) be a distribution over sets of size \(n_R'\) with geometric collision property. For any set \(T\) of size \(k_b \in \Omega(\kappa)\), there exist \(a, b \in [k_b]\), such that with probability \(1-O(\frac{k_b \cdot \lg^3(\kappa)}{\sqrt{n_R}})\) over choice of \(H_2\), the following holds:

The proof is found in Section 8.3.6.

5.8.3.3 Multiple bundles of iterations towards DDP with negligible \(\delta\).

We are not quite done yet. Using the above lemma, we are only able to reduce the failure probability only to \(\sim 1/\sqrt{n}\), whereas we would like the failure probability to be negligible. In order to do that, we split the “good” iterations into \(u\) bundles, where \(u\) is a small superconstant number \(u = \lg\lg \kappa\), and argue that with overwhelming probability at least one bundle serves as a good noise. Note that hash outputs are independent in each bundle and so the probability that all \(u\) bundles fail should be \(~(\frac{1}{\sqrt{n}})^u\), which is negligible. For this, we set the parameter \(k_b = k_g/u\), where \(k_g\) is the number of good iterations.

5.8.4 Geometric Collision Property In the Face of Leakage

We conclude the proof by showing that \(R'\) indeed has the geometric collision property. It is not hard to see that the uniform distribution over all sets \(R'\) of size \(n'\) from a universe of size \(n' \cdot \ell\) (where \(\ell \in \Omega(n^3)\)) satisfies the “Geometric Collision Property”. It would seem, therefore, that we could take this as our secret distribution and the analysis would be complete. Unfortunately, even for the case in which the distribution is sets of size \(n'\) chosen uniformly at random from the universe, the analysis is not straightforward. The difficulty stems from the fact that the “noise” in the protocol is tied to the input itself. Therefore, if information about the input is leaked in any other part of the protocol, then the noise distribution changes and may no longer satisfy the required properties. Specifically in our case, learning the number of matches across the two parties’ sets with respect to some of the hash functions leaks information about the secret set of the honest party (since the secret set affects those counts).

5.8.4.1 Strong chain-rule for min-entropy.

We first observe that our initial min-entropy in the distribution over secret sets \(\mathcal{R}\) is high (approximately \(\frac{8n}{9} \lg \ell + 2n\)) and that the entire information leaked about \(R\) from the counts of the iterations that are not \(\theta\)-good is small. We can lower-bound the remaining min-entropy in \(\mathcal{D}\), therefore, using the weak chain rule for min-entropy [168], Lemma 2.2.

If we want to use the weak chain rule to lower bound the remaining min-entropy with all but \(2^{-\kappa}\) probability, however, we need to take a hit of \(\kappa\) in the min-entropy. Recall that each individual element in \(R\) can be viewed as being chosen from a set of size \(\ell\) and thus has min-entropy of at most \(\lg(\ell) \ll \kappa\). Thus, after applying the weak chain rule and losing more than \(\kappa\) bits of min-entropy, we can have certain elements that have only constant min-entropy, thus implying that collisions are likely in those positions. So the weak chain rule, while leaking only a small number of bits overall, can ruin the geometric collision property. Even worse, the min-entropy definition doesn’t rule out the case in which all elements of \(R\) (i.e. the marginal distributions over each element in \(R\)) have only constant min-entropy, while the total min-entropy in \(R\) remains high!

This phenomenon has been previously observed and studied in the literature [163]. One way to deal with such a counter-intuitive situation is to actually leak a small amount of additional information, known as “spoiled” bits. This will lower the total min-entropy in \(R\), but will ensure that a large fraction of blocks in \(R\) still have high min entropy of at least \(1.5\lg(n)\). We extend the techniques of [163] to produce spoiling leakage so that the min-entropy in \(R\) still stays high in our protocol. We discuss more details about the strong chain rule in the next section.

5.8.5 Strong Chain Rule

Our strong chain rule considers min-entropy where leakage functions \(\ell_1(\cdot), \ldots, \ell_n(\cdot)\) are additionally considered. We describe our theorem in a general way, and we hope that it may find future applications in leakage-resilient cryptography.

5.8.5.1 Sequence of random variables.

Recall that \(R\) is the set of secret items in the min-hash protocol. Here, we treat \(R\) as a sequence of block-by-block random variables \(R = (R_1,\dots,R_n)\), associated with (potentially randomized) leakage functions \(\ell_1(\cdot), \ldots, \ell_n(\cdot)\) with randomness \(\rho_1, \ldots, \rho_n\). You can think of the blocks as coming in a streaming fashion in order of \(R_1, R_{2}, \ldots, R_n\).

5.8.5.2 Leakage functions.

Loosely speaking, the properties we require of the leakage functions are that the \(i\)-th leakage \(\ell_i\) can be computed given \((R_i, \rho_i)\), and all the outputs of \((\ell_{i+1}, \ell_{i+2}, \ldots, \ell_n)\). We also require that the total number of valid sequences of leakages from \(\ell_1(\cdot), \ldots, \ell_n(\cdot)\) should be sufficiently small (see Property 1 in Theorem 63 below).

5.8.5.3 Spoiling functions.

Our theorem below states the existence of a spoiling function \(f(\cdot)\) with certain properties, as well as properties of the random variables \((R_1,\dots,R_n)\) and \((\rho_1, \ldots, \rho_n)\) conditioned on the output of the spoiling function \(f(R)\).

The properties of \((R_1,\dots,R_n)\) and \((\rho_1, \ldots, \rho_n)\) are roughly the following: (1) There exist disjoint sets \(V, W\) such that \(V \cup W = [n]\) that are determined by \(f(R)\). (2) Blocks \(\{R_i\}_{i \in V}\) have high min-entropy conditioned on \(f(R)\). (3) Blocks \(\{R_i\}_{i \in W}\) have small support size (low max-entropy) conditioned on \(f(R)\). (4) For \(i \in V\), the random strings \(\rho_i\) are uniform random and independent conditioned on \(f(R)\). (See Properties (5)-(8) in Theorem 63).

The properties of \(f(\cdot)\) are roughly the following: (1) The failure probability (outputting \(\bot\)) is small. (2) As long as the total number of valid sequences of leakages from \(\ell_1(\cdot), \ldots, \ell_n(\cdot)\) is sufficiently small, the image size of \(f\) is small. This property ensures that we do not lose too much of the total min-entropy of \(R\) by releasing \(f(R)\) (3) The leakages \(\{\ell_i(\cdot)\}_{i \in W}\) can be computed given \(f(R)\). (See Properties (2)-(4) in Theorem 63)

5.8.5.4 Our theorem.

The main difference between our spoiling lemma and prior ones is that our min and max entropy guarantees on \(R = (R_1,\dots,R_n) \mid f(R)\) hold even with respect to additional leakage \(\{\ell_i\}_{i \in W}\) which is included in the spoiled bits \(f(R)\).

Theorem 63 (Block structures with few bits spoiled and leakage). Let \(\mathcal{U} = U_1 \times \cdots \times U_n\) be a fixed universe and \(R = (R_1,\dots,R_n)\) be a sequence of (possibly correlated) random variables where each \(R_i\) is over \(U_i\) (and all are disjoint) and \(|U_i| = \ell\) for all \(i\). Let \(\rho_1, \ldots, \rho_n\) be a sequence of uniformly random strings over \(\{0,1\}^m\) and let \(\ell_1(\cdot), \ldots, \ell_n(\cdot)\) be leakage functions. Then, for any \(\epsilon \in (0, 1)\), any \(\delta> 0\) and any \(c \in [2^\delta, \ell/2^\delta]\), there exists a spoiling leakage function \(f(R)\) that satisfies the following properties.

  1. A sequence \(\beta_1, \ldots, \beta_n\) is valid if for all \(i \in V\), \(\beta_i = \bot\) and for all \(i \in W\), \(\beta_i = \ell_i(R_i, \rho_i, \beta_{>i})\), where \(\beta_{>i} = (\beta_{i+1}, \ldots, \beta_n)\). We require that the number of valid sequences \(\beta_1, \ldots, \beta_n\) is at most \(B\).

  2. It holds that \(\Pr_{R}[f(R) = \bot] \leq \epsilon n\).

  3. \(|Im(f)| \leq B \cdot \left ( 2(\lg(\ell) + \lg (1/\epsilon)) /\delta \right )^{n}\).

  4. Conditioned on any \(y \in Im(f) \setminus \{\bot\}\), for all \(i \in W\), the leakage \(\ell_i(R_i, \rho_i, \beta_{>i})\) can be computed from \(y\). Here, \(\beta_j = \bot\) if \(j \in V\) and \(\beta_j = \ell_j(R_j, \rho_j, \beta_{> j})\) otherwise.

  5. Let \(Im(f)\) be the set of images of \(f\). Every \(y \in Im(f) \setminus \{\bot\}\) specifies two disjoint sets \(V\) and \(W\) such that \(V \cup W = [n]\).

  6. Conditioned on any \(y \in Im(f) \setminus \{\bot\}\), for every \(i \in V\), every element in distribution \(R_i \mid R_{<i}\) has low probability weight, i.e., \[\begin{aligned} &\forall y \in Im(f) \setminus \{\bot\}, \forall r \mbox{ s.t. } f(r) = y, \forall i \in V:\\ &\qquad \Pr\left[R_i = r_i~ \Bigg |~R_{<i} = r_{<i},~ y\right] \leq \frac{2^{\delta}}{c}. \end{aligned}\]

  7. Conditioned on any \(y \in Im(f) \setminus \{\bot\}\), for every \(i \in W\), it holds that \(R_i \mid R_{<i}\) has small support size, i.e., \[\begin{aligned} \forall y \in Im(f) \setminus \{\bot\}, \forall r \mbox{ s.t. } f(r) = y, \forall i \in W: \\ ~~\left | \left \{ r_i : \Pr[R_i = r_i|R_{<i} = r_{<i}, y]] \geq 0 \right \} \right | \leq 2^{\delta} \cdot c. \end{aligned}\]

  8. \(\{\rho_i\}_{i \in V}\) are distributed independently and uniformly at random conditioned on \(f(R)\).

The proof is found in Section 8.3.7. Typically, one would like to set \(c\) as large as possible, while ensuring that the size of \(V\) remains above some threshold. The achievable tradeoffs between \(c\) and \(|V|\) are determined by the min-entropy of \(R\) before the spoiling bits \(f(R)\) are released. For our applications, we require \(c = n^{1.5}\) and \(|V| \geq n/3\). In Section 8.3.8, we show that our min-entropy assumption on \(R\) implies that this parameter setting is achievable.

5.9 Empirical Evaluation

5.9.1 Comparison With Prior Work

We compare our noisy min-hash (NMH) protocol \(\pi_{\mathsf NMH}\) with the current state-of-the-art approach, called sketch-flip-merge (SFM) [47] and the generalized randomized response mechanism (GRR) [64]. In particular, we evaluate the trade-off between communication cost and cardinality estimation accuracy, while achieving (almost) the same level of privacy guarantee as follows:

5.9.1.1 Our protocol.

We calculate the communication of our protocol \(\pi_{\mathsf NMH}\) with \(\mathcal{F}_{{\mathsf psi\mbox{-}ca}}\) instantiated with the PSI-CA protocol described in Protocol 25. It is a variant of the protocol in [159], where \(H_2\) is applied to \(\{a'_i\}_{i \in [v]}\) and \(\{b'_j\}_{j \in [w]}\) in order to reduce the communication. The original protocol is secure under the DDH assumption in the random oracle model. Essentially the same security proof found in the original paper can be applied to show the security of this variant, when \(H_2\) is also modeled as a random oracle.


Protocol 25 (Private Set Intersection Cardinality).

Let \(G\) be a multiplicative group of order \(q\). Let \(H_1:\{0,1\}^* \to G\) and \(H_2:\{0,1\}^* \to \{0,1\}^\lambda\) be hash functions.

Input: \(P_1\) has \(C = \{c_1, \ldots, c_v\}\) and \(P_2\) has \(S = \{s_1, \ldots, s_w\}\).

  1. \(P_1\) samples a random exponent \(R_c \leftarrow\mathbb{Z}_q\). For \(i \in [v]\), \(P_1\) computes \(a_i = H_1(c_i)^{R_c}\). \(P_1\) sends \((a_1, \ldots, a_v)\).

  2. \(P_2\) samples \(R_s \leftarrow\mathbb{Z}_q\) and computes \((a'_1, a'_2, \ldots, a'_v) = {\mathsf shuffle}(a_1^{R_s}, \ldots, a_v^{R_s}).\) \(P_2\) also computes \((b_1, b_2, \ldots, b_w) = {\mathsf shuffle}(H_1(s_1)^{R_s}, \ldots, H_1(s_w)^{R_s}).\) \(P_2\) sends \((H_2(a'_1), \ldots, H_2(a'_w))\) and \((b_1, \ldots, b_w)\) to \(P_1\).

  3. \(P_1\) computes \((b'_1, \ldots, b'_w) = (b_1^{R_c}, \ldots, b_w^{R_c})\). \(P_1\) outputs the following value: \[| ~\{H_2(a'_1), \ldots, H_2(a'_v)\} \cap \{H_2(b'_1), \ldots, H_2(b'_w)\}|.\]


We briefly sketch the security proof here while referring the full proof to the original paper [159]. We first show the simulator for the corrupted \(P_1\). Let \(t\) be the protocol output (i.e., set intersection cardinality). The simulator chooses random \(t\) indices \((i_1, \ldots, i_t)\) (resp., \((j_1, \ldots, j_t)\)) from \([v]\) (resp., \([w]\)). In order to prepare \((b_1, \ldots, b_w)\), the simulator replaces \(H_1(s_{j_k})^{R_s}\) (for \(k \in [t]\)) with \(H_1(c_{i_k})^{R_s}\), and the remaining values \(H_1(s_h)^{R_s}\) are simulated with random numbers. Since \(H_1\) is a random oracle (i.e., for an input \(x\), we have \(H_1(x) = g^r\) for a random \(r\)), this simulation is indistinguishable under the DDH assumption. When \(P_2\) is corrupted, the first message \(\{a_i = H_1(c_i)^{R_c} : i \in [v]\}\) is simulated by random values. The simulation is also indistinguishable under the DDH assumption. The above PSI-CA protocol exchanges \(v + w\) elliptic curve points and \(w\) hashes, resulting in \((v + w)\cdot 256 + w\cdot 80\) bits. In protocol \(\pi_{\mathsf NMH}\), the parties will run this PSI-CA protocol by setting \(v = w = k + 2\ell_B\).

5.9.1.2 Sketch-Flip-Merge (SFM) [47].

While our main focus is on comparing the accuracy of Jaccard Index estimation, in the absence of available code, we had to rely on their analysis of the relative root mean squared error (RRMSE) of cardinality estimation instead of Jaccard Index estimation. This poses challenges in evaluating the accuracy of the Jaccard Index for SFM. In particular, although the Jaccard Index can be estimated by calculating the ratio of estimated intersection size over the estimated union size, its RRMSE cannot be directly calculated from RRMSEs for the intersection and union sizes. This is because the two estimates have dependency, and we can only conjecture that the derived estimate through the division operation will probably have a worse RRMSE.

In the end, giving a slight advantage to SFM, we decided to focus on the accuracy of cardinality estimation of the size of the union only. In our case, the union size was estimated based on the Jaccard Index from the min-hash protocol and \(n_A\) and \(n_B\). Following the approach of SFM [47], we perform \(m = 1000\) estimates to measure the accuracy in the form of relative root mean squared error (RRMSE); that is, letting \(\hat{n}_{U,1},\dots,\hat{n}_{U,m}\) be the union size estimates, and \(n_U\) be the real union size, we define \(\text{RRMSE}(\hat{n}_{U,1},\dots,\hat{n}_{U,m}; n_U)\) to be \(\frac{1}{n_U}\sqrt{\frac{1}{m}\sum_{i=1}^m(\hat{n}_{U,i}- n_{U})^2}\). To match the communication complexity, we set the sketch of SFM to be a \((B \times P)\)-bit matrix such that \(B \cdot P = 592w\) and \(P = 24\).

5.9.1.3 Generalized Randomized Response (GRR) [64].

We also compare our protocol with the generalized randomized response MinHash protocol in [64]. Following their guidance in experiments, we select the range of their hash function to be a single bit and let their protocol use \(592w\) hash functions to match our communication cost.

Since their actual protocol would take too long to run for large \(n\) and \(k\), in order to facilitate the large number of hash functions, we wrote code simulating the error based on their privacy and utility analysis. As with the other protocols, we perform 1000 estimates to lower the variance of the errors. To align with our other comparison with SFM, we report the relative root mean squared error of the union size.

Accuracy: NMH, SFM, GRR.
DDP based on \(k\), and \(JI\)

5.9.1.4 Comparison Results.

In Figure 6, we demonstrate the comparison of NMH, SFM, and GRR. We set \(n = 10^6\). The result shows that our error is consistently smaller than both SFM and GRR for a reasonable range of communication costs, which corresponds to the usage of \(k \in [100, 500]\) hashes for our noisy min-hash protocol. Specifically, as we increase the number of hash functions, both our protocol and SFM achieve increased accuracy, due to larger sketch sizes that better represent the input sets. On the other hand, while GRR performs well with smaller communication, adding more communication becomes counter productive. This is because each additional bit in their protocol corresponds to an extra hash function output, which increases the noise needed to achieve the same privacy guarantee. Finally, both GRR and our protocol exhibit spikes in the accuracy trends, corresponding to crossover points where a significant amount of additional noise is required to keep \(\delta\) from getting above \(2^{-40}\).

In concluding remarks, it is noteworthy that both SFM and GRR protocols disclose the entire noisy sketch, revealing collective information about the party’s input set. We note that differential privacy does not prohibit revealing collective information about the inputs; rather, it mandates that individual contributions should not be discernible in the output. In contrast, our min-hash protocol employs secure two-party computation and discloses no information about the input set, except for the final \((\lg k)\)-bit output. When deciding which scheme to use, depending on the specific use case, this observation may need to be taken into account.

5.9.2 DDP of Noiseless Protocol

We empirically evaluate the DDP guarantee for the noiseless min-hash protocol in the public hash setting, in which each element in the secret set has high entropy. As before we set \(n_A = n_B = 10^6\). Figure 7 shows how the privacy parameter \(\epsilon\) changes with the number \(k\) of iterations. Although we demonstrate the results for \(JI \leq 0.5\), the results for \(JI > 0.5\) are similar. We omit the data points where \(\epsilon\) is greater than 5, which happens when \(k\) is small, and focus on the more meaningful \(\epsilon\) range. We observe the following:

6 FACTS: Threshold-Based Source Identification

6.1 Introduction

The proliferation of fake and misleading information online has had significant impact on political discourse [169] and has resulted in violence [170]. Large services like Facebook and YouTube have begun to remove or label content that they know to be fraudulent or misleading [171], [172], through a combination of a manual process of reviewing posts/videos and automated machine learning techniques.

However, on end-to-end encrypted messaging services (EEMS), like Signal, WhatsApp, Telegram, etc., where so-called “fake news” is also shared, such review is impossible. At no point do the providers see the plain-text, unencrypted contents of messages transmitted through their systems and thus cannot identify and remove offending material. Such platforms must instead rely on their users to identify and report malicious content. Even then, identifying and removing users who repeatedly post misleading and dangerous content may still be difficult because some platforms, like Signal, also hide the path the message took, so identifying and addressing the original source of the misinformation may not be possible.

Tyagi et al. [85] introduced a first approach for overcoming this challenge and allow EEMS to effectively traceback an offending message to find the originator based on a user complaint. The traceback procedure also assures that all other messages remain private and that innocent parties cannot be blamed for originating the offending messages.

While innovative, there are two notable shortcomings of Tyagi et al.’s traceback scheme. First, it requires extensive “housekeeping” on the part of the platform that scales as the number of messages in the system. Second, a single, possibly malicious, complaint can trigger a traceback and thus reveal the message contents as well as the history of prior recipients, which is counter to the goals of EEMS to maintain the privacy of users communicating through this system. One malicious user (e.g., a government agent) can reveal the source of a piece of information (e.g., a leak) that they have received, violating the privacy of the sender (e.g., the leaker) by issuing a single complaint to the EEMS. While it may be possible to apply manual review to these complaints, the scale of possible complaints could make this impractical. Several follow-on papers [86], [88] show how to achieve source-tracking for EEMS to identify the source of a message without relying on traceback of all intermediate recipients. However, these systems still allow a single complainer to trigger the source-tracking.

In this chapter, we aim to resolve this conflict between privacy and ability to identify misinformation in EEMSs by first observing that “fake news” messages are, by definition, viral and are thus received, and likely complained about, by a large number of users. Private messages, such as leaks, on the other hand, are likely to be targeted and are thus only received by a small number of users; indeed, any message received by only a few users is inherently less impactful overall and more likely deserving of privacy protections. This leads to a more nuanced approach for identifying fake news: apply a threshold approach to complaint management, whereby only viral fake news would overcome the threshold and trigger an audit.

Counting the number of complaints in a private manner is a non-trivial problem if the privacy of the EEMS’ clients is to be maintained prior to the threshold being reached, even given available cryptographic solutions. For example, a homomorphic encryption solution (e.g., [105]) would enable the checking and updating of counts for each message, but the access patterns of clients checking and updating counters could reveal how many complaints a message receives even if the threshold is not reached. Oblivious RAM (ORAM) (e.g. [26], [173]) could be used to protect the access patterns, but have high computational overheads and usually assume clients may share secrets and are not malicious. Private Information Retrieval (PIR) does not assume clients are trusted, but has different scalability challenges and does not address the problem of obliviously updating without revealing which message is being complained about.

We propose a different approach we call a Fuzzy Anonymous Complaint Tally System (FACTS). FACTS maintains an (approximate) counter of complaints for each message, while also ensuring that, until a threshold is exceeded, the status of these counters is kept private from the server and all users who have not received the message. FACTS builds on top of any end-to-end encrypted messaging platform, incurring only small overhead for message origination and forwarding. In particular, FACTS maintains the communication pattern of the underlying messaging system, requiring no new communication or secrets between users even for issuing complaints.

To avoid the high overheads of existing solutions, FACTS uses a novel oblivious data structure we call a collaborative counting Bloom filter (CCBF). This data structure allows us to obliviously increment and query approximate counters on millions of messages while only requiring 12MB of storage. Moreover, incrementing a counter only requires flipping one bit on the server and only uses the minimal communication of \(\log{|T|}\) bits to address a single bit in the server-stored bit vector \(T\). While the resulting counters are only approximate, we show experimentally and analytically that we are able to enforce the threshold on complaints with good accuracy, namely, below 10% error in theory, and below 3% in most realistic deployment scenarios.

The contributions of this chapter are as follows:

6.1.1 Setting and Goals

FACTS is built on top of an end-to-end encrypted messaging system (EEMS). For this work, we focus on the setting of server-based EEMSs with a server \(S\) that enables (authenticated) encrypted communication between the system users. Examples of such EEMSs include Signal and WhatsApp, among many others.

To make sure that FACTS is compatible with existing encrypted messaging systems, we make the following performance requirements:

  1. Messaging costs: Originating and forwarding messages should incur little computational overhead for both users and the server over the standard procedure in the encrypted messaging system,

  2. Server storage: The storage overhead of the server should be small (i.e., a single table not exceeding a few MBs),

  3. User costs and requirements: Issuing complaints requires a small amount of communication and computation from the complaining user, and no cost to other users. Moreover, complaints can not require direct communication between users or require the users to have any apriori shared secrets that are not known to the server.

  4. Complaint throughput: Issuing complaints may be slower than standard forwarding of messages, but the system must be able to handle millions of complaints per day.

To ensure privacy of messages and complaints, FACTS requires that complaints remain hidden from the server (and colluding clients) until a threshold of complaints is reached. Additionally, FACTS ensures integrity of the complaint process ensuring correctness of complaint counts and the identity of the revealed originator once the threshold is reached. Specifically, FACTS satisfies the following security guarantees:

  1. Message privacy: All messages remain end-to-end encrypted and private from the server and non-receiving clients until a threshold of complaints is reached and an audit is issued. Moreover, even after the audit, only information about the audited message is revealed.

  2. Originator integrity: Once a threshold of complaints is reached on a message, FACTS will only identify information about the true originator of the message. In particular, no innocent party can be framed as the originator.

  3. Complaint privacy: The server and any colluding clients who have not received a message \(x\) should have no information about the number of complaints on \(x\). In particular, the server should not be able to tell what message is being complained about.

  4. Complaint integrity: A set of malicious clients should not be able to alter the number of complaints on any message \(x\). Specifically, they cannot block or delay complaints, and cannot (significantly) increase the number of complaints on a message \(x\) except through the legitimate complaint process.

6.1.2 Building FACTS

Recall that our goal is to enable privacy-preserving counters to tally complaints on each message \(m\). This suggests an immediate solution where the server stores an encrypted counter for each message, and clients interact with the server to increment the counter and check the threshold. While implementing such counters is certainly possible using homomorphic encryption [174] or standard secure computation techniques [25], [130], [175] , the problem is that the access pattern of clients’ updates to counters leaks information to the server by revealing the complaint histogram. This suggests a further modification to store the counters inside an oblivious RAM (ORAM) [26] to hide such access patterns from the client. However, in our setting this would require a multi-client ORAM [102], [103], [104] which incurs significant performance penalties including at least \(O(\log{n})\) communication overhead when there are \(n\) distinct messages. Moreover, this would require direct communication between clients to maintain their ORAM state, and additionally, no security against malicious clients.

In FACTS, we take a different approach. Instead of relying on encryption to hide the counters from the server, we hide the counters in plain sight by mixing together the counters for all the messages in a way oblivious to the server. To make this possible, we relax the functionality of FACTS to only enforce approximate, rather than exact, thresholds. That is, the threshold will be triggered on a message \(x\) after \((1\pm \epsilon) t\) complaints for a small error \(\epsilon\). Making this relaxation allows us to use a sketch-based approach for counting the complaints.

To achieve this functionality obliviously, we develop a collaborative counting Bloom filter (CCBF). This data structure consists (roughly) of a collection of Bloom filters, one for each message, where the Bloom filters corresponding to different messages are mixed together to hide them from the server. Specifically, the server stores a table of \(s\) bits. A random subset of \(v\) bits (\(V_x\)) is assigned to each message \(x\) at origination; these bits will be used for tracking complaints about this message (for intuition, one can think of these bits as forming a Bloom filter for storing the set of complaints about the message). We stress that the server has no information about which bits correspond to which messages.

To complain about a message \(x\), a user who has received \(x\) can find the corresponding bit locations, and will (attempt to) flip one of the bits from 0 to 1. However, allowing users to flip any bit they choose, would allow malicious users to significantly accelerate complaints for a message they wish to disclose. To prevent this behavior, we restrict each client to only be able to flip (i.e., complain on) a small (of size \(u\)) set of locations \(U_C\). Thus, to complain about a message \(m\), a client first identifies the set \(V_x\) of bits corresponding to \(x\). Then, she checks how many of these bits have already been set to 1, and if this exceeds a specified threshold, notifies the server to trigger an audit. If the threshold for \(x\) is not yet exceeded, the client sees whether any of the 0 bits in \(V_x\) are in her set \(U_C\), and if there are any such bits, she flips one of them (chosen at random) from 0 to 1. Otherwise, the user still flips a random bit in their set \(U_x\), so the server cannot discern anything about the message being complained on. We prove in Section 6.4 that the actual number of complaints necessary to trigger an audit can be calculated with high precision allowing us to (approximately) enforce the desired threshold.

6.1.3 Limitations of FACTS

In order to present FACTS, it is also important to recognize what our system does not do.

First, unlike some prior work, e.g. [176], [177], FACTS does not attempt to automatically detect misinformation. Instead, it relies on users reporting it when they see it. This reliance on users has inherent benefits and limitations. While our system is not subject to the kinds of machine-generated false positives that can arise from, e.g., hash collisions [178], our model is inherently vulnerable to any sufficiently large group of dishonest users, who could trigger an audit on a benign message. This is why we suggest the possibility of a manual human review process on message contents before the service provider would take any action on an audited message; see 6.8.0.5.

Second, due to the approximate nature of FACTS, it works most effectively for relatively large thresholds, say in the hundreds and above. For our application to fake news detection, this is reasonable as such messages are likely to garner a large number of complaints, and indeed this was our main motivation for this chapter. We leave as interesting possible future work to implement a system supporting smaller thresholds, even as small as 2, efficiently.

One additional functionality limitation is that, as is true with any application using Bloom filters, the CCBF data structure can fill up once too many complaints have been registered. To deal with this issue it is necessary to periodically reset the counters and refresh the CCBF data structure. We refer to each such refresh period as an epoch, and in the remainder of this chapter only present algorithms for a single epoch.

Finally, on the security side, an important limitation is that FACTS reveals meta-data on who issues complaints (but not what message they complain on). It is important to consider what is revealed by this meta-data. By observing the timing of messages and complaints, the server can make some inferences about what messages users are sending and complaining about. For example, suppose that the server sees that \(A\) sends a message to \(B\), and then \(B\) issues a complaint. Then, it may be reasonable for the server to assume that \(A\) has sent the message which \(B\) complained about, even though this is not directly leaked by our system. Nonetheless, our definition guarantees that the server cannot be certain that this is indeed the case. We note that the messaging meta-data is already a byproduct of the underlying EEMS platform. FACTS only adds complaint meta-data to this leakage; see 6.8 for some further discussion.

6.1.4 Chapter Layout

The remainder of this chapter is organized as follows. In Section 6.2, we introduce some of the notation we use throughout this chapter. Then, in Section 6.3 we describe the syntax and functionality of FACTS. In Section 6.4 we present and analyze our main building block, the CCBF data structure. Then, in Section 6.5, we show how to use a CCBF to instantiate FACTS. We demonstrate the accuracy and performance through experimental evaluation in Section 6.6 and then prove the security of FACTS in Section 6.7. Finally, we describe some variants of FACTS and directions for future work in Section 6.8 and present related work in Section 6.9.

6.2 Preliminaries

We use \([n]\) to denote the set \(\{1, \ldots, n\}\). We write \(x \gets X\) to indicate that the value \(x\) is sampled uniformly at random from the set \(X\). We use \(\lambda\) to denote a statistical security parameter and \(\kappa\) to denote a computational security parameter. We also assume the existence of a hash function \(H:\{0,1\}^* \rightarrow \{0,1\}^*\) which is modeled as a random oracle. We let \({\mathsf poly}(\cdot)\) denote a polynomial function and \(\mathsf{negl}(\cdot)\) denote a negligible function.

6.3 Fuzzy Anonymous Complaint Tally System (FACTS)

In this section, we present the syntax for FACTS and describe how FACTS is used. We show how to instantiate FACTS in Section 6.5.

6.3.0.1 Assumptions:

We assume that each user \(A\) has a unique identifier \(ID_A\), and that the server can authenticate these IDs. (We will abuse notation to use \(A\) to represent the user and also the id \(ID_A\)). We also assume that the server has an identifier \(ID_S\) (we will denote this by \(S\)) that can be authenticated by all users.

Additionally, we assume that the underlying end-to-end encrypted messaging system (EEMS) offers methods \(\textrm{send}(A,B,x)\) and \(\textrm{receive}(A,B,x)\) for sending and verifying a message \(x\) sent from user \(A\) to user \(B\). Moreover, we assume that this communication is encrypted and authenticated. In particular, \(\textrm{receive}\) verifies that the received message was sent by \(A\) and was not modified in transit. Importantly, we do not assume that this platform is anonymous, instead assuming that the full messaging history i.e., who sent a message to whom and the size of that message, is available to the server.

6.3.0.2 Syntax:

FACTS is a tuple of protocols \(\textsf{FACTS}=(\textsf{Setup}, \textsf{SendMsg}, \textsf{RcvMsg}, \textsf{Complain}, \textsf{Audit})\). The first is used to set up FACTS, the next two are used to send and verify messages, while the last two methods are used to issue complaints and audit received messages.

6.3.0.3 Usage:

The following workflow demonstrates the standard usage of FACTS. To originate a new message \(x\), a user \(A\) runs the \(\textsf{SendMsg}\) protocol with the server \(S\) to create metadata \(\tag_x\). \(\textsf{SendMsg}\) then sends this metadata and the message \((\tag_x,x)\) to the receiving user \(B\) using the messaging platforms \(\textrm{send}\) method. Upon receiving a message \((\tag_x, x)\), \(B\) first locally runs \(\textsf{RcvMsg}(A,B,\tag_x,x)\) to verify that the received message and tag are valid, if this fails he ignores the message. To forward a received message \((\tag_x,x)\), a user \(A\) runs \(\textsf{SendMsg}\) with the server \(S\) to produce metadata \(_x\); \(A\) then discards this metadata, and the original message \((\tag_x, x)\) is sent instead using the messaging platform’s \(\textrm{send}\) method.11

If a user \(B\) receives a message \((\tag_x, x)\) that it considers “fake”, he can use the \(\textsf{Complain}\) protocol to issue a new complaint on this message. After issuing a complaint, \(B\) checks whether the threshold of complaints on \(x\) has been reached. If so, he calls \(\textsf{Audit}\) to trigger an audit on the message \((\tag_x,x)\), revealing \(x\) and the originator of \(x\) to the server \(S\).

We note that users may join and leave during the execution of FACTS as long as the total number of identifiable users does not exceed \(c\).

6.4 Collaborative counting Bloom filter

Our system records complaints in a special data structure which we call a collaborative counting Bloom filter, or CCBF. This data structure shares some of the same basic functionality as a counting Bloom filter [114], [115] or count-min sketch [179], which is to insert elements and compute the (approximate) frequency of a given element.

Our CCBF differs from a usual count-min sketch in that each update operation is accompanied by a user id, and each user can only perform a single update for a given element. This can be thought of as a strict generalization of the normal count-min sketch operations, where the latter may be simulated by our CCBF by choosing a unique user id for each update.

The actual data structure for the CCBF is also far simpler than the 2D array of integers used for a count-min sketch; instead, we store only a single length-\(s\) bit vector \(T\). As a result, our CCBF will have the following desirable properties:

The downside to our CCBF is a far lower accuracy of the count operation in general compared to count-min sketches. However, we will show that, for careful parameter choices, the count operation is highly accurate within a certain range, which is precisely what is needed for the current application.

6.4.1 CCBF Construction

The CCBF consists of a single size-\(s\) bit vector \(T\) and two operations:

Note that \(\mathsf{TestCount}\) is probabilistic, in the sense that it may return false when the actual count is greater than \(t\), or true when the actual count is less than \(t\). Our construction guarantees the correctness probability is always at least \(\tfrac{1}{2}\), and our tail bounds below show the correctness probability quickly goes towards \(1\) when the actual count is much smaller or larger than \(t\).

The performance and accuracy of the CCBF is governed by three integer parameters \(s\), \(u\), and \(v\), with \(u,v\le s\), which must be set at construction time. The first, \(s\), is the fixed size of the table \(T\). Each user \(i\) is randomly assigned a static set of exactly \(u\) locations in the \(T\); i.e., a uniformly random subset of \(\{0,1,2,\ldots,s-1\}\), which we call the user set. Similarly, each possible item \(x\) is assigned a random set of exactly \(v\) bit vector locations, which we call the item set.

The two CCBF operations can be implemented by a single server and any number of clients. The protocols are simple and straightforward, save for the calculation of the tipping point \(\tau\) which we present in the next subsection.

In these protocols, the size-\(s\) bit vector \(T\) is considered public or world-readable; it is known by all parties at all times. In reality, the server who actually stores \(T\) may send it to the client periodically, or whenever a client initiates a or protocol. However, the bit vector \(T\) is only writable by the server.

The \(\mathsf{Increment}(x,C)\) protocol, outlined in 26, involves the User attempting to set a single bit from 0 to 1 within the item set for \(x\). However, the user is only allowed to write locations within their own user set. So, if there are no 0 bits in the intersection of these two index sets, the user instead changes any other arbitrary 0 bit in its own user set in order to maintain item obliviousness.


Algorithm 26. \(\mathsf{Increment}(x,C)\)

  1. User and server separately compute the list of \(u\) user locations for user \(C\), \(U_C \subseteq \{0,\ldots,s-1\}\).

  2. User computes list of \(v\) item locations for item \(x\), \(V_x \subseteq \{0,\ldots,s-1\}\)

  3. User checks each location in \(U_C\) in the table \(T\) to compute a list \(S_C = \{i\in U_C \mid T[i] = 0\}\) of settable locations for user \(C\)

  4. If \(S_C = \emptyset\), then the user cannot proceed and calls abort.

  5. Else if \(S_C \cap V_x \ne \emptyset\), user picks a uniformly random index \(i\gets S_C \cap V_x\) and sends index \(i\) to server.

  6. Else user picks a random index \(i\gets S_C\) and sends index \(i\) to server.

  7. Server checks that received index \(i\) is in the user set \(U_C\) and that \(T[i] = 0\), then sets \(T[i]\) to 1.


Since the bit vector \(T\) is considered world-readable, the only communication here is the single index \(i\) from client to server over an authenticated channel. In reality, to avoid race conditions, the server will actually send the table entry values \(T[i]\) for all \(i\in U_C\) to the user first and lock the state of the global bit vector \(T\) until receiving the single index response back from the user.

The \(\mathsf{TestCount}(x,t)\) protocol is not interactive as it only requires reading the entries of \(T\). The precise computation of the tipping point \(\tau\) is detailed in the next section. Note that this computation depends only on the total number of bits set in the bit vector \(T\) as well as the parameters \(s,u,v\); therefore the computation of \(\tau\) is independent of the item \(x\) and could for example be performed once by the server and saved without violating item obliviousness.

This protocol is detailed in 27.


Algorithm 27. \(\mathsf{TestCount}(x,t)\)

  1. Use parameters \(s,u,v\) and current value of \(m\) total number of bits set in \(T\), to compute the tipping point \(\tau\).

  2. Compute list of \(v\) item locations for item \(x\), \(V_x \subseteq \{0,\ldots,s-1\}\)

  3. Check how many bits of \(T\) are set for indices in \(V_x\). Return true if and only if this count is greater than or equal to \(\tau\).


6.4.2 Calculating the tipping point

The key to correctness of the protocol is a calculation of the tipping point \(\tau\), which is the expected number of 1 bits within any item set, if that item has been incremented \(t\) times. We now derive an algorithm to compute this expected value exactly, in \(O(tv)\) time and \(O(v)\) space.

Let \(s\) be the total size of the table \(T\) and \(m\le s\) be the total number of calls to so far. That is, \(m\) equals the number of 1 bits in \(T\). Recall that \(u,v \le s\) are the number of table entries per user and per item, respectively.

We first derive the probability that two subsets of the \(s\) slots have given-size intersection. Next we derive a recursive formula for \(\tau\) using these intersection probabilities. The nearest integer to \(\tau\) can then be efficiently computed using a simple dynamic programming strategy.

6.4.2.1 Intersection probabilities

For the remainder, we use Knuth’s notation \({n}^{\underline{k}}\) to denote the falling factorial, defined by \[{n}^{\underline{k}} = \frac{n!}{(n-k)!} = n\cdot(n-1)\cdot(n-2)\cdots(n-k+1).\]

Lemma 64. Let \(k,a,b,s\) be non-negative integers with \(k \le b \le a \le s\), and suppose \(S\) and \(T\) are two subsets of a size-\(s\) set with \(|S|=a\) and \(|T|=b\), each chosen independently and uniformly over all subsets with those sizes. Then \[\label{eqn:intersect} \Pr(|S \cap T| = k) = \frac{{a}^{\underline{k}} \cdot{} {b}^{\underline{k}} \cdot{} {(s-a)}^{\underline{b-k}}} {{s}^{\underline{b}} \cdot{} k!}.\]

Proof. The number of ways to choose \(S\) and \(T\) with a size-\(k\) intersection, divided by the total number of ways to choose two size-\(a\) and size-\(b\) sets, equals \[\frac{\binom{s}{k} \cdot{} \binom{s-k}{a-k} \cdot{} \binom{s-a}{b-k}} {\binom{s}{a}\cdot{}\binom{s}{b}}.\] This simplifies to [eqn:intersect]. ◻

Because the numerator and denominator are each products of \(b+k\) single-precision integers, the value of [eqn:intersect] can be computed in \(O(b)\) time to full accuracy in machine floating-point precision.

Furthermore, equation [eqn:intersect] has the convenient property that, after altering any value \(a\), \(b\), or \(k\) by \(\pm 1\), we can update the probability with only \(O(1)\) additional computation. So, for example, one can compute the probabilities for every \(k\le b\) in the same total time \(O(b)\).

6.4.2.2 Recurrence for number of unfilled message slots

Fix an arbitrary item \(x\), and let \(w\le v\) denote the number of 0 bits of \(T\) within \(x\)’s item set. Let \(k\le m\) denote the number of operations performed on item \(x\) so far.

First, for convenience define \(p_w\) to be the probability that an arbitrary user is able to write to one of the \(w\) remaining unfilled slots for the message. From 64, we have \[p_w = 1 - \frac{{(s-u)}^{\underline{w}}}{{s}^{\underline{w}}}, \label{eqn:pw}\] which can be computed in \(O(w)\) time. In fact, we pre-compute all possible values of \(p_w\) with \(0\le w\le v\) in \(O(v)\) total time.

Now consider the random variable for the number of 0 bits within \(x\)’s item set after \(k\) ’s on \(x\), if the item set originally had \(w\) 0 bits. Define \(R_{w,k}\) to be the expected value of this random variable, which can be calculated recursively as follows.

If \(w=0\), then the slots are all filled, and if \(k=0\) then there are no more ’s, so the number of unfilled slots remains at \(w\). Otherwise, the first will fill an additional slot with probability \(p_w\), leaving \(w-1\) remaining unfilled slots, and otherwise will leave \(w\) remaining unfilled slots. This implies the following recurrence relation:

\[R_{w,k} = \begin{cases} 0,& w=0 \\ w,& k=0 \\ p_w R_{w-1,k-1} + (1 - p_w) R_{w,k-1},& w,k\ge 1 \end{cases}\]

All values of \(R_{w,t}\) with \(0\le w \le v\) can be computed in \(O(tv)\) time and \(O(v)\) space, using a straightforward dynamic programming strategy.

6.4.2.3 Computing the tipping point

We now show how to compute the tipping point value \(\tau\), which is the expected number of filled item slots after \(t\) s on that item, by summing the \(R_{w,t}\) values over all possible values of \(w\) based on the number of other calls to \(m\).

To this end, define \(q_w\) to be the probability that \(w\le v\) slots for a given item are unfilled after \(m\) total calls to for other items. Because other calls to are for other unrelated items, each one goes to a uniformly-random unfilled slot over the entire size-\(s\) table \(T\). Therefore \(q_w\) is the same as the probability of a size-\(m\) set and a size-\(v\) set having intersection size exactly \(v-w\). From 64, this is \[q_w = \frac{{m}^{\underline{v-w}} \cdot{} {v}^{\underline{v-w}} \cdot{} {(s-m)}^{\underline{w}}} {{s}^{\underline{v}} \cdot{} (v-w)!}.\] We can pre-compute all values of \(q_w\) for \(0\le w\le v\) in total time \(O(v)\).

After pre-computing the values of \(p_w\), \(R_{w,t}\), and \(q_w\), we can finally express the tipping point \(\tau\) as a linear combination \[\label{eqn:r} \tau = v - \sum_{w=0}^v q_w R_{w,t},\] rounded to the nearest integer.

In total, the computation requires \(O(tv)\) time and \(O(v)\) space.

6.4.3 Tail Bounds

Next, we prove lower and upper bounds on the probability of filling a single additional item slot during an operation, [lem:lowerp,lem:upperp] respectively. The proofs, which are intricate but not especially surprising, can be found in 8.4.1.

In order to make our scheme practically realizable, we state and prove explicit rather than asymptotic results, with all constants specified. These constants in themselves are not particularly meaningful; rather, they represent the tightest values which worked with our proof techniques and the parameter ranges we deemed reasonable for the application in mind.

Lemma 2. Let \(x\) be an item such that at most \(\tau\) of \(x\)’s item slots are filled. If the CCBF parameters \(s,u,v\) satisfy \(v \ge 7.042652{} \tau\) and \(u \ge 0.5184846{} \tfrac{s}{\tau}\), then the probability that a call to \(\mathsf{Increment}(x,C)\) fills in one more of \(x\)’s item slots is at least \(0.956414\).

Lemma 3. Let \(x\) be any item. If the CCBF parameters \(s,u,v\) satisfy \(371{} \le v \le 0.00386{} s\) and \(u \le 3.65151{} \tfrac{s}{v}\), then the probability that a call to \(\mathsf{Increment}(x,C)\) fills in one more of \(x\)’s item slots is at most \(0.974876\).

Now we use the probability upper bound to prove an upper bound on the tipping point \(\tau\).

Lemma 4. Let \(s,u,v\) be CCBF parameters that satisfy the conditions of 3, and suppose \(m,t\) are integers such that \(s \ge 96{} m\) and \(v \le 7.409{} t\). Then the tipping point \(\tau\), for threshold \(t\) and with \(m\) total set bits in the table \(T\), is at most \(1.0520553{} t\).

We can now state our main theorems on the accuracy of the CCBF data structure. Consider a call to the predicate function \(\mathsf{TestCount}(x,t)\), which attempts to determine whether the number of prior \(\mathsf{Increment}{}\) calls with the same item \(x\) is at least \(t\). Our exact computation of the tipping point \(r(t)\) shows that this function always returns the correct answer with at least 50% probability. But of course, so would a random coin flip!

Let \(k\) be the actual number of calls to \(\mathsf{Increment}(x,C)\) that have occurred. Then two kinds of errors can occur: a false positive if \(\mathsf{TestCount}(x,t)\) returns true but \(k<t\), and a false negative if \(\mathsf{TestCount}(x,t)\) returns false when \(k\ge t\). Intuitively, both errors occur with higher likelihood when the true count \(k\) is close to \(t\). Our main theorem captures and quantifies this intuition, saying that, ignoring low-order terms, \(\mathsf{TestCount}\) is accurate to within a 10% margin of error with high probability.

Lemma 5. Let \(n\) be an upper bound on the total number of calls to \(\mathsf{Increment}\), and \(t\) be a desired threshold for \(\mathsf{TestCount}\). Suppose the parameters \(s,u,v\) for a CCBF data structure satisfy the conditions of 2, and furthermore that \(v \le 8{} t\). If the actual number of calls to \(\mathsf{Increment}(x,C)\) is at most \(t - 2.1\sqrt{\lambda t}\), then the probability \(\mathsf{TestCount}(x,t)\) gives a false positive is at most \(2^{-\lambda}\).

Lemma 6. Let \(n\) be an upper bound on the total number of calls to \(\mathsf{Increment}\), and \(t\) be a desired threshold for \(\mathsf{TestCount}\). Suppose the parameters \(s,u,v\) for a CCBF data structure satisfy the conditions of [lem:lowerp,lem:uppertau]. If the actual number of calls to \(\mathsf{Increment}(x,C)\) is at least \[\label{eqn:fn} 1.1 t + .4 \lambda + .7\sqrt{\lambda t},\] then the probability \(\mathsf{TestCount}(x,t)\) gives a false negative is at most \(2^{-\lambda}\).

We can easily summarize the various conditions on the parameters as follows:

Corollary 65. Let \(n\) be a limit on the total number of calls to , and \(t\) be a desired threshold satisfying \(50 \le t \le \tfrac{n}{20}\). Then by setting the parameters of a CCBF according to \(s=96n\), \(v=7.409t\), and \(u=47.31\tfrac{n}{t}\), any call to \(\mathsf{TestCount}(x,t)\) will satisfy the high accuracy assurances of [thm:fp,thm:fn].

6.5 Instantiating FACTS

We are now ready to present our construction of FACTS. This construction is based on the collaborative counting Bloom filter (CCBF) data structure presented in Section 6.4 to obliviously count the number of complaints on each message. It uses an underlying EEMS for sending end-to-end encrypted messages between users.

6.5.0.1 Setup:

The setup procedure for FACTS first sets up the underlying end-to-end encrypted messaging system (EEMS). For simplicity, we assume that there is a fixed number \(c\) of users using the system. Setup generates all necessary keys for the server \(S\) and all \(c\) users and distributes the keys. We note that if the messaging system is already setup, FACTS can simply leverage this for communication. Additionally, the server initializes an empty CCBF data structure.

6.5.0.2 Sending and receiving messages:

We now describe how FACTS originates, forwards, and verifies messages. We start our description with an auxiliary protocol \(\textsf{Originate}(A,x)\) between a user \(A\) and the server \(S\) to originate a new message \(x\). This protocol is used to create an origination tag \(\tag_x\) containing information about the message and originator. This tag binds the originator’s identity \(A\) to the message \(x\) to enable recovery upon an audit, while keeping \(A\) private from receiving users, and keeping the message \(x\) private from the server \(S\).

Roughly, this protocol works by having \(S\) produce a signature on (a hash of) the message together with the originator’s identity. Due to the use of the hash, \(S\) produces this signature without learning anything about the message, while the fact that \(S\) includes the originator’s identity in this signature prevents a malicious originator from including the wrong identity in the message. Moreover, since the tag is bound to the message, this prevents a replay attack where an adversary reuses tags across messages to change the identity of the originator.


Algorithm 28.

  1. To originate a message \(x\), the originator \(A\) chooses a random salt \(r \gets \{0,1\}^\lambda\), computes a salted hash \(h = H(r || x)\), and sends \(h\) to \(S\).

  2. \(S\) computes an encryption of the sender’s identity, \(e \gets {\mathsf Enc}_{PK_S}(A)\), and produces signature \(\sigma= \mathop{\mathrm{\textsf{Sig}}}_{SK_S}(h || e)\). \(S\) sends the tuple \((e, \sigma)\) to \(A\).

  3. \(A\) outputs \(\mathsf{tag}_m = (r,e,\sigma)\).

\(\textsf{Originate}(A,x)\)


Next, we describe the \(\textsf{SendMsg}\) protocol which makes use of the \(\textsf{Originate}\) protocol to send a message \(x\) between clients \(A\) and \(B\) while preserving (encrypted) information about the originator of \(x\). \(x\) can either be a newly originated message or a forward of a previously received message. In either case, \(\textsf{SendMsg}\) runs the \(\textsf{Originate}\) protocol to produce a new tag \(_x\) on the message \(x\). In the case of a new message, \(_x\) is sent along with the message, while in the case of a forward, it is discarded and the message is forwarded along with its original tag instead.


Algorithm 29.

  1. If \(\mathsf{tag}_x=\perp\), then \(x\) is a new message \(A\) wants to originate. \(A\) runs \(\mathsf{tag}_x \gets \textsf{Originate}(A,x)\).

  2. If \(\mathsf{tag}_x\neq \perp\) \(x\) is a message that \(A\) wants to forward. \(A\) runs \(\mathsf{tag}'_x \gets \textsf{Originate}(A,x)\) and discards the output.

  3. \(A\) sends \((\mathsf{tag}_x,x)\) to \(B\) using the EEMS’s \(\textrm{send}\) protocol.

\(\textsf{SendMsg}(A,B,\mathsf{tag}_x,x)\)


\(\textsf{RcvMsg}\) is a non-interactive algorithm that allows a receiving user to verify the tag, \(\tag_x\), affiliated with a message \(x\). Specifically, the receiver \(B\) verifies the server’s signature included in \(\tag_x\) to make sure that the tag indeed corresponds to \(x\) and that the originator id has not been modified. Importantly, \(B\) can perform this verification without learning the identity of the originator since the tag contains an encryption of this identity (this ciphertext is what is verified by \(B\)).


Algorithm 30.

  1. Parse \(\mathsf{tag}_x\) as \(\mathsf{tag}_x=(r,e,\sigma)\)

  2. Compute \(h=H(r||x)\)

  3. Run \(\mathop{\mathrm{\textsf{Ver}}}_{PK_S}(\sigma,(h||e))\) to check that \(\sigma\) is a valid signature by the server on \((h||e)\). If not, then discard the received message.

\(\textsf{RcvMsg}(A,B,\mathsf{tag}_x,x)\)


6.5.0.3 Complaints and Audit:

We now describe how FACTS allows users to complain about received messages and to trigger an audit once enough complaints are registered on a message. For these methods we make extensive use of a CCBF data structure for (approximately) counting complaints and detecting when a threshold of complaints has been reached.

The \(\textsf{Complain}\) protocol is used by a receiving user to issue a complaint on a received message \((\tag_x, x)\). We assume that prior to issuing a complaint the user verifies that \(\tag_x\) is valid using the \(\textsf{RcvMsg}\) protocol, and thus will only consider the case of valid tags. To issue a complaint on \((\tag_x,x)\), the user \(C\) calls CCBF.\(\mathsf{Increment}(\tag_x,C)\). As described in Section 6.4, this runs a protocol with the server in which the user (eventually) sends the location of a bit to flip to 1 to increment the CCBF count for the message \(x\). To prevent malicious adversaries from flooding FACTS with complaints, we enforce a limit of \(L\) complaints per user per epoch. Note that since the server knows the identities of complaining users, he can easily enforce this restriction.

Two important observations are in order here. First, we use \(\tag_x\) rather than the message \(x\) as the item to increment in the CCBF. The reason for this is that the tag is unpredictable to an adversary who has not received the message \(x\) through FACTS (even if \(\mathcal{A}\) knows \(x\)). Second, we note that the CCBF.\(\mathsf{Increment}\) procedure is inherently sequential. It requires that the CCBF table \(T\) be locked for the duration of the \(\mathsf{Increment}\) call to prevent race condition and to maintain obliviousness (see Section 6.4 for discussion). This means that only one user can run this procedure at a time. Thus, we focus on making this procedure as cheap as possible to minimize the impact of this bottleneck. In case multiple clients call \(\textsf{Complain}\) at overlapping times, the server can queue these complaints and process them one at a time.


Algorithm 31.

  1. Parse \(\mathsf{tag}_x\) as \(\mathsf{tag}_x=(r,e,\sigma)\)

  2. Call CCBF.\(\mathsf{Increment}(C,\mathsf{tag}_x)\)

\(\textsf{Complain}(C, \mathsf{tag}_x,x)\)


The \(\textsf{Audit}\) protocol checks whether a threshold of complaints has been reached for a given message \(x\) and, if so, triggers an audit of this message. This protocol works by using the CCBF.\(\mathsf{TestCount}\) protocol to check whether the threshold \(t\) of complaints has been reached on this message. If this returns True, then the user simply sends \((\tag_x,x)\) to the server who first checks the validity of the tag, and then if it’s valid, decrypts the corresponding part of the tag to recover the identity of the message originator.

An important observation is that the CCBF.\(\mathsf{TestCount}\) operation is read-only and thus does not need to block. Thus, unlike the \(\textsf{Complain}\) command, many clients can execute the \(\textsf{Audit}\) command in parallel.


Algorithm 32.

  1. Parse \(\mathsf{tag}_x\) as \(\mathsf{tag}_x=(r,e,\sigma)\)

  2. Call CCBF.\(\mathsf{TestCount}(\mathsf{tag}_x,t)\).

  3. If \(\mathsf{TestCount}\) returns True, \(x\) sends \((\mathsf{tag}_x,x)\) to \(S\)

  4. \(S\) verifies that the tag is valid by checking the \(\sigma\) is a valid signature on \(h||e\) where \(h=H(r||x)\).

  5. If so, \(S\) recovers the identity (\(A\)) of the originator by computing \(A={\mathsf Dec}_{SK_S}(e)\).

\(\textsf{Audit}(C, \mathsf{tag}_x,x)\)


We note that \(\textsf{Audit}\) allows the server to learn the message \(x\) and the originator \(A\). We do not specify what the server does upon learning this information, as that is specific to a particular use of FACTS. One possible option is for the server to review \(x\) to see if it is truly a malicious message, and if so, block the user \(A\) from sending further messages. However, this decision is orthogonal to the FACTS scheme and we do not prescribe a particular action here.

6.6 Experimental Evaluations

In this section, we empirically evaluate the accuracy and performance of FACTS. We perform two sets of experiments. The first, measures the error in terms of number of complaints above or below the threshold as a function of the total number of complaints. The second, measures the performance overhead for messaging and complaint as a function of the threshold.

6.6.1 Experimental parameters

For our experiments, we set the maximum number of complaints per epoch \(n=1,000,000\). If we consider an epoch of one day, this results in approximately 11.6 complaints per second. To understand accuracy and efficiency of FACTS, we measure them for a range of thresholds \(100 \le t \le 1000\). With these fixed, we set the remaining parameters according to Corollary 65. In particular, we set the server’s storage \(s=96n=12MB\). The user set size \(u\) varies from (approximately) 47,000 to 470,000 bits, while the message set size \(v\) goes from (approximately) 740 to 7400.

The (top) Mean and (bottom) Relative Standard Deviation of Experimental Explicit Threshold vs. The Number of Background Complaints.
Average complaint time as a function of the threshold with \(n=1,000,000\) complaints per epoch. Complaint time is measured as the average of 100 samples and has a variance of less than 5ms. Network latency shows the minimum latency required to transmit 3 sequential messages over the network, a lower bound on complaint time.

6.6.2 Accuracy and stability

To measure the accuracy of FACTS, we observe the actual number of complaints necessary to cause an audit on a single message as a function of the background noise (i.e., total complaints on other messages). We calculate both the mean and the standard deviation of this value to capture the accuracy and stability of the complaint mechanism. To get a statistically meaningful estimate of these, our experiments run 1000 iterations of each parameter configuration.

The results of our experiments are presented in Figure 8. The top plot of this figure shows the mean number of complaints to trigger an audit for a given threshold \(t\). As can be seen from the error bars, the absolute errors in number of complaints is quite small, with a maximum deviation of about 10 complaints at a threshold of 1000. Not surprisingly, we see that this error increases as the background noise increases, but the mean number of complaints remains remarkably steady at the desired value. The bottom plot of Figure 8 shows the relative standard deviation of the number of complaints as a function of background noise. From this graph we can see that the relative error is only a few percent, with a maximum relative error of about 3.5%. Not surprisingly, the threshold 100 measurement incurs the highest relative error because the noise is a much higher ratio when compared to the threshold. These experiments suggest that FACTS achieves good accuracy for a wide variety of threshold and background noise.

6.6.3 Performance overhead

Our next set of experiments measures the performance overhead of FACTS as a function of the threshold to start an audit. Specifically, we measure the overhead of sending a message using FACTS, and the cost of issuing a complaint. We note that for the message sending cost, we do not measure the cost of the EEMS communication, instead only measuring the added overhead due to FACTS.

For these experiments, we implemented both the client and server using the Rust programming language. We used SHA-3 for a hash function, and for encryption and signatures we used Rust’s ring library[180] implementation of OpenSSL’s ChaCha20-Poly1305 protocol and Ed25519 respectively. To instantiate the CCBF, we used a simple library bitvec[181] that allows memory to be bit addressed, rather than byte addressed, which gains us a quick, compact way to store the CCBF data structure.

To simulate network overhead, we implemented a simple web server and client, which communicated over a (simulated) 8 Mbps network with a latency of 80ms, using TLS 1.3. Since we are only measuring the overheads of FACTS over the underlying EEMS, our measurements did not include the time to send the message over the EEMS, nor the time to establish the TLS connection. All experiments were run on a 4.7GHz Intel Core i7 with 16GB of RAM, with a sample size of 100 for each metric. As in the accuracy experiments, we set \(n=1,000,000\) and threshold varying from 100 to 1000, with the remaining parameters determined by Corollary 65.

For our measurement of message origination we looked at the cost of originating and sending a message of size 2MB. Creating and sending such a message with the encrypted hash and identity took 98ms, which indicates that the major bottleneck in this process is the 80ms network latency. We see then that when a user wishes to forward a message, they will still call \(\textsf{Originate}(A,x)\), but then forward the original message whereas in an EEMS this would just require a forward. Thus, the overhead of FACTS on a forward is slightly less than 100ms.

Figure 9 shows our measurements of the time to issue a complaint as a function of the audit threshold. The time for this is dominated by the time to retrieve the user set (i.e., the bits that the user can write) from the server. Since the size of this set \(u=O(n/t)\), this time grows inversely with the threshold \(t\). Thus, as the threshold increases, the total complaint time decreases very quickly, going down to essentially just the network latency when \(t\ge 400\).

These experiments show that both the (added) cost of sending messages and the cost of complaints (for sufficiently large \(t\)) are dominated by the networking costs. Thus, as long as the latency of the network is reasonable, FACTS can scale to millions of complaints per day.

6.7 Security of FACTS

In this section we analyze the security of FACTS. We provide security definitions capturing the privacy and integrity guarantees provided by FACTS and prove that our protocols described in Section 6.5 achieve these definitions.

6.7.1 Adversary Model

We consider two different types of adversaries against FACTS. The first is an honest-but-curious server \(S\). Such a server may also collude with some of the users. However, all such users, as well as the server, will follow the protocol. This adversary class models what the FACTS server learns in running the system, so we want to limit what the server learns. However, we have to assume that the server acts honestly, as a malicious server can fully break the integrity and availability of FACTS. For example, since the server produces the signatures binding originators to messages, a malicious adversary with knowledge of this key could arbitrarily assign originators by forging this signature.

We also consider a second type of adversary controlling a group of malicious users who do not collude with the server. Such users may want to violate the confidentiality of FACTS by learning extra information about messages or complaints, beyond what they learn through the messages they validly receive. Or, they may want to break the integrity of the complaint and audit mechanism of FACTS to blame innocent parties for audited messages, or to delay or speed-up the auditing of targeted messages. This models an external adversary, say a malicious company or government, who may want to distribute fake information without being audited or may want to block certain information or users from the system.

6.7.2 Privacy

We begin by looking at the privacy guarantees provided by FACTS.

6.7.2.1 Privacy vs. Server:

We first give a definition for privacy against a semi-honest server who may also collude with some semi-honest users. In this setting we aim to argue that unless a message is audited or is received by an adversarial user, the server learns no information about the message or the complaints on the message. In particular, the server should not be able to tell whether any message is a new message or a forward and how many, if any, complaints this message may have. In fact, the only thing that the server learns is the metadata of who is sending messages to whom and who is issuing complaints, but not anything more.

Specifically, we propose a real-or-random style definition to capture privacy against the server. This definition captures the fact that the view of the server (and colluding users) until a message is audited or received by a colluding user just consist of random values, and thus is independent of the messages and complaints.

Concretely, we define the following game between an adversary \(\mathcal{A}\) controlling the server (and possibly some colluding users) and a challenger.

  1. \(\mathsf{Game}_\mathsf{EEMS}^{\mathsf{server\mbox{-}privacy}}(\mathcal{A})\):

  2. The challenger runs \(\textsf{Setup}(c)\) to set up the EEMS with \(c\) users. He hands all keys corresponding to corrupted parties to \(\mathcal{A}\)

  3. \(\mathcal{A}\) chooses a sequence of messages \(((\mathrm{send},\allowbreak A_0,\allowbreak B_0,\allowbreak \mathsf{tag}_{x_0},\allowbreak x_0),\allowbreak\ldots,\allowbreak(\mathrm{send},\allowbreak A_\ell,\allowbreak B_\ell,\allowbreak \mathsf{tag}_{x_\ell},\allowbreak x_{\ell}))\)12, and a sequence of complaints \(((\mathrm{complain},\allowbreak C_0,\allowbreak \mathsf{tag}_{x^c_0},\allowbreak x^c_0),\allowbreak \ldots,\allowbreak (\mathrm{complain},\allowbreak C_{\ell'},\allowbreak \mathsf{tag}_{x^c_{\ell'}})\) and interleaves them arbitrarily. We require that none of the sending users (\(A_i\)), receiving users (\(B_i\)), or complainers (\(C_i\)) are controlled by \(\mathcal{A}\).

  4. The challenger chooses \(b \gets \{0,1\}\) and does the following:

    1. If \(b=0\), Run the \(\textsf{SendMsg}\) and \(\textsf{Complain}\) protocols with inputs supplied by \(\mathcal{A}\), giving \(\mathcal{A}\) the resulting server view.

    2. If \(b=1\),

      • for each \(\textsf{SendMsg}\) command, choose \(r \gets \{0,1\}^\lambda\) and send this to \(S\). Choose \(x' \gets \{0,1\}^{|x|+|\tag_x|}\) and send \(x'\) from \(A_i\) to \(B_i\) using EEMS.\(\textrm{send}\).

      • The challenger maintains a set \(\mathrm{USED}\subseteq [s]\)13. For each \(\textsf{Complain}\) command, the challenger chooses \(ind \gets [s] \setminus \mathrm{USED}\), sends \(ind\) from \(u_i\) to \(S\), and adds \(ind\) to \(\mathrm{USED}\).

  5. \(\mathcal{A}\) outputs a bit \(b'\)

  6. We say that \(\mathcal{A}\) has advantage \[\mathsf{Adv}_\mathsf{EEMS}^{\mathsf{server\mbox{-}privacy}}(\mathcal{A})= |\Pr[b=b']-1/2|.\]

Definition 66 (Privacy vs. Server). A FACTS scheme is private against a semi-honest server if the adversary has a negligible advantage in the game above \(\mathsf{Adv}_\mathsf{EEMS}^{\mathsf{server\mbox{-}privacy}}(\mathcal{A})\le \mathsf{negl}(\lambda)\)

Theorem 67. FACTS is private against a semi-honest server

First, consider the server’s view on a \(\textsf{SendMsg}\) command. This view consists of a message \(h = H(r||m)\) for \(r \leftarrow\{0,1\}^\lambda\) and the leakage from EEMS.\(\textrm{send}\), i.e., the identities \(A\) and \(B\), as well as \(|(\tag_x,x)|\). Since the challenger uses the same sender, receiver, and message length, the only thing left to prove is that \(h\) is indistinguishable from random. Since \(r\) is chosen uniformly at random, and \(H\) is a random oracle, \(H(r||m)\) is uniformly random to \(\mathcal{A}\) unless \(\mathcal{A}\) queries \(H(r||m)\). However, since \(\mathcal{A}\) makes at most \({\mathsf poly}(\lambda)\) queries to \(H\), the probability that he makes this query is at most \({\mathsf poly}(\lambda)/2^{\lambda} \le \mathsf{negl}(\lambda)\).

Next, we consider the \(\textsf{Complain}\) commands. The server’s view on a complaint consists of the complainer’s ID \(C\) and an index in the CCBF to flip to 1. In a real execution of \(\textsf{Complain}\), this index is chosen at random from the set \(S_C \cap V_x\) where \(S_C = \{i\in U_C \mid T[i] = 0\}\) and \(V_x\) is the list of item locations for \(x\).14 However, since \(U_C\) and \(V_x\) are chosen at random, we can equivalently sample a random 0-index in the bit vector \(T\) and then choose \(U_C\) and \(V_x\) conditioned on them containing this location. Hence the location sent to the server is uniformly random unless \(\mathcal{A}\) makes the corresponding \(H\) query, which only happens with \(\mathsf{negl}(\lambda)\) probability. 0◻

The above theorem states that, beyond the meta-data of who sent a message to whom and who has sent complaints and when, FACTS reveals no information about messages and complaints to a semi-honest server until an audit occurs (or a malicious user receives a message). Moreover, the view of the server is completely random when conditioned on the meta-data. Now, suppose that a message \(x\) is audited (or is received by an adversary-controlled user). When this happens, the adversary learns the tag and message \((\tag_x,x)\). This enables \(\mathcal{A}\) to learn the identity of the originator (by decrypting it from \(\tag_x\)) and to learn the entire history of this message, i.e., the transmission and complaint history of \(x\). However, since the server’s view of all other messages is indistinguishable from independent random strings (modulo the meta-data), the adversary does not learn anything more about these messages as a result of an audit on \(x\).

6.7.2.2 Privacy vs. Users

We now proceed to analyze security of our protocol against (possibly malicious) users that are not colluding with the server. This models the case of a third party adversary that tries to learn information about the messages and complaints in FACTS. Here, we no longer assume that a message \(x\) is never received by a malicious user and thus we cannot use a real-or-random style definition as before. Instead, we argue that a user cannot distinguish a new message from a forwarded message unless another corrupted user has previously seen that message. This also shows that a malicious user cannot learn the identity of the message originator. Since users do not receive any communication on complaints, we only consider message privacy here.

Concretely, we define the following game between an adversary \(\mathcal{A}\) controlling a set of users, and a challenger.

  1. \(\mathsf{Game}_\mathsf{EEMS}^{\mathsf{user\mbox{-}privacy}}(\mathcal{A})\):

  2. The challenger runs \(\textsf{Setup}(c)\) to set up the EEMS with \(c\) users and gives all key material for the corrupted users to \(\mathcal{A}\). Let \(B \in \mathcal{A}\) be a user controlled by the adversary.

  3. \(\mathcal{A}\) chooses messages \(x, x'\) s.t. \(|x|= |x'|\) and honest users \(O, A \notin \mathcal{A}\)

  4. The challenger chooses \(b \mid \{0,1\}\) and does the following:

    1. If \(b=0\), the challenger runs \(\textsf{SendMsg}(O,A,\perp,x')\) and \(\textsf{SendMsg}(A,B,\perp,x)\) with \(\mathcal{A}\) receiving the view of \(B\).

    2. If \(b=1\), the challenger runs \(\textsf{SendMsg}(O,A,\perp,x)\) and \(\textsf{SendMsg}(A,B,\tag_x, x)\) (where \(\tag_x\) is the tag received by \(A\) from \(O\)).

  5. \(\mathcal{A}\) outputs a bit \(b'\)

  6. We say that \(\mathcal{A}\) has advantage \[\mathsf{Adv}_\mathsf{EEMS}^{\mathsf{user\mbox{-}privacy}}(\mathcal{A})= |\Pr[b=b']-1/2|.\]

Definition 68 (User privacy). A FACTS scheme achieves privacy against malicious users if the adversary has a negligible advantage in the game above \(\mathsf{Adv}_\mathsf{EEMS}^{\mathsf{user\mbox{-}privacy}}(\mathcal{A})\le \mathsf{negl}(\kappa)\)

Theorem 69. FACTS achieves privacy against malicious users.

The view of \(B\) on an execution of \(\textsf{SendMsg}(\cdot,B,\tag_x,x)\) consists of the received message and tag \((\tag_x, x)\) where \(\tag_x = (r,e,\sigma)\). Since \(e\) is a semantically secure encryption of the identity of the originator, \(\mathcal{A}\) cannot distinguish between the case when \(e = {\mathsf Enc}(A)\) (when \(b=0\)) and the case when \(e = {\mathsf Enc}(O)\) (when \(b=1\)) except with advantage negligible in \(\kappa\). Additionally, since \(\tag_x\) is generated identically both when \(b=0\) and \(b=1\) except for this change in \(e\), this means that \(\tag_x\) does not help \(\mathcal{A}\) distinguish between these two cases. 0◻

6.7.3 Integrity

We now turn to the integrity guarantees provided by FACTS. We aim for a few different notions of integrity to show that malicious users cannot interfere with the complaint and audit process. First, no adversary controlling a subset of the users should be able to frame an honest user as the originator of an audited message he did not originate. Second, an adversary controlling a subset of the users should not be able to significantly delay the audit of a malicious message. In particular, such an adversary should not be able to prevent a malicious message sent by one of his users from being audited. Finally, an adversary controlling a small set of users should not be able to significantly speed up the auditing of a targeted message. In particular, such an adversary should not be able to cause an audit without complaints from some honest users.

We begin by defining the following game between a challenger and an adversary \(\mathcal{A}\) controlling a subset of the users to capture the inability of an adversary to forge a valid tag that it has not seen before.

  1. \(\mathsf{Game}_\mathsf{EEMS}^{\mathsf{unforgeability}}(\mathcal{A})\):

  2. The challenger runs \(\textsf{Setup}(c)\) to set up the EEMS with \(c\) users and gives all key material for the corrupted users to \(\mathcal{A}\).

  3. \(\mathcal{A}\) requests \(\textsf{SendMsg}\) operations on messages of its choice both from honest and corrupted users. (\(\mathcal{A}\) is given the view of corrupted users in all these executions consisting of \((\mathsf{tag}_x,x)\).)

  4. \(\mathcal{A}\) outputs a tag, message pair \((\mathsf{tag}_y, y)\)

  5. We say that \(\mathcal{A}\) WINS if \(\mathsf{tag}_y\) is a valid tag for message \(y\) with originator \(O \notin \mathcal{A}\), and there has not been a prior command \(\textsf{SendMsg}(O,\cdot,\perp,y)\).

Definition 70 (No framing). We say that a FACTS scheme disallows framing if for any PPT \(\mathcal{A}\), \(\mathcal{A}\) WINS in the above game with probability at most \(\mathsf{negl}(\kappa)\).

Theorem 71. The FACTS scheme is unforgeable.

A valid tag \(\mathsf{tag}_y\) with originator \(O\) consists of \(\mathsf{tag}_y = (r,e,\sigma)\) where \(r\) is a random seed s.t. \(H(r||y) = h\), \(e = {\mathsf Enc}_{PK_S}(O)\), and \(\sigma= \mathop{\mathrm{\textsf{Sig}}}_{SK_S}(h||e)\). Thus, to frame \(O\), \(\mathcal{A}\) needs to produce a valid signature on \(h||{\mathsf Enc}(O)\). \(\mathcal{A}\) can observe tags from polynomially many messages originated by \(O\), but except with probability negligible in \(\lambda\) none of them will have the same value \(h\). Thus, by the unforgeability of \(\mathop{\mathrm{\textsf{Sig}}}\), \(\mathcal{A}\) cannot produce the necessary signature except with probability negligible in \(\kappa\). 0◻

Next, we give a definition that captures the ability of an adversary controlling a subset of the users to delay the audit of a particular message. Our goal is to show that the adversary cannot protect a malicious message from being audited.

Specifically, we define the following game,

  1. \(\mathsf{Game}_\mathsf{EEMS}^{\mathsf{no-delay}}(\mathcal{A})\):

  2. The challenger runs \(\textsf{Setup}\) to set up the EEMS with \(c\) users and gives all key material for the corrupted users to \(\mathcal{A}\).

  3. \(\mathcal{A}\) issues a single \(\textsf{SendMsg}(A,B,x)\) command with \(A \in \mathcal{A}\) to produce \(\tag_x\)

  4. \(\mathcal{A}\) outputs a list of \(\textsf{Complain}\) commands with at most \(n\) total complaints, of which at least \(\ell\) are complaints on \(\tag_x\).

  5. The challenger runs the specified complaint commands, and then runs \(\textsf{Audit}(A,\tag_x,x)\)

  6. We say that \(\mathcal{A}\) WINS if this audit is not successful (i.e., the audit threshold is not reached).

Definition 72 (No delay). We say that a FACTS scheme is \(\ell\)-audit delay resilient for integer \(\ell < n\) if for any PPT \(\mathcal{A}\), \(\mathcal{A}\) WINS in the above game with probability at most \(\mathsf{negl}(\lambda)\).

Theorem 73. The FACTS scheme is \(\ell\)-audit delay resilient for any \(\ell \ge 1.1t+.4\lambda+ .7\sqrt{\lambda t}\).

This follows immediately from Theorem 6 0◻

Next, we define the following game to capture the ability of a small number of malicious users to cause the audit of some message. Importantly, this definition also captures the case where malicious users try to audit an honest message (on which there are no complaints by honest users). Specifically, the following game is between an adversary \(\mathcal{A}\) corrupting at most \(\ell\) users and a challenger

  1. \(\mathsf{Game}_\mathsf{EEMS}^{\mathsf{no-speedup}}(\mathcal{A})\):

  2. The challenger runs \(\textsf{Setup}\) to set up the EEMS with \(c\) users and gives all key material for the \(\ell\) corrupted users to \(\mathcal{A}\).

  3. The challenger runs a single \(\textsf{SendMsg}(A,B,x)\) command for \(A \notin \mathcal{A}\) and \(B \in \mathcal{A}\).

  4. \(\mathcal{A}\) may issue at most \(L\) \(\textsf{Complain}\) commands per each user he controls.15

  5. The challenger runs the specified \(\textsf{Complain}\) commands, and then runs \(\textsf{Audit}(\cdot, \mathsf{tag}_x,x)\).

  6. We say that \(\mathcal{A}\) WINS if this audit is successful.

Definition 74 (No speed up). We say that a FACTS scheme is \(\ell\)-party audit speed-up resilient if for any PPT \(\mathcal{A}\) controlling at most \(\ell\) users, \(\mathcal{A}\) WINS in the above game with probability at most \(\mathsf{negl}(\lambda)\).

Theorem 75. The FACTS scheme is \(\ell\)-party audit speed-up resilient for \(\ell \le (t - 2.1\sqrt{\lambda t})/L\).

This follows immediately from Theorem 5 because each user \(\in \mathcal{A}\) makes at most \(L\) complaints. 0◻

6.8 Alternative FACTS

In this section we describe several optimizations or enhancements to the basic FACTS protocol.

6.8.0.1 Revealing even less during audits.

Recall that the FACTS system we presented reveals two things to the server (or an auditor) after the threshold of complaints has been reached: the user id of the message’s originator, and the contents of the message itself. Indeed, one of our motivations was to avoid revealing the entire path or tree of message forwarding as in prior work [85].

However, in some environments, even this may be too much to release to a service provider that could be, for instance, compromised or influenced by an oppressive regime. An advantage of FACTS is that the system for tallying complaints actually does not require this information in order to function properly. Here we briefly sketch simple modifications to the scheme to achieve this additional hiding, with a note of caution that we have not analyzed the formal security under these variants.

Hiding the originator’s identity entails omitting the encrypted user id from the origination protocol. To do this, the server’s signature \(\sigma\) of the message hash and sender identity should be replaced with a blind signature of the message hash only. In this way, a later audit which reveals the (unblinded) signature will not reveal anything about the originator’s identity. The disadvantage of course would be that there is no way for the system to identify and penalize users who regularly submit fake news to the platform.

To hide the message contents, these would simply be omitted from what is sent to the auditor once the threshold is reached. In this case, the notion of “audit” may be understood to be simply confirming that some message (with the given hash) has passed the threshold of complaints, and publishing the hash to all users as potentially fake news that has received a large number of complaints. The client software could easily be configured to flag such messages as they are received afterwards, without ever revealing to the server any contents or recipients of such message. Here the disadvantage is obviously that no third-party auditing or fact-checking is possible, raising the possibility of false positives in which messages are flagged.

6.8.0.2 Throttling complaints.

The FACTS system and underlying CCBF data structure assume a global limit \(n\) on the number of complaints per epoch, but do not require any per-user limit besides the natural limit of \(u\), the size of the user set.

However, there is some potential for abuse by users who issue many complaints in a single epoch: they may attempt to “attack” another known message by issuing multiple complaints that set bits in that message’s user set; they may collude with others and attempt to go over the total per-epoch limit of \(n\) complaints; or they may simply attempt a denial-of-service attack to prevent other complaints from being issued.

A simple solution to these problems is to apply a limit \(\ll u\) on the maximum number of complaints per user per epoch. This is easy for the server to apply, since users are authenticated during the Complain protocol. More nuanced limits based on a user’s reputation or longevity on the platform could also be applied.

Users with a small “quota” of allowed complaints per epoch could even be encouraged to participate initially in the complaint process by forwarding questionable content to a trusted reputable user on the system, who would then presumably apply their own judgment and possibly issue a complaint in turn. This idea is aligned with many existing content moderation settings on (unencrypted) social media platforms.

6.8.0.3 Handling epoch rollover.

As described, the FACTS system resets all counters at the end of a single epoch. However, this may mean that if a “fake news” message is first detected towards the end of an epoch, the complaints for this message may get split between the current and next epochs and thus fail to trigger an audit in either epoch.

A potential solution to this problem is to always run two epochs concurrently, where each epoch lasts for time \(t\), and the epochs start times are \(t/2\) apart. Users complain in both of the epochs, and an audit occurs if the number of complaints in either epoch exceed the threshold. This way, regardless when a “fake news” message is first detected, there will be an epoch with at least \(t/2\) time left to accumulate complaints. Since we assume that fake news messages are ones that are received and complained on by many users, and that users are likely to complain shortly after first receiving a message, this provides enough time for a threshold of complaints to be reached.

6.8.0.4 Regional complaint servers.

The most significant performance bottleneck in FACTS is the necessary global lock on the table \(T\) while a single user is waiting to download their user set \(U_C\) and reply with their complaint index. Even though the communication size is quite small for practical settings, the inherent latency across global communications networks may impose a challenge.

For example, if many complaining users have a round-trip latency of more than 200ms, then the global complaint rate among all users cannot be higher than 5 complaints per second, or some 432,000 complaints per day, regardless of any parameter settings or chosen epoch length.

One possible solution for a large-scale platform facing this issue would be to allow multiple local complaint servers, each with their own CCBF table \(T\), to independently operate and accumulate complaints per message. This makes sense, as most targeted misinformation content is local to a given country or region, and it would still be possible for each regional server to share audited message information with others in order to prevent spread of viral false content between regions.

6.8.0.5 Third-party audits.

While many messaging and social media platforms currently employ their own “in-house” teams for content moderation, there have been some attempts at separating the role of the server from that of auditor.

From a protocol standpoint, we can imagine a separate Server and Auditor: the former is semi-honest, handles the encrypted messaging system and maintains the public CCBF table \(T\). The Auditor is fully honest and non-colluding, but computationally limited; intuitively, the third-party Auditor should only be involved once a message has passed the desired threshold of complaints.

The FACTS system supports this option easily without the need for any additional cryptographic setup during origination. Because the CCBF table \(T\) is globally shared among all users as well as the Auditor, any complaining user who computes \(\mathsf{TestCount}{}\) on their own to see that the probabilistic threshold has been surpassed, can then forward their complaint (i.e., the opened message) directly to the Auditor. Being fully honest, the Auditor may hold a copy of the decryption key from origination and use this to determine what kind of action may be necessary (such as suspending the originating user’s account, flagging the message, etc.).

While it doesn’t appear this idea imposes any additional interesting challenges from a cryptographic standpoint, it could be useful for some kinds of messaging platforms.

6.8.0.6 Hiding message metadata.

Our FACTS system is certainly no more private than the underlying EEMS which is being used to actually pass messages between users. In our analysis, we explicitly assumed that the EEMS leaks metadata on the sender and recipient of each message, but not the contents.

However, some existing EEMS attempt to also obscure this metadata in transmitting messages, so that the server does not learn both sender and recipient of any message. This can trivially be accomplished by foregoing a central server and doing peer-to-peer communication (note that FACTS may still be useful as a central complaint repository); or using more sophisticated cryptography to hide metadata [182], [183], [184].

Of particular interest for us is the recently deployed sealed sender mechanism on the popular Signal platform [185]. The goal in this case is to obscure the sender, but not the recipient, from the server handling the actual message transmission. We note that this concept plays particularly well with FACTS, as the additional leakage in our protocol of the identity of each complaining user, can be presumably correlated via timings with the receipt of some message, but this is exactly what is revealed under sealed sender already! Both systems thus work to still hide message sender and originator identities (at least until an audit is performed).

However, note that recent work [186] has shown that some timing attacks are still possible under sealed sender, and the same attacks would apply just as well to FACTS. But the solutions proposed in [186] might also be deployed alongside FACTS to prevent such leakage; we leave the investigation of this question for future work.

6.9 Related Work

6.9.0.1 Message Franking:

The most common approach today for reporting malicious messages in encrypted messaging systems is message franking [80], [81], [82]. Message franking allows a recipient to prove the identity of the sender of a malicious message. However, message franking is focused on identifying the last sender of a message, whereas we are interested in identifying the originator. Moreover, message franking does not provide any threshold-type guarantees to prevent unmasking of senders given only one (or a few) complaints.

6.9.0.2 Oblivious RAM (ORAM):

Oblivious Random-Access Memory (ORAM) [26], [187], [188] allows a client to obliviously access encrypted memory stored on a server without leaking the access pattern to the server. The standard ORAM definition assumes a single user with full control over the database. While some important progress has been made on multi-client ORAM protocols [102], [103], [104], these solutions are still not scalable to millions of malicious users as would be needed for our application.

6.9.0.3 Oblivious Counters and Oblivious Data-Structures:

Like CCBF, oblivious counters [105], [106] build counters that can be stored and incremented without revealing the value of the counter. However, these techniques focus on exact counting, and do not provide efficient ways for storing large numbers of counters, as needed for our applications. More generally, oblivious data-structures, e.g. [107], [108], [109] construct higher-level data structures such as heaps, trees, etc. to enable oblivious operations over encrypted data. However, these largely focus on higher-level applications and do not provide the compression achieved by CCBF.

6.9.0.4 Privacy-Preserving Sketching:

CCBF can be viewed as a small data structure (a sketch) for storing the counts of complaints on a large set of messages. There has indeed been a lot of recent interest (e.g., [40], [41], [42], [43], [189], [190], [191]) in private sketching algorithms for cardinality estimation, frequency measurement, and other approximations. However, these works generally focus on a multi-party setting, with multiple parties running secure computation to evaluate the statistic in question. Since our goal was to restrict ourselves to user-server communication only, such techniques do not seem applicable to our setting.

7 BoSS: Threshold-Based Superspreader Identification

This chapter is based on joint work with Arkady Yerukhimovich, Daniel S. Roche, and Mayank Varia, “The Bane of Super Spreaders (BoSS): Identifying Patterns of Unwanted Content in End-to-End Encrypted Messaging.”

7.0.0.1 Relation to FACTS.

FACTS (6) enables the identification of the originator of a message once the message has received approximately a threshold number of complaints. In this chapter, we explore a complementary accountability functionality that identifies superspreaders, namely, users who repeatedly send or forward content that their immediate or downstream recipients complain about.

While FACTS maintains a complaint tally for each message, BoSS computes a tally for each user across different reported messages, taking into account the forwarding relationships and avoiding duplicate counting of the same forwarding edge. Moreover, unlike FACTS, which reveals both the contents and the originator of an audited message, BoSS identifies users whose tallies reach the specified threshold without revealing the contents of the reported messages or the actual tallies.

The differences in the desired functionalities also motivate different approaches to the design of the two systems. While FACTS relies on a single semi-honest server and uses a collaborative counting Bloom filter (CCBF) to enforce approximate thresholds, BoSS relies on two non-colluding servers, referred to as moderators in this chapter, and uses maliciously secure two-party computation to enforce exact thresholds. The latter approach also allows us to efficiently support relatively small thresholds (\(t = 10\) in our experiments), which was left as a direction for future work in FACTS (6.1.3).

7.0.0.2 Terminology.

Throughout this chapter, we use terminology consistent with FACTS where applicable. In both systems, a user may issue a complaint about a message they have received. In BoSS, a complaint is submitted to the moderators in the form of a cryptographic object referred to as a report, which is generated using the \(\mathrm{CreateReport}\) command.

The notion of a tag differs between the two systems. While a tag in FACTS is associated with a message and its originator, a tag in BoSS encodes information associated with an individual step in the forwarding history of a message (7.5.5).

Both systems operate in epochs but process complaints differently. In FACTS, the counting structure is updated as complaints are submitted, allowing an audit to be triggered once the approximate complaint threshold is reached. In BoSS, reports are collected throughout an epoch and processed together by the moderators at the end of the epoch.

7.1 Introduction

A major challenge to the operation and safety of social networks and messaging systems is the spread of unwanted content like spam, fraud, phishing and malware campaigns, impersonation and astroturfing, hateful and extremist messages, low-credibility content, and other messages that violate community standards and social norms. Unwanted content can “endanger online ecosystems as well as our society” [192] by rendering “personal information and financial transactions…vulnerable to cybercriminals” [193], eliciting recipients into “exacerbating social conflict online” [194], and precipitating serious real-world harms [195], [196], [197] when “lies spread faster than the truth” [97].

7.1.0.1 Encrypted messaging.

This work examines unwanted content in end-to-end encrypted messaging apps like Signal [198], WhatsApp [199], iMessage [200], Facebook Messenger [201], and others. Encrypted messengers are widely used by many communities to share information [202], [203], [204], which greatly improves communication privacy but also explicitly prevents a moderator from reading messages. Ergo, encrypted messengers need a different way [205], [206] to report unwanted content and reveal serial (re)posters of unwanted content.

This chapter and many prior works take a crowdsourcing approach in which a recipient, who can see the message, can choose to report it as unwanted content. Most prior works study the setting of targeted abusive or harassing messages, in which the reporter explicitly seeks personal assistance to deal with abuse. As a result, these systems only require a single report for the moderator to learn the message contents and the identity of the sender [80], [81], [82], [84], [207], [208], [209], [210], original source [86], [88], or everyone in the forwarding graph [85], [89].

In cases of unwanted content, by contrast, we can strive for even stronger privacy by providing less information to the moderator, concretely by revealing information only after a large threshold of reports have been received. Prior threshold reporting schemes are designed to reveal the original source of messages that have gone viral and received many complaints [91], [92], [211]. Source tracking is most useful when originators propagate unwanted content to a large audience.

7.1.0.2 Viral superspreaders.

But studies have shown that in many settings, a different and potentially more potent group can be responsible for viral messages: superspreader accounts that repost and amplify other people’s content rather than creating their own. This phenomenon has been observed for ordinary (wanted) messages that become viral organically. Studies of social media posts and reposts show that “most of the influential source[s]… are not influential [superspreaders] (and vice versa)” [98] and the superspreaders are “a small group of highly influential users [that] account for approximately half of the information flow within repost cascades” [212].

Superspreaders have also been observed in several studies of unwanted content, where sharers may also have an incentive to promote the content of others [213]. With financial spam, Cresci et al. [95] find that “the large discussion spikes about low-value stocks are due to mass, synchronized retweets.” With low-credibility content, Baribi-Bartov et al. [96] show that “[80%] of fake news [was] shared by the supersharers (0.3% of the population),” who “were highly active and persistent retweeters.” Additionally, Vosoughi et al. [97] find that “falsehood reached more people at every depth of a [message forwarding tree] than the truth.”

Example of message forwarding. Nodes denote clients and arrow labels show a simplified depiction of the tags (e.g., \(a_{1}\), \(a_{2}\), and \(a_{3}\) identify Alice). If Dana and Doug report their tags (shown in red), then this adds 2 to Bob’s tally and 1 to Alice’s tally. This rule thwarts sybil attacks: if malicious Eve forwards to her sybils Evan, Evel, and Evie and they all complain, then we only add 1 to Alice’s tally.

7.1.0.3 Threshold reporting of superspreaders.

Hence, this work initiates the study of a new kind of threshold reporting mechanism—one that identifies repeated sharers of content that is later reported. Concretely, a content moderator specifies a threshold \(t\), and a party \(P\)’s identity is revealed to the moderator if and only if \(t\) or more (immediate or downstream) recipients of \(P\)’s messages later complain about them.

We emphasize that messages are complained about by recipients as unwanted, whereas identities are revealed to the moderator as superspreaders. Indeed, we never reveal message contents to the moderator, though this work could be combined with known methods to do so if desired [80], [81], [82], [84], [86], [88], [207], [208], [209], [210]. Note that our superspreader reporting is fundamentally different and more privacy-preserving than impact tracing [90], which reveals the sharers of a single reported message.

Some care is required to define this threshold reporting mechanism in a way that is not game-able. First, the complaint tally for a party \(P\) is incremented both by multiple reports by recipients of the same message and by reports on different messages. This rule stops a superspreader from evading our threshold by originating new messages for each recipient. Second, the tally for a party \(P\) is only incremented once if there are multiple reports from the same subtree rooted at a single recipient. This rule ensures that receivers cannot run a sybil attack to game the complaint count, as shown in 10.

We also desire the usual security guarantees of reporting for encrypted messengers. Our integrity requirements are that true superspreaders cannot keep their identity hidden or cast blame on others. Our confidentiality requirement is that the moderator cannot learn the identity of benign accounts who shared no or few pieces of unwanted content. Our construction also maintains the privacy properties of the underlying messaging system for benign users.

7.1.0.4 Protocol and participants.

Our construction works on top of any (encrypted) messaging service \(\mathcal{F}_{\mathsf{MSG}}\), specified in 3, that allows many clients to send and receive messages. If a client wishes to use a moderation service, then our construction appends extra cryptographic tags to outgoing messages, which are sent via the messaging service \(\mathcal{F}_{\mathsf{MSG}}\).

Our design allows moderation to be optional and also supports multiple distinct moderation services. This feature was also recently and concurrently studied by Gregoire et al. [209], [210] for abuse reporting (i.e., with threshold 1).

Each message contains \(k\) tags that encode identities on the forwarding graph (10), where \(k\) denotes the longest forwarding depth supported. The source of a new message creates one tag with their own identity and several dummy tags. Forwarders replace a dummy tag with a real one, and then rerandomize the tags for unlinkability.

7.1.0.5 Threat model.

Our construction uses two servers to process reports: specifically, to deduplicate report tags and calculate report tallies. Like prior works in the two-server model [91], [214], one server can be the moderator and the other can be the encrypted messaging platform, a regulator, or any other entity. Our construction provides malicious security against a corrupted server, withstands collusion between server and clients, and never reveals anything about unreported messages or parties. Hence, we achieve the goal of ‘minimal trust’ defined in the recent work of Wang et al. [214].

Malicious clients can truncate earlier tags when they forward a message of the forwarding graph by deleting tags corresponding to earlier senders of the message. However, malicious clients cannot remove their own role in spreading the message: each report from an (immediate or downstream) recipient is guaranteed to implicate at least one malicious client. Moreover, because the tags are connected in a hash chain, malicious clients must leave intact a connected forwarding (sub)chain.

While the adversary can collude with several clients, we assume that there is some limit to the number of client accounts that the adversary can create or compromise. In particular, because the tally is calculated per account, superspreader reporting is only viable if the adversary cannot simply create a new account for each message it sends. We note that in practice, encrypted messaging services like Signal and WhatsApp require a telephone number during registration [215], [216] in order to limit new account creation.

7.1.0.6 Contributions.

In summary, we make three contributions.

Billions of people [202], [203], [217] use end-to-end encrypted messengers [198], [199], [200], [201] to send hundreds of billions of messages per day [204], [218]. They are social media networks, and people who use them can receive spam, fraud, malware, and other unwanted content. Research in open social networks shows that a small yet viral group of sharers can become “superspreaders” of unwanted content [95], [96], [97], [98], [212], [213]. Several studies show that WhatsApp is also subject to messaging campaigns of low-credibility content [99], [100], [101], [219], [220], [221], [222].

7.2.0.1 Signal.

The Signal protocol is used in many end-to-end encrypted messengers, including Signal’s own app [198]. It has been the subject of a voluminous amount of academic research into the security of its core protocol (e.g., [223], [224], [225], [226], [227], [228], [229], [230], [231], [232], [233], [234], [235], [236]), its instantiations in encrypted messaging apps on phones (e.g., [186], [237], [238], [239]), and extensions like sealed sender [186], [240].

7.2.0.2 Message franking.

Like Signal itself, the study of content moderation on encrypted messengers started in practice with Facebook’s message franking protocol [207] and has since been a topic of academic study [80], [82], [208], [241]. There have also been extensions of message franking to support anonymous communication networks [81], [83], [84], tracing back through some or all of the message forwarding graph to find (e.g.) the source of a forwarded message [85], [86], [87], [90], or both [88], [89].

7.2.0.3 Threshold reporting.

The most relevant prior works to ours are two papers on EEMS content moderation with a large threshold, which was studied by Liu et al. [211] in the single-server setting and by Bell and Eskandarian [91] in the multi-server setting. As with heavy hitter protocols [93], [94], [242], [243], [244], they provide stronger privacy by only revealing reports that have been reported by multiple people. We note that both of these papers reveal the message contents and the original source who authored the message. By contrast, this work aims to unmask the superspreaders of viral unwanted content: this is a trickier problem to define ([boss:sec:mgraph,boss:sec:ideal]) and it requires new algorithms and encodings of data to compute ([boss:sec:boss-protocol,boss:sec:protocol-sys]).

7.2.0.4 Ethics and policy.

Any research that can reveal end-to-end encrypted content necessarily involves important ethical and policy questions. We stress that any decision to deploy EEMS content moderation should be taken with caution and care, and in consultation with all affected groups and communities. In other words: the ethical questions with EEMS moderation go beyond computer science; hence, prior works take a cross-disciplinary perspective [205], [206], [245], [246], [247].

We believe that computer science research can inform the policy discussion by showing what is possible—in this work, showing how to detect superspreaders with more privacy than the message franking systems in use, thanks to the large threshold before anyone’s identity is revealed. Our work also provides clients with agency over whether and what to report, and it gives autonomy for moderators to decide how to react when they learn of superspreaders.

7.3 Messaging graph definition

In order to rigorously and clearly state the desired properties of our system, we define a messaging graph for each tracking community, storing information about messages that have been sent and forwarded with tags for this community. In other words, this section formalizes and generalizes notional diagrams like 10.

Formally, the messaging graph \(G\) for a given tracking community is a directed multigraph whose edge set forms a directed forest under a partial map \({\rm parent}\); that is, \(G\) is a tuple \((V,E,{\rm src}, {\rm dest}, {\rm cont}, {\rm parent}, {\rm plen})\) satisfying:

When any client sends a message to another client, tracked by the given community, this corresponds to adding an edge to the messaging graph. If that message is a forward of an older message, the parent function is updated to connect this message to the one that is being forwarded.

For a given message label \(e\in E\), the forwarding path of \(e\) is a list of edges containing \(e\), \({\rm parent}(e)\), \({\rm parent}({\rm parent}(e))\), etc., truncated to length \({\rm plen}(e)\).

Given a set of reports \(R \subseteq E \times \mathbb{N}\) (each pair \((e, \mathsf{trunc})\) corresponding to a message label \(e\) reported to the moderators along with a truncation bound \(\mathsf{trunc}\)), the audit subgraph is the subgraph formed by taking the union, over all \((e, \mathsf{trunc}) \in R\), of the forwarding path of \(e\) truncated to length \(\mathsf{trunc}\).

For a given reporting set \(R \subseteq E \times \mathbb{N}\), and a particular client \(u\in V\), the report tally of \(u\) is defined as the out-degree of node \(u\) in the audit subgraph induced by \(R\).

7.4 Security goals and ideal functionalities

We utilize real/ideal world simulation security, specifically the Simplified Universal Composability (SUC) model of [248], to model both correctness, i.e., what our protocols are supposed to do, and security, i.e., what privacy or other guarantees do we have in the presence of corrupted (i.e., possibly malicious) parties.

The goal of this section is to introduce the main ideal functionalities that we will implement with our protocols, and to discuss how these formalisms connect to the correctness and privacy properties we are actually able to achieve.

Specifically, our solution decomposes into three ideal functionalities which we discuss in this section:

7.4.1 Ideal functionality syntax

We define our ideal functionalities and protocols using the SUC framework of Canetti et al. [248]. This is a “simpler variant” of the full Universal Composability framework [249] which is equivalent under certain well-defined restrictions on the protocol and security properties.

As in the full UC model, the overall goal is to first define the desired behavior and privacy guarantees (or leakage) in terms of an ideal functionality with a trusted third party, then to present actual protocols which do not have any such trusted third party, but whose execution is indistinguishable from the ideal one by any outside observer.

We provide more detail on the SUC model in 7.4.2.

7.4.2 More info about the SUC model

This section continues the discussion about the SUC model from 7.4.1. In the SUC model, the actors who communicate with each other, maintain state, and perform computations, consist of:

In SUC, all communication between honest parties and with \(\mathcal{F}\) is transmitted via a router, who always sees the message header (along with the sender and recipient), shares it with \(\mathcal{A}\), and waits to deliver the message until \(\mathcal{A}\) says to do so. In ideal functionalities, we use a semicolon (\(;\)) to indicate the end of the “header” part and the start of the “private message” part. (Note that messages sent directly between parties also go via the router, but have no private part.)

In SUC, there is no equivalent of a “function call stack” between parties and functionalities with return values; parties can only send messages to each other (which are arbitrarily delayed by the adversary). Nonetheless, we can simulate this using fresh random nonces, as follows:

In our syntax, we emulate such pseudo-function calls by writing “send query \(X\) to \({\mathsf callee}\) and wait for response \(Y\)”.

7.4.3 \(\mathcal{F}_{\mathsf{SYS}}\) for high-level messaging with multiple tracking communities

We define a system for originating, receiving, forwarding, and reporting messages, using an underlying EEMS for message transmission between parties.

To support our goal of decentralized message tracking and reporting, we allow any given message to contain tags from zero or more tracking functionalities. Intuitively, each tracker corresponds to some sub-community among users, which may have their own community standards and corrective actions against repeated violators of said standards; for instance, there could be a “no politics” community, a “cat memes only” community, and a “only factual news stories” community, each operating independently. The rules governing when a message should be reported as violating standards, or what should happen when a certain community member has accumulated too many verified complaints, are intentionally outside the scope of our technical definitions.

In our formal definition, these tracking communities are defined by a list of moderators, who in turn approve registered clients to send and receive messages tagged for this community. Note that the moderator(s) are not actually performing content moderation in the usual sense, as they (according to the privacy properties we will prove) do not learn anything about the contents of messages or even metadata on message senders and receivers, until a sender passes a pre-defined threshold of distinct complaints. In this sense, the moderator role is essentially one of bookkeeping rather than censorship. The decentralized nature of our construction means that the moderation bookkeeping task could be run by the messaging platform itself, or by any other normal user or users.

Each message sent in our system will be marked with a set of zero or more tracking communities in which that message is tagged. Seeing a message is tagged with, say, the “only cat memes” tracker, assures the recipient that the message’s originator and all forwarders so far have agreed this message is appropriate for this community. If the recipient decides to complain about the message as inappropriate, the complaint tallies for all those forwarders are (obliviously) incremented.

The entire functionality models a single “epoch”, at the end of which the moderators run an audit protocol to learn the identities of all community members whose tally has reached the threshold.

This high-level functionality for messaging with multiple tracking communities for a single epoch, is captured in \(\mathcal{F}_{\mathsf{SYS}}\) (1). Some notable features of this ideal functionality:


Functionality 1 (Message & Content Moderation). This functionality \(\mathcal{F}_{\mathsf{SYS}}\) is parameterized by messaging leakage function \(f_{\mathrm{leak}}\), complaint threshold \(t\), and forwarding limit \(k\). It stores an initially-empty list \(\mathsf{history}\), an initially-empty queue \(\mathsf{inbox}_{\mathsf{client}}\) for each party, and for each tracking session id \(\mathsf{tsid}= (\mathsf{moderators}, \mathsf{nonce})\), an initially-empty forwarding graph \(G_{\mathsf{tsid}}\) and report list \(\mathsf{savedReports}_{\mathsf{tsid}}\).

  1. Init. Upon receiving \((\mathrm{init}, \mathsf{sid}, \mathsf{tsid};)\) from \(\mathsf{mod}\):

    1. Ensure \(\mathrm{initialized}_{\mathsf{tsid}}\) is not yet set.

    2. Extract \(\mathsf{moderators}\) from \(\mathsf{tsid}= (\mathsf{moderators}, \mathsf{nonce})\) and ensure \(\mathsf{mod}= \mathsf{mod}_0\).

    3. Set \(\mathrm{initialized}_{\mathsf{tsid}} \gets \top\).

    4. Output \((\mathsf{InitOK})\) to \(\mathsf{mod}\).

  2. Register. Upon receiving \((\mathrm{register}, \mathsf{sid}, \mathsf{tsid};)\) from \(\mathsf{client}\):

    1. Ensure \(\mathrm{initialized}_{\mathsf{tsid}} = \top\), \((\mathsf{client}, \mathsf{tsid}) \not\in \mathrm{registered}\).

    2. Append \((\mathsf{client}, \mathsf{tsid})\) to \(\mathrm{registered}\).

    3. Output \((\mathsf{RegisterOK}, \mathsf{tsid})\) to \(\mathsf{client}\).

  3. Originate. Upon receiving \((\mathrm{Originate}, \mathsf{sid}; \mathsf{recipient},\) \(\mathsf{contents}, \mathsf{tsids}, \mathsf{corruptInfo})\) from \(\mathsf{sender}\):

    1. Ensure \((\mathsf{sender}, \mathsf{tsid}) \in \mathrm{registered}\) for all \(\mathsf{tsid}\in \mathsf{tsids}\).

    2. Append \((\mathrm{Send}, \mathsf{sender}, \mathsf{recipient}, \mathsf{contents}|| \mathsf{tsids})\) to \(\mathsf{history}\).

    3. Set \(\mathsf{pathLengths}\gets\) array of \(k\) repeated according to the length of \(\mathsf{tsids}\).

    4. If \(\mathsf{sender}\) is corrupted, parse \(\mathsf{corruptInfo}\) as \((\mathsf{label}, \mathsf{pathLengths})\) and ensure each path length is between \(1\) and \(k\).

    5. Else if \(\mathsf{recipient}\) is corrupted, send \((\mathrm{CorruptedSend},\) \(\mathsf{sid}, \mathsf{sender}, \mathsf{recipient}, \mathsf{contents}, \mathsf{tsids}, f_{\mathrm{leak}}(\mathsf{history}))\) to \(\mathcal{A}\) and wait for response \((\mathsf{label})\).

    6. Else send query \((\mathrm{HonestSend}, \mathsf{sid}, \mathsf{tsids},\) \(f_{\mathrm{leak}}(\mathsf{history}))\) to \(\mathcal{A}\) and wait for response \((\mathsf{label})\).

    7. Ensure \(\mathsf{label}\) has never been used before.

    8. For each \(\mathsf{tsid}_i \in \mathsf{tsids}\), add a new node to \(G_{\mathsf{tsid}_i}\) with the given \(\mathsf{label}\), \(\mathsf{parent}= \bot\), \(\mathsf{sender}\), \(\mathsf{recipient}\), \(\mathsf{contents}\), \(\mathsf{wasReceived}= \bot\), and \(\mathsf{pathLength}_i\).

    9. Add \((\mathsf{label}, \mathsf{tsids})\) to the back of \(\mathsf{inbox}_{\mathsf{recipient}}\).

  4. Recv. Upon receiving \((\mathrm{Recv}, \mathsf{sid};)\) from \(\mathsf{recipient}\):

    1. Append \((\mathrm{Recv}, \mathsf{recipient})\) to \(\mathsf{history}\).

    2. Send query \((\mathrm{MsgLeakage}, \mathsf{sid}, f_{\mathrm{leak}}(\mathsf{history}))\) to \(\mathcal{A}\) and wait for response \((\mathrm{OK})\).

    3. If \(\mathsf{inbox}_{\mathsf{recipient}}\) is empty, output \((\mathsf{NoMessages})\) to \(\mathsf{recipient}\) and end this activation.

    4. Dequeue \((\mathsf{label}, \mathsf{tsids})\) from the front of \(\mathsf{inbox}_{\mathsf{recipient}}\).

    5. For each \(\mathsf{tsid}\in \mathsf{tsids}\), look up the node \(x \in G_{\mathsf{tsid}}\) with \(x.\mathsf{label}= \mathsf{label}\), ensure \(x.\mathsf{recipient}= \mathsf{recipient}\), and set \(x.\mathsf{wasReceived}\gets \top\).

    6. Output \((\mathsf{Message}, \mathsf{label}, x.\mathsf{sender}, x.\mathsf{contents}, \mathsf{tsids})\) to \(\mathsf{recipient}\).

  5. Forward. Upon receiving \((\mathrm{Forward}, \mathsf{sid}; \mathsf{recipient}, \mathsf{parent},\) \(\mathsf{tsids}, \mathsf{corruptInfo})\) from \(\mathsf{sender}\):

    1. For each \(\mathsf{tsid}\in \mathsf{tsids}\), look up the node \(x \in G_{\mathsf{tsid}}\) with \(x.\mathsf{label}= \mathsf{parent}\), and ensure \(x.\mathsf{recipient}= \mathsf{sender}\) and \(x.\mathsf{wasReceived}= \top\).

    2. Do the same as in \(\mathrm{Originate}\), except that the new graph nodes have \(\mathsf{parent}\) set accordingly.

  6. Report. Upon receiving \((\mathrm{Report}, \mathsf{sid}, \mathsf{tsid}; \mathsf{label}, \mathsf{corruptInfo})\) from \(\mathsf{recipient}\):

    1. Look up the node \(x \in G_{\mathsf{tsid}}\) with \(x.\mathsf{label}= \mathsf{label}\), and ensure \(x.\mathsf{recipient}= \mathsf{recipient}\) and \(x.\mathsf{wasReceived}= \top\).

    2. Set \(\mathsf{trunc} \gets k\); if \(\mathsf{recipient}\) is corrupted, set \(\mathsf{trunc} \gets \mathsf{corruptInfo}\) and ensure \(1 \le \mathsf{trunc} \le k\).

    3. Append \((\mathsf{label}, \mathsf{trunc})\) to \(\mathsf{savedReports}_{\mathsf{tsid}}\).

  7. Audit. Upon receiving \((\mathrm{Audit}, \mathsf{sid}, \mathsf{tsid};)\) from \(\mathsf{mod}\):

    1. Ensure \(\mathrm{initialized}_{\mathsf{tsid}} = \top\) and \(\mathrm{audited}_{\mathsf{tsid}}\) is not set.

    2. Extract \(\mathsf{moderators}\) from \(\mathsf{tsid}= (\mathsf{moderators}, \mathsf{nonce})\) and ensure \(\mathsf{mod}= \mathsf{mod}_0\).

    3. Set \(\mathrm{audited}_{\mathsf{tsid}} \gets \top\).

    4. Set \(\mathsf{reportedClients}\) to be the set of all clients whose report tally in \(G_{\mathsf{tsid}}\) from \(\mathsf{savedReports}_{\mathsf{tsid}}\) is at least \(t\).

    5. For each \(\mathsf{mod}_i \in \mathsf{moderators}\), output \((\mathrm{AuditResult}, \mathsf{reportedClients})\) to \(\mathsf{mod}_i\).



Functionality 2 (Complaint Tracking \(\mathcal{F}_{\mathsf{TRACK}}\)). This functionality is parameterized by complaint threshold \(t\) and forwarding limit \(k\), and uses session id \(\mathsf{sid}= (\mathsf{moderators}, \mathsf{nonce})\).

  1. Init. Upon receiving \((\mathrm{init}, \mathsf{sid};)\) from \(\mathsf{mod}_0\):

    1. Ensure \(\mathrm{initialized}\) is not yet set.

    2. Set \(\mathrm{initialized}\gets \top\) and create empty messaging graph \(G = (V, E, \mathrm{src}, \mathrm{dest}, \mathrm{cont}, \mathrm{parent}, \mathrm{plen})\).

    3. Output \((\mathrm{initialized})\) to \(\mathsf{mod}_0\).

  2. Register. Upon receiving \((\mathrm{register}, \mathsf{sid};)\) from \(\mathsf{client}\):

    1. Ensure \(\mathrm{initialized}= \top\) and \(\mathsf{client}\not\in V\).

    2. Add \(\mathsf{client}\) to \(V\).

    3. Output \((\mathrm{registered})\) to \(\mathsf{client}\).

  3. CreateMsgLabel. Upon receiving \((\mathrm{CreateMsgLabel}, \mathsf{sid};\) \(\mathsf{recipient}, \mathsf{contents}, \mathsf{forwardOf}, \mathsf{corruptInfo})\) from \(\mathsf{sender}\):

    1. Ensure \(\mathrm{initialized}= \top\) and \(\mathsf{sender}, \mathsf{recipient}\in V\).

    2. If \(\mathsf{forwardOf}= \bot\) (for origination), set \(\mathrm{plen} \gets 1\).

    3. Else (for a forward), do:

      1. Ensure \(\mathsf{forwardOf}\in \mathsf{received}\), \(\mathrm{dest}(\mathsf{forwardOf}) = \mathsf{sender}\), and \(\mathrm{cont}(\mathsf{forwardOf}) = \mathsf{contents}\).

      2. Set \(\mathrm{plen} \gets \min(k, \mathrm{plen}(\mathsf{forwardOf}) + 1)\).

    4. Set \(\mathsf{trunc} \gets k\).

    5. If \(\mathsf{sender}\) is corrupted, parse \(\mathsf{corruptInfo}\) as \((\mathsf{label}, \mathsf{trunc})\), ensure \(1 \le \mathsf{trunc} \le k\), and update \(\mathrm{plen} \gets \min(\mathrm{plen}, \mathsf{trunc})\).

    6. Else if \(\mathsf{recipient}\) is corrupted, send query \((\mathrm{CorruptedSend}, \mathsf{sid}, \mathsf{sender}, \mathsf{recipient}, \mathsf{contents})\) to \(\mathcal{A}\) and wait for response \((\mathsf{label})\).

    7. Else send query \((\mathrm{HonestSend}, \mathsf{sid}, \mathsf{sender})\) to \(\mathcal{A}\) and wait for response \((\mathsf{label})\).

    8. Ensure \(\mathsf{label}\not\in E\).

    9. Add \(\mathsf{label}\) to \(E\) and set \(\mathrm{src}(\mathsf{label}) \gets \mathsf{sender}\), \(\mathrm{dest}(\mathsf{label}) \gets \mathsf{recipient}\), \(\mathrm{cont}(\mathsf{label}) \gets \mathsf{contents}\), \(\mathrm{parent}(\mathsf{label}) \gets \mathsf{forwardOf}\), and \(\mathrm{plen}(\mathsf{label}) \gets \mathrm{plen}\).

    10. Output \((\mathsf{label})\) to \(\mathsf{sender}\).

  4. CheckMsgLabel. Upon receiving \((\mathrm{CheckMsgLabel}, \mathsf{sid};\) \(\mathsf{label}, \mathsf{sender}, \mathsf{contents})\) from \(\mathsf{recipient}\):

    1. Ensure \(\mathrm{initialized}= \top\) and \(\mathsf{recipient}\in V\).

    2. If \(\mathsf{sender}\) is corrupted, send \((\mathrm{CorruptedReceive}, \mathsf{sid},\) \(\mathsf{label}, \mathsf{sender}, \mathsf{recipient}, \mathsf{contents})\) to \(\mathcal{A}\) and wait for response \((\mathrm{OK})\).

    3. If \(\mathsf{label}\not\in E\) or \(\mathrm{src}(\mathsf{label}) \ne \mathsf{sender}\) or \(\mathrm{dest}(\mathsf{label}) \ne \mathsf{recipient}\) or \(\mathrm{cont}(\mathsf{label}) \ne \mathsf{contents}\), output \((\mathsf{LabelBad})\) to \(\mathsf{recipient}\).

    4. Else, add \(\mathsf{label}\) to \(\mathsf{received}\) and output \((\mathsf{LabelOK})\) to \(\mathsf{recipient}\).

  5. CreateReport. Upon receiving \((\mathrm{CreateReport}, \mathsf{sid}; \mathsf{msgLabel}, \mathsf{corruptInfo})\) from \(\mathsf{client}\):

    1. Ensure \(\mathrm{initialized}= \top\), \(\mathsf{msgLabel} \in \mathsf{received}\), and \(\mathrm{dest}(\mathsf{msgLabel}) = \mathsf{client}\).

    2. Set \(\mathsf{trunc} \gets k\).

    3. If \(\mathsf{client}\) is corrupted, parse \(\mathsf{corruptInfo}\) as \((\mathsf{report}, \mathsf{trunc})\) and ensure \(1 \le \mathsf{trunc} \le k\).

    4. Else, leak \((\mathrm{Reporting}, \mathsf{sid}, \mathsf{client})\) to \(\mathcal{A}\) and wait for response \((\mathsf{report})\).

    5. Ensure \(\mathsf{report}\) does not already appear in \(\mathsf{savedReports}\).

    6. Append \((\mathsf{report}, \mathsf{msgLabel}, \mathsf{trunc})\) to \(\mathsf{savedReports}\).

    7. Output \((\mathsf{report})\) to \(\mathsf{client}\).

  6. Audit. Upon receiving \((\mathrm{Audit}, \mathsf{sid}, \mathsf{reports};)\) from \(\mathsf{mod}_0\):

    1. Ensure \(\mathrm{initialized}= \top\) and \(\mathrm{audited}\) is not set.

    2. Set \(\mathrm{audited}\gets \top\).

    3. Let \(R \gets \{(\mathsf{msgLabel}, \mathsf{trunc}) \ :\ \mathsf{report}\in \mathsf{reports} \text{ and } (\mathsf{report}, \mathsf{msgLabel}, \mathsf{trunc}) \in \mathsf{savedReports}\}\).

    4. Set \(\mathsf{reportedClients}\) to be the set of all clients whose report tally from \(R\) is at least \(t\).

    5. For each \(\mathsf{mod}_i \in \mathsf{moderators}\), output \((\mathrm{AuditResult}, \mathsf{reportedClients})\) to \(\mathsf{mod}_i\).


Note that we do not say anything about what the moderators should do with the identities they learn during an audit. Depending on the context and community preferences, some reasonable choices could be to publicize these parties, to throttle their sending privileges on the messaging platform, or to simply exclude them from this community in future. We treat these decisions as out of scope for this chapter, choosing instead to focus on how to provide such capabilities securely and respecting the privacy of other users.

7.4.4 Tracking system

The ideal functionality \(\mathcal{F}_{\mathsf{TRACK}}\) is the primary focus of our constructions, and it is presented in 2. The main role of this functionality is to produce and verify message labels which are attached (by the protocol \(\Pi_{\mathsf{SYS}}\)) to actual messages sent over the platform, and to accumulate reports from message label recipients.

Our design of \(\mathcal{F}_{\mathsf{TRACK}}\) outputs message labels to the environment \(\mathcal{Z}\) rather than sending them directly to the recipient. So the \(\mathrm{CreateMsgLabel}\) protocol corresponds to sending or forwarding a message, and \(\mathrm{CheckMsgLabel}\) corresponds to receiving a message.

This design choice actually makes realizing \(\mathcal{F}_{\mathsf{TRACK}}\) more challenging, as the full message labels — even for honest parties — are exposed and subject to inspection and tampering by the adversary. The advantage is that it allows us to combine multiple labels (for multiple \(\mathcal{F}_{\mathsf{TRACK}}\) instances) and send them alongside the message, regardless of any leakage in the underlying messaging system.

That is, by outputting message labels to the environment, we maintain full flexibility in how a message label is actually transmitted from sender to recipient, and our privacy guarantees hold even if they are made public.

Reports are treated similarly: when a client wishes to complain about a message that they received, the \(\mathcal{F}_{\mathsf{TRACK}}\) protocol simply outputs a report string. No matter how \(\mathcal{Z}\) sends this report to the first moderator \(\mathsf{mod}_0\), if it makes it there intact, then it will be included in the audit at the end of the epoch.

Notice that the leakage to \(\mathcal{A}\) is minimal when only honest parties are involved: the adversary/simulator learns who is sending a message (which is inherent leakage in calling any SUC functionality), but nothing about its recipient, contents, or forwarding history. And it learns nothing when the message is received or reported, other than the fact that some client received or reported a message.

Corrupted clients have almost no power to deviate, except as allowed in the \(\mathsf{corruptInfo}\) argument to \(\mathrm{CreateMsgLabel}\) and \(\mathrm{CreateReport}\), which lets them truncate the forwarding history path length (but not remove the final hop), and to choose their own message label or report string (which is necessary for correct simulation).

7.4.5 Messaging platform

Our reporting system is built on top of a simple messaging platform functionality \(\mathcal{F}_{\mathsf{MSG}}\) as given in 3, which supports sending messages from one party to another, and receiving a single message via a “pull” request from the recipient. Note that the SUC modeling explicitly allows the adversary to see which party is performing each send or pull request, and to arbitrarily delay or drop such requests and responses. However, the adversary does not necessarily learn the recipient of each sent message, or the sender of each received message, or the contents of any message.


Functionality 3 (Messaging Platform \(\mathcal{F}_{\mathsf{MSG}}\)). This functionality is parameterized by messaging leakage function \(f_{\mathrm{leak}}\). It stores an initially-empty list \(\mathsf{history}\) and an initially-empty queue \(\mathsf{inbox}_{\mathsf{client}}\) for each party.

  1. Send. Upon receiving \((\mathrm{Send}, \mathsf{sid}; \mathsf{recipient}, \mathsf{payload})\) from \(\mathsf{sender}\):

    1. Append \((\mathrm{Send}, \mathsf{sender}, \mathsf{recipient}, \mathsf{payload})\) to \(\mathsf{history}\).

    2. Send query \((\mathrm{MsgLeakage}, \mathsf{sid}, f_{\mathrm{leak}}(\mathsf{history}))\) to \(\mathcal{A}\) and wait for response \((\mathrm{OK})\).

    3. Add \((\mathsf{sender}, \mathsf{payload})\) to the back of \(\mathsf{inbox}_{\mathsf{recipient}}\).

  2. Recv. Upon receiving \((\mathrm{Recv}, \mathsf{sid};)\) from \(\mathsf{recipient}\):

    1. Append \((\mathrm{Recv}, \mathsf{recipient})\) to \(\mathsf{history}\).

    2. Send query \((\mathrm{MsgLeakage}, \mathsf{sid}, f_{\mathrm{leak}}(\mathsf{history}))\) to \(\mathcal{A}\) and wait for response \((\mathrm{OK})\).

    3. If \(\mathsf{inbox}_{\mathsf{recipient}}\) is empty, output \((\mathsf{NoMessages})\) to \(\mathsf{recipient}\) and end this activation.

    4. Dequeue \((\mathsf{sender}, \mathsf{payload})\) from the front of \(\mathsf{inbox}_{\mathsf{recipient}}\).

    5. Output \((\mathsf{Message}, \mathsf{sender}, \mathsf{payload})\) to \(\mathsf{recipient}\).


In order to encompass a wide variety of messaging platforms which may in fact have more leakage than this, our functionality is parameterized by an arbitrary leakage function \(f_{\mathrm{leak}}\). For example, \(f_{\mathrm{leak}}\) may reveal only the sender of each message and its length as in (a secure implementation of) Signal’s sealed sender, or it may reveal the full sender/recipient metadata on each message, or it may reveal some properties of the contents (as in censored messaging platforms), etc.

This arbitrary leakage makes it strictly harder for us to design secure protocols around it; in our security proofs, the ideal-world simulator is essentially forced to ensure that the full transcript of interactions with \(\mathcal{F}_{\mathsf{MSG}}\) is indistinguishable from that in the real world with our actual protocols, without directly learning anything from \(f_{\mathrm{leak}}\). As a consequence, we can claim that our content moderation systems work securely with a much wider range of underlying messaging platforms.

Note that we do not attempt to instantiate the platform functionality \(\mathcal{F}_{\mathsf{MSG}}\) with an explicit protocol, but instead assume that some existing EEMS such as Signal or WhatsApp already satisfies this functionality for some arbitrary leakage function \(f_{\mathrm{leak}}\).

7.4.6 Additional SUC functionalities

We provide the key registration functionality \(\mathcal{F}_{\mathsf{KR}}\) in 4 and the secure two-party computation functionality in 5.


Functionality 4 (Key Registration \(\mathcal{F}_{\mathsf{KR}}\)).

This functionality is adapted from the global bulletin board in [250, Fig. 3]. It is a local functionality used by all parties. Note: \(\mathrm{lookup}\) reveals the caller’s identity but not the record retrieved.

  1. Register. Upon receiving \((\mathrm{register}, \mathsf{sid}, {\small\mathrm{PK}}_i;)\) from party \(P_i\):

    1. Store \((P_i, {\small\mathrm{PK}}_i)\) if there is no prior record for \(P_i\).

    2. Output \((\mathrm{registered}, \mathsf{sid};)\) to party \(P_i\).

  2. Lookup. Upon receiving \((\mathrm{lookup}, \mathsf{sid}; P_j)\) from party \(Q\):

    1. Find \((P_j, {\small\mathrm{PK}}_j)\) and let \(p \gets {\small\mathrm{PK}}_j\). If no record exists, let \(p \gets \bot\).

    2. Output \((\mathrm{response}, \mathsf{sid}; p)\) to party \(Q\).



Functionality 5 (Two-party computation \(\mathcal{F}_{\mathsf{2PC}}^{\mathit{f}}\)). This functionality has a session id \(\mathsf{sid}= (\mathsf{pid}_0, \mathsf{pid}_1, \mathsf{nonce})\) that includes the party ids of two parties, which we call \(\mathsf{mod}_0\) and \(\mathsf{mod}_1\). The functionality is parameterized by a PPT computable \(f\). Each party provides two inputs (one public, one secret) and \(f\) is computed only if the public inputs are equal. We rely on the adversarial routing of messages in SUC, which allows the adversary \(\mathcal{A}\) to decide when (and in which order) the parties receive output and implicitly gives \(\mathcal{A}\) the power to abort by never delivering an output to one or both parties.

  1. Input. Upon receiving \((\mathrm{input}, \mathsf{sid}, p_i; x_i)\) from party \(\mathsf{mod}_i\):

    1. If this is not the first invocation of \(\mathrm{input}\) by party \(\mathsf{mod}_i\), then end this activation.

    2. Store \((\mathrm{input}, i, p_i, x_i)\).

    3. If the other party \(\mathsf{mod}_{1-i}\) has not yet provided input, then end this activation.

    4. If \(p_0 = p_1\), then compute \((y_0, y_1) \gets f(p_0, x_0, x_1)\); otherwise set \(y_0 \gets \bot\) and \(y_1 \gets \bot\).

    5. For each \(j \in \{0, 1\}\), output \((\mathrm{output}, \mathsf{sid}; y_j)\) to party \(\mathsf{mod}_j\).


7.5 The BoSS Protocol

We now describe the main BoSS protocol to realize \(\mathcal{F}_{\mathsf{TRACK}}\) on top of a messaging platform \(\mathcal{F}_{\mathsf{MSG}}\). The BoSS protocol assumes two non-colluding moderators who work together to enable detection of unwanted information. The protocol proceeds in epochs, where reports are evaluated by the end of the current epoch. In this section, we describe the procedures for a single epoch.

At a high level: each epoch begins with the moderators creating a threshold signature scheme and a shared KEM (7.5.2) and each client registering with the moderators (7.5.3). Each received message contains metadata that encodes the identity of prior senders (7.5.5). Senders of original and forwarded messages append new metadata, albeit in different ways (7.5.6) after first checking that the metadata for messages they receive is valid (7.5.7). Clients can then complain about received messages as unwanted content (7.5.8) and, at the end of the epoch, the moderators can use these reports to securely identify clients who have received more than a threshold of reports (7.5.9).

7.5.1 Notation

1 lists the notation used in all functionalities and protocols in this work.

Notation used in the protocols.
Symbol Meaning
\(\mathsf{mod}_0,\mathsf{mod}_1\) The two moderators; \(\mathsf{mod}\) denotes the moderators collectively.
\(c,\mathsf{client},\mathsf{sender},\mathsf{recipient}\) Client, sender, and recipient identifiers.
\(\mathsf{contents}, H(\mathsf{contents}),\mathsf{chash}\) Message content, its hash, and the content-hash variable used during audit.
\(f_{\mathsf{limit}}\) Forward limit used to bound the tag chain (\(f_{\mathsf{limit}}= k\)).
\(t\) Audit threshold; a client key is returned when its count is at least \(t\).
\(\tau,0^{|\mathsf{pt\text{-}tag}| + (f_{\mathsf{limit}}- 2 - i)\tau}\) \(\mathsf{AEAD}\) ciphertext expansion and the all-zero dummy payload for \(\mathsf{tag}_i\).
\(\mathsf{ctr}_{\mathsf{recipient}},\mathsf{nonce}\) Client counter used for a recipient and the nonce \(H(\mathsf{sender},\mathsf{recipient},\mathsf{ctr}_{\mathsf{recipient}})\).
\(\bot\) No parent label, or a failure output, depending on context.
\((\mathsf{spk}_c,\mathsf{ssk}_c)\) Client signing public/secret key pair.
\((\mathsf{epk}_c,\mathsf{esk}_c)\) Client public-key encryption/decryption key pair used for message labels.
\(\mathsf{spk}_{\mathsf{mod}},\mathsf{ssk}_{\mathsf{mod}_0},\mathsf{ssk}_{\mathsf{mod}_1}\) Moderator threshold signing public key and the two secret-key shares.
\(\mathsf{kpk}_{\mathsf{mod}},\mathsf{ksk}_{\mathsf{mod}_0},\mathsf{ksk}_{\mathsf{mod}_1}\) Moderator threshold KEM public key and the two secret-key shares.
\(k_{\mathsf{AEAD}}\) Symmetric AEAD key used for tags and reports.
\(\sigma_{\mathsf{spk}_{c}}\) Moderator certificate on a client’s signing public key \(\mathsf{spk}_c\).
\(\sigma_{\mathsf{auth}_{c}}\) Moderator authentication signature on \(\mathsf{spk}_c || c\) binding \(\mathsf{spk}_c\) to client \(c\).
\(\sigma_{\mathsf{edge}}\) Sender’s signature on \(({c_{\mathsf{KEM}}},\mathsf{nonce},H(\mathsf{contents}),\mathsf{spk}_{\mathsf{recipient}})\), identifying an edge during audit.
\(\sigma_{\mathsf{ct}}\) Sender’s signature on the label ciphertext \(\mathsf{ct}\).
\(\mathsf{ct},{c_{\mathsf{KEM}}}\) An encrypted payload and a KEM ciphertext, respectively.
\(\mathsf{tag}_i\) The \(i\)-th encrypted tag (\(i \in \{0,\ldots,f_{\mathsf{limit}}-2\}\)).
\(\mathsf{pt\text{-}tag}\) Plaintext tag \(({c_{\mathsf{KEM}}},\mathsf{nonce},\sigma_{\mathsf{edge}},\mathsf{spk}_{\mathsf{sender}},\sigma_{\mathsf{spk}_{\mathsf{sender}}})\).
\(\mathsf{stamp}\) Stamp tuple \((\mathsf{ctr}_{\mathsf{recipient}},{c_{\mathsf{KEM}}},\sigma_{\mathsf{edge}},\sigma_{\mathsf{spk}_{\mathsf{sender}}})\).
\(\mathsf{label}\) Message label \((\mathsf{ct},\sigma_{\mathsf{ct}},\mathsf{spk}_{\mathsf{sender}},\sigma_{\mathsf{auth}_{\mathsf{sender}}})\).
\(\mathsf{forwardOf}\) Verified message tuple \((\mathsf{label},\mathsf{sender}',\mathsf{contents}')\) being forwarded; \(\bot\) for an original message.
\(\mathsf{report},\mathsf{reports}\) An encrypted report \((\mathsf{ct},{c_{\mathsf{KEM}}}')\) and the list of reports audited by the moderators.
\(L\) Audit tally list of \((\sigma_{\mathsf{edge}},\mathsf{spk}_{\mathsf{sender}})\) pairs (and later \(\mathsf{spk}_{\mathsf{sender}}\) keys).
\(H,\mathsf{Sign},{\mathsf Enc}\) Hash function, signature algorithm, and public-key encryption algorithm.
\(\mathsf{KEM},\mathsf{AEAD}\) Key encapsulation mechanism and authenticated encryption with associated data.
\(\mathcal{F}_{\mathsf{KR}}\) Key-registration functionality.
\(\mathcal{F}_{\mathsf{2PC}}^{\mathit{f}}\) Two-party computation functionality for \(f \in \{\mathsf{Sign}.\mathsf{KeyGen},\mathsf{KEM}.\mathsf{KeyGen},\mathsf{Sign},\mathrm{ProcessReports}\}\).

7.5.2 Moderator setup

At the beginning of every epoch, the moderators \(\mathsf{mod}_0\), \(\mathsf{mod}_1\) use secure 2-PC protocols to create a public signing key \(\mathsf{spk}_\mathsf{mod}\) together with a secret shared signing key \((\mathsf{ssk}_{\mathsf{mod}_0},\mathsf{ssk}_{\mathsf{mod}_1})\) and a public encapsulation key for a key-encapsulation mechanism (KEM) \(\mathsf{kpk}_\mathsf{mod}\) along with a secret shared decapsulation key \((\mathsf{ksk}_{\mathsf{mod}_0},\mathsf{ksk}_{\mathsf{mod}_1})\). The moderators then register the public keys with \(\mathcal{F}_{\mathsf{KR}}\). Details of this procedure are given in Protocol 1 in 7.5.4.

7.5.3 Client registration

In order to be able to issue complaints about messages sent in an epoch, each client \(c\) must register with the moderators. To do so, \(c\) generates a signature key pair \((\mathsf{spk}_c,\mathsf{ssk}_c)\) and asks the moderators to produce a signature \(\sigma_{\mathsf{spk}_{c}}\) on \(\mathsf{spk}_c\) used to authenticate his signature verification key and a second signature \(\sigma_{\mathsf{auth}_{c}}\) on the tuple \((c,\mathsf{spk}_c)\) used to tie his identity to the verification key. Client \(c\) additionally generates a key pair \((\mathsf{epk}_c,\mathsf{esk}_c)\) for a public key encryption scheme, and then registers the public keys together with the moderators’ signature with \(\mathcal{F}_{\mathsf{KR}}\). Details are provided in Protocol 2 in 7.5.4.

7.5.4 Initialization and registration protocols

In this section, we provide the full specification of two protocols. First, we show the protocol for moderator setup from 7.5.2 in 1. Second, we provide the protocol for client registration from 7.5.3 in 2.


Protocol 1 (Moderator initialization). Moderators initializing an epoch. Mods generate their keys that will be used for the duration of the epoch.

Moderator \(\mathsf{mod}_0\). Upon input \((\mathrm{init}, \mathsf{sid};)\) from \(\mathcal{Z}\) on behalf of \(\mathsf{mod}_0\):

  1. Check that \(\mathrm{initialized}\) is not set; if it is, end this activation. Set \(\mathrm{initialized}\gets \mathsf{pending}\).

  2. Send \((\mathsf{sid}||\mathsf{init}, \mathrm{init})\) to \(\mathsf{mod}_1\).

  3. Simultaneously send \((\mathrm{input}, (\mathsf{mod}_0,\mathsf{mod}_1,\mathsf{sid}||\mathsf{init}||0),\bot;\bot)\) to \(\mathcal{F}_{\mathsf{2PC}}^{\mathit{\mathsf{Sign}.\mathsf{KeyGen}}}\).

  4. Wait to receive output \((\mathrm{output},(\mathsf{mod}_0,\mathsf{mod}_1,\mathsf{sid}||\mathsf{init}||0);(\mathsf{spk}_\mathsf{mod},\mathsf{ssk}_{\mathsf{mod}_0}))\) from \(\mathcal{F}_{\mathsf{2PC}}^{\mathit{\mathsf{Sign}.\mathsf{KeyGen}}}\); if the output is \(\bot\), end this activation.

  5. Store \((\mathsf{spk}_\mathsf{mod},\mathsf{ssk}_{\mathsf{mod}_0})\) as the signature public key and signing key share for \(\mathsf{mod}_0\).

  6. Send \((\mathrm{input}, (\mathsf{mod}_0,\mathsf{mod}_1,\mathsf{sid}||\mathsf{init}||1),\bot;\bot)\) to \(\mathcal{F}_{\mathsf{2PC}}^{\mathit{\mathsf{KEM}.\mathsf{KeyGen}}}\).

  7. Wait to receive output \((\mathrm{output},(\mathsf{mod}_0,\mathsf{mod}_1,\mathsf{sid}||\mathsf{init}||1);(\mathsf{kpk}_\mathsf{mod},\mathsf{ksk}_{\mathsf{mod}_0}))\) from \(\mathcal{F}_{\mathsf{2PC}}^{\mathit{\mathsf{KEM}.\mathsf{KeyGen}}}\); if the output is \(\bot\), end this activation.

  8. Store \((\mathsf{kpk}_\mathsf{mod},\mathsf{ksk}_{\mathsf{mod}_0})\) as the KEM public key and secret key share for \(\mathsf{mod}_0\).

  9. Send \((\mathrm{register},\mathsf{sid}||\mathsf{kr},(\mathsf{spk}_\mathsf{mod},\mathsf{kpk}_\mathsf{mod});)\) to \(\mathcal{F}_{\mathsf{KR}}\).

  10. Wait to receive \((\mathrm{registered},\mathsf{sid}||\mathsf{kr};)\) from \(\mathcal{F}_{\mathsf{KR}}\).

  11. Wait to receive \((\mathsf{sid}||\mathsf{init},\mathrm{initialized})\) from \(\mathsf{mod}_1\), set \(\mathrm{initialized}\gets \mathsf{complete}\), and output \((\mathrm{initialized})\) to \(\mathcal{Z}\).

Moderator \(\mathsf{mod}_1\). Upon receiving \((\mathsf{sid}||\mathsf{init},\mathrm{init})\) from \(\mathsf{mod}_0\):

  1. Check that \(\mathrm{initialized}\) is not set; if it is, end this activation. Set \(\mathrm{initialized}\gets \mathsf{pending}\).

  2. Do steps [boss:step:init-start]–[boss:step:init-end] the same as \(\mathsf{mod}_0\) above (for \(\mathsf{mod}_1\)).

  3. Set \(\mathrm{initialized}\gets \mathsf{complete}\) and send \((\mathsf{sid}||\mathsf{init},\mathrm{initialized})\) to \(\mathsf{mod}_0\).



Protocol 2 (Client registration). Each client registers at the start of an epoch.

Client. Upon input \((\mathrm{register}, \mathsf{sid};)\) from \(\mathcal{Z}\) on behalf of client \(c\):

  1. For \(i \in \{0,1\}\), send \((\mathrm{lookup},\mathsf{sid}||\mathsf{kr};\mathsf{mod}_i)\) to \(\mathcal{F}_{\mathsf{KR}}\) and wait for response \((\mathrm{response},\mathsf{sid}||\mathsf{kr};(\mathsf{spk}_{\mathsf{mod}},\mathsf{kpk}_{\mathsf{mod}}))\).

  2. Ensure that the \(\mathsf{spk}_\mathsf{mod}\) and \(\mathsf{kpk}_\mathsf{mod}\) in the two responses are equal and not both \(\bot\).

  3. Generate \((\mathsf{spk}_c,\mathsf{ssk}_c) \gets \mathsf{Sign}.\mathsf{KeyGen}\).

  4. For \(i \in \{0,1\}\), send \((\mathsf{sid}||\mathsf{reg},\mathsf{spk}_c)\) to \(\mathsf{mod}_i\).

  5. For \(i \in \{0,1\}\), wait to receive \((\mathsf{sid}||\mathsf{reg\text{-}sigs},(\sigma_{\mathsf{spk}_{c}}, \sigma_{\mathsf{auth}_{c}}))\) from \(\mathsf{mod}_i\).

  6. Ensure that the \((\sigma_{\mathsf{spk}_{c}},\sigma_{\mathsf{auth}_{c}})\) returned in the two responses are equal.

  7. Verify \(\mathsf{Sign}.\mathsf{Verify}_{\mathsf{spk}_\mathsf{mod}}(\mathsf{spk}_c,\sigma_{\mathsf{spk}_{c}})\) and \(\mathsf{Sign}.\mathsf{Verify}_{\mathsf{spk}_\mathsf{mod}}(\mathsf{spk}_c||c, \sigma_{\mathsf{auth}_{c}})\).

  8. Generate \((\mathsf{epk}_c,\mathsf{esk}_c)\gets {\mathsf Enc}.\mathsf{KeyGen}\).

  9. Store \((\mathsf{spk}_\mathsf{mod},\mathsf{kpk}_\mathsf{mod})\) along with all generated keys and received signatures.

  10. Send \((\mathrm{register},\mathsf{sid}||\mathsf{kr},(\mathsf{epk}_c,\mathsf{spk}_c,\sigma_{\mathsf{auth}_{c}});)\) to \(\mathcal{F}_{\mathsf{KR}}\) and wait to receive response \((\mathrm{registered},\mathsf{sid}||\mathsf{kr};)\).

  11. Output \((\mathrm{registered})\) to \(\mathcal{Z}\).

Moderators. Upon receiving \((\mathsf{sid}||\mathsf{reg},\mathsf{spk}_c)\) from \(c\), each moderator \(\mathsf{mod}_i\) does:

  1. Ensure that \(\mathrm{initialized}= \mathsf{complete}\), neither \(c\) nor \(\mathsf{spk}_c\) is already marked as pending, and no \((c,\mathsf{spk}')\) or \((c',\mathsf{spk}_c)\) tuple is already stored; then mark \(c\) and \(\mathsf{spk}_c\) as pending.

  2. Send \((\mathrm{input},(\mathsf{mod}_0,\mathsf{mod}_1,\mathsf{sid}||\mathsf{2pc}||\mathsf{sig\text{-}spk}||c),\) \((\mathsf{spk}_\mathsf{mod},\mathsf{spk}_c);\mathsf{ssk}_{\mathsf{mod}_i})\) to \(\mathcal{F}_{\mathsf{2PC}}^{\mathit{\mathsf{Sign}}}\) (which verifies that \(\mathsf{ssk}_{\mathsf{mod}_0},\mathsf{ssk}_{\mathsf{mod}_1}\) are valid key shares for \(\mathsf{spk}_\mathsf{mod}\) and outputs \(\bot\) if not).

  3. Send \((\mathrm{input},(\mathsf{mod}_0,\mathsf{mod}_1,\mathsf{sid}||\mathsf{2pc}||\mathsf{sig\text{-}auth}||c),\) \((\mathsf{spk}_\mathsf{mod},\mathsf{spk}_c||c);\mathsf{ssk}_{\mathsf{mod}_i})\) to \(\mathcal{F}_{\mathsf{2PC}}^{\mathit{\mathsf{Sign}}}\).

  4. Wait to receive outputs \((\mathrm{output},(\mathsf{mod}_0,\mathsf{mod}_1,\mathsf{sid}||\mathsf{2pc}||\mathsf{sig\text{-}spk}||c);\sigma_{\mathsf{spk}_{c}})\) and \((\mathrm{output},(\mathsf{mod}_0,\mathsf{mod}_1,\mathsf{sid}||\mathsf{2pc}||\mathsf{sig\text{-}auth}||c);\sigma_{\mathsf{auth}_{c}})\) from \(\mathcal{F}_{\mathsf{2PC}}^{\mathit{\mathsf{Sign}}}\). If either output is \(\bot\), end this activation; otherwise store \((c,\mathsf{spk}_c)\).

  5. Send \((\mathsf{sid}||\mathsf{reg\text{-}sigs},(\sigma_{\mathsf{spk}_{c}}, \sigma_{\mathsf{auth}_{c}}))\) to \(c\).


7.5.5 Message structure

Before describing how clients exchange messages, complain about unwanted content, and how the moderators process these complaints, we first describe the structure of the messages that are sent through the messaging system.

In BoSS, a client who originates or forwards a message must create a message label containing an (encrypted) history of the message. Specifically, such a label consists of:

Recursive structure of one real tag in BoSS (three encryption layers shown).

7.5.5.1 Tag plaintext.

The key cryptographic element of message labels (and reports, as we will see later) is a tag. A single tag contains the information used to recover a single forwarder’s identity within a chain of forwards, as well as cryptographic protections to protect against leakage or tampering, and to ensure this tag cannot be reused or spliced into a different chain.

The full tag structure is shown in 11. Tags come in chains, corresponding to each potential identity in the list of forwarders for a given message; this figure shows just a single tag at index \(a\). You can see that it consists of a 5-tuple of plaintext values, wrapped in multiple layers of AEAD encryption.

We will start by describing this single tag structure from the inside out, then explain how the tags relate to their neighboring tags in a chain, and give insights on the purpose of all the cryptographic components along the way.

Within the inner plaintext tag \(\mathsf{pt\text{-}tag}\) is a 5-tuple:

The lynchpin of this structure is \(\sigma_{\mathsf{edge}}\), the per-message signature created by the sender. It binds together the \({c_{\mathsf{KEM}}}\) and therefore the entire list of prior tags, with the contents of the message itself (preventing forwarders from altering the message contents), and the recipient’s public key (preventing reuse with a different recipient).

Looking ahead, the \(\sigma_{\mathsf{edge}}\) values will be used inside the audit protocol to uniquely identify a valid edge in the messaging graph and tally complaints for the sender.

7.5.5.2 Layered tag encryption.

As shown in 11, each tag is encrypted multiple times with layered AEAD encryption.

Specifically, each \({c_{\mathsf{KEM}}}\) in a single tag is used in a single layer of encryption for all earlier tags in the chain.

This accomplishes a few important goals:

Note that with standard AEAD encryption with a block cipher such as AES, each layer adds essentially one additional block for the authentication piece.

7.5.5.3 Tag chain.

A sequence of tags forms a chain that can only be modified by removing older tags.

Specifically, the signed \({c_{\mathsf{KEM}}}\) uniquely links any \(\sigma_{\mathsf{edge}}\) to a fixed sequence of prior tags, corresponding to the edge parents in the messaging graph.

And furthermore, the associated data \(\mathsf{spk}_{\mathsf{sender}}\) in each layered AEAD encryption links those tags ahead to the specific party that added that encryption layer upon forwarding.

7.5.5.4 Stamp.

The \(\mathsf{stamp}\) is a 4-tuple \((\mathsf{ctr}, {c_{\mathsf{KEM}}}, \sigma_{\mathsf{edge}}, \sigma_{\mathsf{spk}_{\mathsf{sender}}})\) that is sent in the clear to the recipient of a message. It serves two purposes.

First, the message recipient uses \(\mathsf{ctr}\) to recompute the nonce and validate the message is properly signed by the sender.

Second, the recipient can use this \(\mathsf{stamp}\) to compute the next \(\mathsf{pt\text{-}tag}\) for use when forwarding this message to others.

Notice that each tag must contain the full nonce, since when the moderators validate each encrypted tag in 2PC, they do not know the sender and recipient identities. But the recipient obviously does know those, so it only needs to ensure the \(\mathsf{ctr}\) is not reused for the given \(\mathsf{sender}\).

7.5.6 Creating a message label for origination or forwarding

When a client \(\mathsf{sender}\) originates or forwards a message \(\mathsf{contents}\) to \(\mathsf{recipient}\), it constructs a message label \(\mathsf{label}\) containing \(f_{\mathsf{limit}}-1\) encrypted tags and a plaintext \(\mathsf{stamp}\). For a new message, \(\mathsf{sender}\) generates a fresh key \(k_{\mathsf{AEAD}}\) and creates \(f_{\mathsf{limit}}-1\) dummy tags by encrypting all-zero payloads of the appropriate lengths. For a forwarded message, \(\mathsf{sender}\) decrypts the parent label, converts its \(\mathsf{stamp}\) into a plaintext tag \(\mathsf{pt\text{-}tag}\), drops the oldest tag \(\mathsf{tag}_0\), and wraps the remaining tags and \(\mathsf{pt\text{-}tag}\) in a new layer of \(\mathsf{AEAD}\) encryption under \(k_{\mathsf{AEAD}}\) with \(\mathsf{spk}_{\mathsf{sender}}\) as associated data.

Next, \(\mathsf{sender}\) looks up and verifies \(\mathsf{recipient}\)’s public keys in \(\mathcal{F}_{\mathsf{KR}}\), increments its per-recipient counter \(\mathsf{ctr}_{\mathsf{recipient}}\), and encapsulates \(k_{\mathsf{AEAD}}\) under \(\mathsf{kpk}_{\mathsf{mod}}\) to obtain \({c_{\mathsf{KEM}}}'\). It then signs \(({c_{\mathsf{KEM}}}',\mathsf{nonce},H(\mathsf{contents}),\mathsf{spk}_{\mathsf{recipient}})\) to form the new \(\mathsf{stamp}\), encrypts the tags and \(\mathsf{stamp}\) under \(\mathsf{epk}_{\mathsf{recipient}}\), and signs the resulting ciphertext to produce \(\mathsf{label}\). Details are given in Protocol 3.


Protocol 3 (CreateMsgLabel). This creates the necessary tags for originating or forwarding a message.

Client. Upon input \((\mathrm{CreateMsgLabel},\mathsf{sid};\mathsf{recipient},\mathsf{contents},\mathsf{forwardOf},\bot)\) from \(\mathcal{Z}\) on behalf of client \(\mathsf{sender}\):

  1. Ensure that \(\mathsf{sender}\) is registered.

  2. Generate \(k_{\mathsf{AEAD}}\gets\mathsf{AEAD}.\mathsf{KeyGen}\).

  3. If \(\mathsf{forwardOf}= \bot\) (Origination):

    1. Create dummy tags \(\mathsf{tag}_i\gets\mathsf{AEAD}.{\mathsf Enc}_{k_{\mathsf{AEAD}}}(0^{|\mathsf{pt\text{-}tag}| + (f_{\mathsf{limit}}- 2 - i)\tau}; \mathsf{spk}_{\mathsf{sender}})\) for \(i=0,\ldots,f_{\mathsf{limit}}-2\).

  4. Else (Forwarding):

    1. Look up \(\mathsf{forwardOf}= (\mathsf{label},\mathsf{sender}',\mathsf{contents}')\) from the set of verified edges and verify that \(\mathsf{contents}=\mathsf{contents}'\); if not found or \(\mathsf{contents}\ne \mathsf{contents}'\), end this activation.

    2. Parse \(\mathsf{label}=(\mathsf{ct},\sigma_{\mathsf{ct}},\mathsf{spk}_{\mathsf{sender}'},\sigma_{\mathsf{auth}_{\mathsf{sender}'}})\) and decrypt \((\mathsf{tag}_0,\ldots,\mathsf{tag}_{f_{\mathsf{limit}}-2},\mathsf{stamp})\gets{\mathsf Dec}_{\mathsf{esk}_{\mathsf{sender}}}(\mathsf{ct})\).

    3. Convert the \(\mathsf{stamp}\) to a \(\mathsf{tag}\) and add it to the list of tags:

      1. Parse \(\mathsf{stamp}=(\mathsf{ctr},{c_{\mathsf{KEM}}},\sigma_{\mathsf{edge}},\sigma_{\mathsf{spk}_{\mathsf{sender}'}})\) and recompute \(\mathsf{nonce}\gets H(\mathsf{sender}',\mathsf{sender},\mathsf{ctr})\).

      2. Construct \(\mathsf{pt\text{-}tag}\gets ({c_{\mathsf{KEM}}},\mathsf{nonce},\sigma_{\mathsf{edge}},\mathsf{spk}_{\mathsf{sender}'},\sigma_{\mathsf{spk}_{\mathsf{sender}'}})\).

      3. For \(i=1,\ldots,f_{\mathsf{limit}}-2\), set \(\mathsf{tag}_{i-1}\gets\mathsf{AEAD}.{\mathsf Enc}_{k_{\mathsf{AEAD}}}(\mathsf{tag}_i; \mathsf{spk}_{\mathsf{sender}})\).

      4. Encrypt \(\mathsf{tag}_{f_{\mathsf{limit}}-2}\gets\mathsf{AEAD}.{\mathsf Enc}_{k_{\mathsf{AEAD}}}(\mathsf{pt\text{-}tag}; \mathsf{spk}_{\mathsf{sender}})\).

  5. Send \((\mathrm{lookup},\mathsf{sid}||\mathsf{kr};\mathsf{recipient})\) to \(\mathcal{F}_{\mathsf{KR}}\) and wait to receive response \((\mathrm{response},\mathsf{sid}||\mathsf{kr};(\mathsf{epk}_\mathsf{recipient},\mathsf{spk}_\mathsf{recipient},\sigma_{\mathsf{auth}_{\mathsf{recipient}}}))\) from \(\mathcal{F}_{\mathsf{KR}}\). Ensure that the response is not \(\bot\) and verify \(\mathsf{Sign}.\mathsf{Verify}_{\mathsf{spk}_\mathsf{mod}}(\mathsf{spk}_\mathsf{recipient}||\mathsf{recipient},\sigma_{\mathsf{auth}_{\mathsf{recipient}}})\).

  6. Set \(\mathsf{ctr}_{\mathsf{recipient}}\gets 0\) if not set, else \(\mathsf{ctr}_{\mathsf{recipient}}\gets \mathsf{ctr}_{\mathsf{recipient}}+1\), and create the \(\mathsf{stamp}\):

    1. Encapsulate \({c_{\mathsf{KEM}}}'\gets \mathsf{KEM}.\mathsf{Encaps}_{\mathsf{kpk}_{\mathsf{mod}}}(k_{\mathsf{AEAD}})\).

    2. Compute \(\mathsf{nonce}\gets H(\mathsf{sender},\mathsf{recipient},\mathsf{ctr}_{\mathsf{recipient}})\).

    3. Sign \(\sigma_{\mathsf{edge}}\gets \mathsf{Sign}_{\mathsf{ssk}_{\mathsf{sender}}}({c_{\mathsf{KEM}}}',\mathsf{nonce},H(\mathsf{contents}),\mathsf{spk}_{\mathsf{recipient}})\).

    4. Set \(\mathsf{stamp}\gets (\mathsf{ctr}_{\mathsf{recipient}},{c_{\mathsf{KEM}}}',\sigma_{\mathsf{edge}},\sigma_{\mathsf{spk}_{\mathsf{sender}}})\).

  7. Encrypt \(\mathsf{ct}\gets{\mathsf Enc}_{\mathsf{epk}_{\mathsf{recipient}}}(\mathsf{tag}_0,\ldots,\mathsf{tag}_{f_{\mathsf{limit}}-2},\mathsf{stamp})\) and sign the ciphertext \(\sigma_{\mathsf{ct}}\gets \mathsf{Sign}_{\mathsf{ssk}_{\mathsf{sender}}}(\mathsf{ct})\).

  8. Output \(\mathsf{label}=(\mathsf{ct},\sigma_{\mathsf{ct}},\mathsf{spk}_\mathsf{sender},\sigma_{\mathsf{auth}_{\mathsf{sender}}})\) to \(\mathcal{Z}\).


7.5.7 Checking a message label after receiving it

Upon receiving a message \(\mathsf{contents}\) from \(\mathsf{sender}\) with a label \(\mathsf{label}\), \(\mathsf{recipient}\) checks that the outer label and the latest hop’s \(\mathsf{stamp}\) are valid before accepting the message for forwarding or reporting. Specifically, \(\mathsf{recipient}\) verifies the moderators’ signature \(\sigma_{\mathsf{auth}_{\mathsf{sender}}}\) binding \(\mathsf{spk}_{\mathsf{sender}}\) to \(\mathsf{sender}\), verifies \(\mathsf{sender}\)’s signature \(\sigma_{\mathsf{ct}}\) on the ciphertext \(\mathsf{ct}\), and decrypts \(\mathsf{ct}\) using \(\mathsf{esk}_{\mathsf{recipient}}\) to recover the encrypted tags and \(\mathsf{stamp}\).

Using the counter \(\mathsf{ctr}_{\mathsf{recipient}}\) in \(\mathsf{stamp}\), \(\mathsf{recipient}\) recomputes \(\mathsf{nonce}= H(\mathsf{sender},\mathsf{recipient},\mathsf{ctr}_{\mathsf{recipient}})\) and verifies both the moderator certificate \(\sigma_{\mathsf{spk}_{\mathsf{sender}}}\) and the sender’s edge signature \(\sigma_{\mathsf{edge}}\) on \(({c_{\mathsf{KEM}}},\mathsf{nonce},H(\mathsf{contents}),\mathsf{spk}_{\mathsf{recipient}})\). Finally, \(\mathsf{recipient}\) checks that \(\mathsf{ctr}_{\mathsf{recipient}}\) has not been seen in any earlier message from \(\mathsf{sender}\), records the verified message tuple and counter, and outputs \((\mathsf{LabelOK})\). Details are given in Protocol 4.


Protocol 4 (CheckMsgLabel). This checks that the last hop in the label of a received message is correct. I.e., that the \(\mathsf{stamp}\) is generated validly.

Client. Upon input \((\mathrm{CheckMsgLabel}, \mathsf{sid}; \mathsf{label}, \mathsf{sender}, \mathsf{contents})\) from \(\mathcal{Z}\) on behalf of client \(\mathsf{recipient}\):

  1. If \((\mathsf{label},\mathsf{sender},\mathsf{contents})\) is already stored as verified, output \((\mathsf{LabelOK})\) to \(\mathcal{Z}\) and end this activation.

  2. Look up the moderators’ signing key \(\mathsf{spk}_{\mathsf{mod}}\).

  3. Parse \(\mathsf{label}=(\mathsf{ct},\sigma_{\mathsf{ct}},\mathsf{spk}_\mathsf{sender},\sigma_{\mathsf{auth}_{\mathsf{sender}}})\).

  4. Verify \(\mathsf{Sign}.\mathsf{Verify}_{\mathsf{spk}_{\mathsf{mod}}}(\mathsf{spk}_{\mathsf{sender}}||\mathsf{sender},\sigma_{\mathsf{auth}_{\mathsf{sender}}})\).

  5. Verify \(\mathsf{Sign}.\mathsf{Verify}_{\mathsf{spk}_{\mathsf{sender}}}(\mathsf{ct},\sigma_{\mathsf{ct}})\).

  6. Decrypt \((\mathsf{tag}_0,\ldots,\mathsf{tag}_{f_{\mathsf{limit}}-2},\mathsf{stamp})\gets{\mathsf Dec}_{\mathsf{esk}_{\mathsf{recipient}}}(\mathsf{ct})\).

  7. Parse \(\mathsf{stamp}=(\mathsf{ctr}_{\mathsf{recipient}},{c_{\mathsf{KEM}}},\sigma_{\mathsf{edge}},\sigma_{\mathsf{spk}_{\mathsf{sender}}})\) and recompute \(\mathsf{nonce}\gets H(\mathsf{sender},\mathsf{recipient},\mathsf{ctr}_{\mathsf{recipient}})\).

  8. Verify \(\mathsf{Sign}.\mathsf{Verify}_{\mathsf{spk}_{\mathsf{mod}}}(\mathsf{spk}_{\mathsf{sender}},\sigma_{\mathsf{spk}_{\mathsf{sender}}})\).

  9. Verify \(\mathsf{Sign}.\mathsf{Verify}_{\mathsf{spk}_{\mathsf{sender}}}(({c_{\mathsf{KEM}}},\mathsf{nonce},H(\mathsf{contents}),\mathsf{spk}_{\mathsf{recipient}}),\sigma_{\mathsf{edge}})\).

  10. Check that \(\mathsf{ctr}_{\mathsf{recipient}}\) is not in the set of already received counters for \(\mathsf{sender}\).

  11. If any of the above steps fail, output \((\mathsf{LabelBad})\) to \(\mathcal{Z}\).

  12. Store \((\mathsf{label},\mathsf{sender},\mathsf{contents})\) as verified and store \(\mathsf{ctr}_{\mathsf{recipient}}\) in the set of received counters from \(\mathsf{sender}\).

  13. Output \((\mathsf{LabelOK})\) to \(\mathcal{Z}\).


7.5.8 Creating a report

To report a previously verified message as unwanted, a client \(\mathsf{client}\) retrieves the stored tuple \((\mathsf{label},\mathsf{sender},\mathsf{contents})\) and decrypts \(\mathsf{label}\) to recover the encrypted tag list \((\mathsf{tag}_0,\ldots,\mathsf{tag}_{f_{\mathsf{limit}}-2})\) and the \(\mathsf{stamp}\). The client then recomputes \(\mathsf{nonce}= H(\mathsf{sender},\mathsf{client},\mathsf{ctr})\) and converts \(\mathsf{stamp}\) into a plaintext tag \(\mathsf{pt\text{-}tag}\) representing the final hop to \(\mathsf{client}\).

Next, \(\mathsf{client}\) bundles \((\mathsf{tag}_0,\ldots,\mathsf{tag}_{f_{\mathsf{limit}}-2},\mathsf{pt\text{-}tag})\) together with the content hash \(H(\mathsf{contents})\) and its own certified signing key \((\mathsf{spk}_{\mathsf{client}},\sigma_{\mathsf{spk}_{\mathsf{client}}})\). It encrypts this bundle under a fresh key \(k_{\mathsf{AEAD}}\), encapsulates \(k_{\mathsf{AEAD}}\) under the moderators’ public key \(\mathsf{kpk}_{\mathsf{mod}}\) to obtain \({c_{\mathsf{KEM}}}'\), and outputs the report \(\mathsf{report}= (\mathsf{ct},{c_{\mathsf{KEM}}}')\). Details are provided in Protocol 5.


Protocol 5 (CreateReport). Create a report to report a received message. This assumes that the received message has already been checked.

Client. Upon input \((\mathrm{CreateReport}, \mathsf{sid}; \mathsf{label}, \bot)\) from \(\mathcal{Z}\) on behalf of client \(\mathsf{client}\):

  1. Look up the stored tuple \((\mathsf{label},\mathsf{sender},\mathsf{contents})\) by \(\mathsf{label}\).

  2. Parse \(\mathsf{label}=(\mathsf{ct},\sigma_{\mathsf{ct}},\mathsf{spk}_{\mathsf{sender}},\sigma_{\mathsf{auth}_{\mathsf{sender}}})\) and decrypt \((\mathsf{tag}_0,\ldots,\mathsf{tag}_{f_{\mathsf{limit}}-2},\mathsf{stamp}) \gets {\mathsf Dec}_{\mathsf{esk}_{\mathsf{client}}}(\mathsf{ct})\).

  3. Convert the \(\mathsf{stamp}\) to a \(\mathsf{tag}\) and add it to the list of tags:

    1. Parse \(\mathsf{stamp}=(\mathsf{ctr},{c_{\mathsf{KEM}}},\sigma_{\mathsf{edge}},\sigma_{\mathsf{spk}_{\mathsf{sender}}})\) and recompute \(\mathsf{nonce}\gets H(\mathsf{sender},\mathsf{client},\mathsf{ctr})\).

    2. Construct \(\mathsf{pt\text{-}tag}\gets ({c_{\mathsf{KEM}}},\mathsf{nonce},\sigma_{\mathsf{edge}},\mathsf{spk}_{\mathsf{sender}},\sigma_{\mathsf{spk}_{\mathsf{sender}}})\).

  4. Generate \(k_{\mathsf{AEAD}}\gets\mathsf{AEAD}.\mathsf{KeyGen}\).

  5. Encrypt all tags in a single ciphertext: \(\mathsf{ct}\gets\mathsf{AEAD}.{\mathsf Enc}_{k_{\mathsf{AEAD}}}(\mathsf{tag}_0,\ldots,\mathsf{tag}_{f_{\mathsf{limit}}-2},\allowbreak \mathsf{pt\text{-}tag},\allowbreak H(\mathsf{contents}),\allowbreak \mathsf{spk}_{\mathsf{client}},\sigma_{\mathsf{spk}_{\mathsf{client}}})\).

  6. Encapsulate \(k_{\mathsf{AEAD}}\) for the moderators: \({c_{\mathsf{KEM}}}'\gets\mathsf{KEM}.\mathsf{Encaps}_{\mathsf{kpk}_{\mathsf{mod}}}(k_{\mathsf{AEAD}})\).

  7. Output \(\mathsf{report}=(\mathsf{ct},{c_{\mathsf{KEM}}}')\) to \(\mathcal{Z}\).


7.5.9 Auditing the reports

At the end of the epoch, the moderators \(\mathsf{mod}_0\) and \(\mathsf{mod}_1\) audit the collected list of reports \(\mathsf{reports}\) using the two-party computation \(\mathcal{F}_{\mathsf{2PC}}^{\mathit{\mathrm{ProcessReports}}}\). Inside the 2PC, they combine their secret key shares to reconstruct \(\mathsf{ksk}_{\mathsf{mod}}\), decrypt each report, verify the reporter’s certificate \(\sigma_{\mathsf{spk}_{\mathsf{recipient}}}\), and iteratively peel the nested \(\mathsf{AEAD}\) layers from the newest hop back to the oldest. At each hop, \(\mathrm{ProcessReports}\) verifies \(\sigma_{\mathsf{edge}}\) and \(\sigma_{\mathsf{spk}_{\mathsf{sender}}}\), records \((\sigma_{\mathsf{edge}},\mathsf{spk}_{\mathsf{sender}})\) in a tally list \(L\), and decapsulates \({c_{\mathsf{KEM}}}\) to decrypt the preceding tags, stopping and padding \(L\) with zeros whenever a check or decryption fails (such as when reaching a dummy tag).

Once all reports have been unpacked, \(\mathrm{ProcessReports}\) obliviously sorts \(L\) by \(\sigma_{\mathsf{edge}}\) and replaces duplicates with zeros so that multiple downstream reports from the same forwarded message count at most once for that sender. It then sorts the remaining entries by \(\mathsf{spk}_{\mathsf{sender}}\), keeps a single copy of each key that appears at least \(t\) times (zeroing out all other entries), and outputs the shuffled list \(L\) so the moderators can look up the corresponding identities \(\mathsf{reportedClients}\). Details are given in Protocol 6.


Protocol 6 (Audit). Process all reports that the \(\mathsf{mod}\) have received this epoch to detect any clients who have received more than a threshold of complaints. The epoch ends after audit is called.

Moderator \(\mathsf{mod}_0\). Upon input \((\mathrm{Audit},\mathsf{sid},\mathsf{reports};)\) from \(\mathcal{Z}\) on behalf of \(\mathsf{mod}_0\):

  1. Check that \(\mathrm{initialized}= \mathsf{complete}\) and \(\mathrm{audited}\) is not set; if not, end this activation. Set \(\mathrm{audited}\gets \mathsf{pending}\).

  2. Send \((\mathsf{sid}||\mathsf{reports},\mathsf{reports})\) to \(\mathsf{mod}_1\).

  3. Send \((\mathrm{input},(\mathsf{mod}_0,\mathsf{mod}_1,\mathsf{sid}||\mathsf{2pc}),(\mathsf{reports},\mathsf{spk}_\mathsf{mod},\mathsf{kpk}_\mathsf{mod});\allowbreak\mathsf{ksk}_{\mathsf{mod}_0})\) to \(\mathcal{F}_{\mathsf{2PC}}^{\mathit{\mathrm{ProcessReports}}}\), where \(\mathrm{ProcessReports}\) is the function defined below.

  4. Wait to receive \((\mathrm{output},(\mathsf{mod}_0,\mathsf{mod}_1,\mathsf{sid}||\mathsf{2pc});L)\) from \(\mathcal{F}_{\mathsf{2PC}}^{\mathit{\mathrm{ProcessReports}}}\); if \(L = \bot\), end this activation.

  5. For each nonzero \(\mathsf{spk}_c \in L\), look up the corresponding client \(c\) from the \((c,\mathsf{spk}_c)\) tuples stored during client registration to form the list of clients \(\mathsf{reportedClients}\), set \(\mathrm{audited}\gets \mathsf{complete}\), and output \((\mathrm{AuditResult}, \mathsf{reportedClients})\) to \(\mathcal{Z}\).

Moderator \(\mathsf{mod}_1\). Upon receiving \((\mathsf{sid}||\mathsf{reports},\mathsf{reports})\) from \(\mathsf{mod}_0\):

  1. Check that \(\mathrm{initialized}= \mathsf{complete}\) and \(\mathrm{audited}\) is not set; if not, end this activation. Set \(\mathrm{audited}\gets \mathsf{pending}\).

  2. Do steps [boss:step:audit-start]–[boss:step:audit-end] the same as \(\mathsf{mod}_0\) above (for \(\mathsf{mod}_1\)).

Function \(\mathrm{ProcessReports}\). This is the function that is executed by \(\mathcal{F}_{\mathsf{2PC}}^{\mathit{\mathrm{ProcessReports}}}\) to identify the clients receiving many complaints. Upon shared public input \((\mathsf{reports},\mathsf{spk}_\mathsf{mod},\mathsf{kpk}_\mathsf{mod})\) and private inputs \(\mathsf{ksk}_{\mathsf{mod}_0}\) and \(\mathsf{ksk}_{\mathsf{mod}_1}\), where \((\mathsf{ksk}_{\mathsf{mod}_0},\mathsf{ksk}_{\mathsf{mod}_1})\) is a secret sharing of \(\mathsf{ksk}_\mathsf{mod}\):

  1. Verify that \((\mathsf{ksk}_{\mathsf{mod}_0},\mathsf{ksk}_{\mathsf{mod}_1})\) are valid secret key shares for \(\mathsf{kpk}_\mathsf{mod}\) (returning \(\bot\) if not), and parse \(\mathsf{reports}=(\mathsf{ct}_1,{c_{\mathsf{KEM}}}_1),\ldots,(\mathsf{ct}_N,{c_{\mathsf{KEM}}}_N)\) for \(N\) reports.

  2. Initialize the tally list \(L\gets\emptyset\).

  3. For each \(\mathsf{report}_i=(\mathsf{ct}_i,{c_{\mathsf{KEM}}}_i)\):

    1. Compute \(k_{\mathsf{AEAD}}\gets \mathsf{KEM}.\mathsf{Decaps}_{\mathsf{ksk}_{\mathsf{mod}}}({c_{\mathsf{KEM}}}_i)\), use it to decrypt the corresponding \(\mathsf{ct}_i\) as \((\mathsf{tag}_0,\ldots,\mathsf{tag}_{f_{\mathsf{limit}}-2},\mathsf{pt\text{-}tag},\mathsf{chash},\mathsf{spk}_{\mathsf{recipient}},\sigma_{\mathsf{spk}_{\mathsf{recipient}}})_i \allowbreak\gets \mathsf{AEAD}.{\mathsf Dec}_{k_{\mathsf{AEAD}}}(\mathsf{ct}_i)\), and verify \(\mathsf{Sign}.\mathsf{Verify}_{\mathsf{spk}_{\mathsf{mod}}}(\mathsf{spk}_{\mathsf{recipient}},\sigma_{\mathsf{spk}_{\mathsf{recipient}}})\).

    2. For \(j\) going from \(f_{\mathsf{limit}}-2\) down to \(-1\), repeat:

      1. Parse \(\mathsf{pt\text{-}tag}=({c_{\mathsf{KEM}}},\mathsf{nonce},\sigma_{\mathsf{edge}},\mathsf{spk}_{\mathsf{sender}},\sigma_{\mathsf{spk}_{\mathsf{sender}}})\).

      2. Verify \(\mathsf{Sign}.\mathsf{Verify}_{\mathsf{spk}_{\mathsf{sender}}}(({c_{\mathsf{KEM}}},\mathsf{nonce},\mathsf{chash},\mathsf{spk}_{\mathsf{recipient}}),\allowbreak\sigma_{\mathsf{edge}})\).

      3. Verify \(\mathsf{Sign}.\mathsf{Verify}_{\mathsf{spk}_{\mathsf{mod}}}(\mathsf{spk}_{\mathsf{sender}},\sigma_{\mathsf{spk}_{\mathsf{sender}}})\).

      4. Prepend \((\sigma_{\mathsf{edge}},\mathsf{spk}_{\mathsf{sender}})\) to \(L\).

      5. If \(j \ge 0\), decapsulate \(k_{\mathsf{AEAD}}\gets \mathsf{KEM}.\mathsf{Decaps}_{\mathsf{ksk}_{\mathsf{mod}}}({c_{\mathsf{KEM}}})\).

      6. If \(j \ge 0\), for \(r \in \{0,\ldots,j-1\}\), compute \(\mathsf{tag}_r \gets \mathsf{AEAD}.{\mathsf Dec}_{k_{\mathsf{AEAD}}}(\mathsf{tag}_r; \mathsf{spk}_{\mathsf{sender}})\), decrypt \(\mathsf{pt\text{-}tag}\gets \mathsf{AEAD}.{\mathsf Dec}_{k_{\mathsf{AEAD}}}(\mathsf{tag}_j; \mathsf{spk}_{\mathsf{sender}})\), and set \(\mathsf{spk}_{\mathsf{recipient}} \gets \mathsf{spk}_{\mathsf{sender}}\).

    3. Whenever a check or decryption fails, pad \(L\) with zeros and move on to the next \(\mathsf{report}_i\) in the loop on step [boss:step:report-loop].

  4. Sort \(L\) by \(\sigma_{\mathsf{edge}}\) and replace entries with duplicate \(\sigma_{\mathsf{edge}}\)’s with \((0,0)\).

  5. Drop the first element of each tuple in \(L\) (leaving only \(\mathsf{spk}_{\mathsf{sender}}\)’s and zeros), sort \(L\) again by \(\mathsf{spk}_{\mathsf{sender}}\), and then replace all entries with zeros except the first of any run of at least threshold \(t\) number of duplicate \(\mathsf{spk}_{\mathsf{sender}}\)’s.

  6. Shuffle \(L\) and return the resulting list.


7.6 Protocol for \(\mathcal{F}_{\mathsf{SYS}}\)

Recall that the ideal functionality \(\mathcal{F}_{\mathsf{SYS}}\) (1) is the high-level functionality that allows clients to send and receive messages with multiple tracking communities.

Writing a protocol \(\Pi_{\mathsf{SYS}}\) which SUC-realizes \(\mathcal{F}_{\mathsf{SYS}}\), utilizing multiple \(\mathcal{F}_{\mathsf{TRACK}}\) instances and a single \(\mathcal{F}_{\mathsf{MSG}}\), is fairly straightforward:

The full details of \(\Pi_{\mathsf{SYS}}\) are provided in 7.6.1.

A close inspection reveals that all of the ideal functionality relies only on values set by the same client in previous calls to the functionality. It therefore has a straightforward UC-realization in a protocol that simply follows the same instructions as the ideal functionality above.

7.6.1 \(\Pi_{\mathsf{SYS}}\) protocol

The full protocol \(\Pi_{\mathsf{SYS}}\) for the top-level \(\mathcal{F}_{\mathsf{SYS}}\) functionality is in 7.


Protocol 7 (Messaging and Moderation Manager \(\Pi_{\mathsf{SYS}}\)). The protocol \(\Pi_{\mathsf{SYS}}\) uses sub-functionality \(\mathcal{F}_{\mathsf{MSG}}\) with session id \(\mathsf{msid}\) and sub-functionality \(\mathcal{F}_{\mathsf{TRACK}}\) with various tracking session ids \(\mathsf{tsid}\). Each client maintains initially-empty lists \(\mathrm{registered}\) and \(\mathsf{received}\), and each moderator maintains an initially-empty list \(\mathsf{reports}_{\mathsf{tsid}}\) for each \(\mathsf{tsid}\).

Init. Upon input \((\mathrm{init}, \mathsf{sid}, \mathsf{tsid};)\) from \(\mathcal{Z}\) on behalf of \(\mathsf{mod}\):

  1. Send \((\mathrm{init}, \mathsf{tsid};)\) to \(\mathcal{F}_{\mathsf{TRACK}}\) and wait for response \((\mathrm{initialized})\).

  2. Output \((\mathsf{InitOK})\) to \(\mathcal{Z}\).

Register. Upon input \((\mathrm{register}, \mathsf{sid}, \mathsf{tsid};)\) from \(\mathcal{Z}\) on behalf of \(\mathsf{client}\):

  1. Send \((\mathrm{register}, \mathsf{tsid};)\) to \(\mathcal{F}_{\mathsf{TRACK}}\) and wait for response \((\mathrm{registered})\).

  2. Append \((\mathsf{client}, \mathsf{tsid})\) to \(\mathrm{registered}\).

  3. Output \((\mathsf{RegisterOK}, \mathsf{tsid})\) to \(\mathcal{Z}\).

Originate. Upon input \((\mathrm{Originate}, \mathsf{sid}; \mathsf{recipient}, \mathsf{contents}, \mathsf{tsids}, \bot)\) from \(\mathcal{Z}\) on behalf of \(\mathsf{sender}\):

  1. Ensure \((\mathsf{sender}, \mathsf{tsid}) \in \mathrm{registered}\) for all \(\mathsf{tsid}\in \mathsf{tsids}\).

  2. For each \(\mathsf{tsid}_i \in \mathsf{tsids}\), set \(\mathsf{prevTrackLabel}_i \gets \bot\).

  3. Set \(\mathsf{payload}\gets (\mathsf{contents})\).

  4. For each \(\mathsf{tsid}_i \in \mathsf{tsids}\), do:

    1. Send \((\mathrm{CreateMsgLabel}, \mathsf{tsid}_i; \mathsf{recipient}, \mathsf{contents},\) \(\mathsf{prevTrackLabel}_i, \bot)\) to \(\mathcal{F}_{\mathsf{TRACK}}\) and wait for response \((\mathsf{trackLabel}_i)\).

    2. Append \((\mathsf{tsid}_i, \mathsf{trackLabel}_i)\) to \(\mathsf{payload}\).

  5. Send \((\mathrm{Send}, \mathsf{msid}; \mathsf{recipient}, \mathsf{payload})\) to \(\mathcal{F}_{\mathsf{MSG}}\).

Recv. Upon input \((\mathrm{Recv}, \mathsf{sid};)\) from \(\mathcal{Z}\) on behalf of \(\mathsf{recipient}\):

  1. Send \((\mathrm{Recv}, \mathsf{msid};)\) to \(\mathcal{F}_{\mathsf{MSG}}\) and wait for response.

  2. If the response is \((\mathsf{NoMessages})\), output \((\mathsf{NoMessages})\) to \(\mathcal{Z}\) and end this activation.

  3. Parse the response as \((\mathsf{Message}, \mathsf{sender},\) \((\mathsf{contents}, (\mathsf{tsid}_1, \mathsf{trackLabel}_1), \ldots, (\mathsf{tsid}_n, \mathsf{trackLabel}_n)))\).

  4. Set \(\mathsf{tracks}\) and \(\mathsf{tsids}\) to empty lists.

  5. For \(i \in \{1, \ldots, n\}\), if \((\mathsf{recipient}, \mathsf{tsid}_i) \in \mathrm{registered}\), do:

    1. Send \((\mathrm{CheckMsgLabel}, \mathsf{tsid}_i; \mathsf{trackLabel}_i, \mathsf{sender}, \mathsf{contents})\) to \(\mathcal{F}_{\mathsf{TRACK}}\) and wait for response.

    2. If the response is \((\mathsf{LabelOK})\), append \((\mathsf{tsid}_i, \mathsf{trackLabel}_i)\) to \(\mathsf{tracks}\) and \(\mathsf{tsid}_i\) to \(\mathsf{tsids}\).

  6. Set \(\mathsf{label}\) to a fresh random nonce and append \((\mathsf{label}, \mathsf{contents}, \mathsf{tracks})\) to \(\mathsf{received}\).

  7. Output \((\mathsf{Message}, \mathsf{label}, \mathsf{sender}, \mathsf{contents}, \mathsf{tsids})\) to \(\mathcal{Z}\).

Forward. Upon input \((\mathrm{Forward}, \mathsf{sid}; \mathsf{recipient}, \mathsf{parent}, \mathsf{tsids}, \bot)\) from \(\mathcal{Z}\) on behalf of \(\mathsf{sender}\):

  1. Look up \((\mathsf{parent}, \mathsf{contents}, \mathsf{tracks})\) in \(\mathsf{received}\).

  2. For each \(\mathsf{tsid}_i \in \mathsf{tsids}\), look up the corresponding \((\mathsf{tsid}_i, \mathsf{prevTrackLabel}_i)\) in \(\mathsf{tracks}\).

  3. If \(\mathsf{parent}\) or any \(\mathsf{prevTrackLabel}_i\) is not found, end this activation.

  4. Do the same as the last 3 steps of \(\mathrm{Originate}\).

Report. Upon input \((\mathrm{Report}, \mathsf{sid}, \mathsf{tsid}; \mathsf{label}, \bot)\) from \(\mathcal{Z}\) on behalf of \(\mathsf{recipient}\):

  1. Look up \((\mathsf{label}, \mathsf{contents}, \mathsf{tracks})\) in \(\mathsf{received}\) and \((\mathsf{tsid}, \mathsf{trackLabel})\) in \(\mathsf{tracks}\); if not found, end this activation.

  2. Send \((\mathrm{CreateReport}, \mathsf{tsid}; \mathsf{trackLabel}, \bot)\) to \(\mathcal{F}_{\mathsf{TRACK}}\) and wait for response \((\mathsf{report})\).

  3. Extract \(\mathsf{moderators}\) from \(\mathsf{tsid}= (\mathsf{moderators}, \mathsf{nonce})\) and send \((\mathrm{ClientReport}, \mathsf{sid}, \mathsf{tsid}, \mathsf{report})\) to \(\mathsf{mod}_0\).

ClientReport. Upon receiving \((\mathrm{ClientReport}, \mathsf{sid}, \mathsf{tsid}, \mathsf{report})\) from \(\mathsf{recipient}\), moderator \(\mathsf{mod}_0\) does:

  1. Append \(\mathsf{report}\) to \(\mathsf{reports}_{\mathsf{tsid}}\).

Audit. Upon input \((\mathrm{Audit}, \mathsf{sid}, \mathsf{tsid};)\) from \(\mathcal{Z}\) on behalf of \(\mathsf{mod}\):

  1. Send \((\mathrm{Audit}, \mathsf{tsid}, \mathsf{reports}_{\mathsf{tsid}};)\) to \(\mathcal{F}_{\mathsf{TRACK}}\).

AuditResult. Upon receiving \((\mathrm{AuditResult}, \mathsf{reportedClients})\) from \(\mathcal{F}_{\mathsf{TRACK}}\), moderator \(\mathsf{mod}\) does:

  1. Output \((\mathrm{AuditResult}, \mathsf{reportedClients})\) to \(\mathcal{Z}\).


7.7 Security statement and proof summary

Besides the use of ideal sub-functionalities, the BoSS protocol (7.5) relies on a few non-interactive algorithms, each of which carries specific cryptographic assumptions, as shown in Table 2.

Cryptographic primitives and security requirements for the BoSS protocol.
Algorithm Security Requirement
\(H\) (Hash function) Collision resistance (CR) [251]
\(\mathsf{Sign}\) (Signature) Strong existential unforgeability under chosen-message attack (SUF-CMA) [252], [253]
\({\mathsf Enc}\) (Public-key enc.) Indistinguishability and key-privacy under chosen-ciphertext attack (IND-CCA [254], IK-CCA [255])
\(\mathsf{KEM}\) (Key encaps.) Indistinguishability under chosen-ciphertext attack (IND-CCA) [256]
\(\mathsf{AEAD}\) (Auth. enc.) Indistinguishability under chosen-plaintext attack and integrity of ciphertexts (IND-CPA, INT-CTXT) [257], [258]

Theorem 76. Under the cryptographic assumptions in 2, the BoSS protocol ([boss:prot:init,boss:prot:register,boss:prot:originate,boss:prot:check,boss:prot:report,boss:prot:audit]) securely realizes \(\mathcal{F}_{\mathsf{TRACK}}\) (2) in the \((\mathcal{F}_{\mathsf{KR}}, \mathcal{F}_{\mathsf{2PC}}^{\mathit{\cdot}})\)-hybrid SUC model against static corruptions in which at most one of the two moderators is corrupted.

7.7.0.1 Proof overview.

The proof depends on an ideal-world simulator \({\mathsf{Sim}}\) that interacts with \(\mathcal{F}_{\mathsf{TRACK}}\) as the ideal-world adversary and on behalf of corrupted parties, and interacts with the real adversary \(\mathcal{A}\) as a simulator for the sub-functionalities \(\mathcal{F}_{\mathsf{KR}}\) and \(\mathcal{F}_{\mathsf{2PC}}^{\mathit{\cdot}}\) and on behalf of honest parties running the real protocol. The full description of \({\mathsf{Sim}}\) is given in 8.5.1. Here we summarize a few main ideas from the simulator and proof:

Finally, combining \(\mathcal{F}_{\mathsf{TRACK}}\) with the underlying messaging platform \(\mathcal{F}_{\mathsf{MSG}}\) (3) via the manager protocol \(\Pi_{\mathsf{SYS}}\) (7) yields the full messaging and moderation functionality \(\mathcal{F}_{\mathsf{SYS}}\) (1). Because \(\Pi_{\mathsf{SYS}}\) simply forwards inputs and outputs between \(\mathcal{F}_{\mathsf{MSG}}\) and \(\mathcal{F}_{\mathsf{TRACK}}\) using client-local bookkeeping, its security proof is completely routine and we omit the details.

Theorem 77. The manager protocol \(\Pi_{\mathsf{SYS}}\) securely realizes \(\mathcal{F}_{\mathsf{SYS}}\) in the \((\mathcal{F}_{\mathsf{MSG}}, \mathcal{F}_{\mathsf{TRACK}})\)-hybrid SUC model against static corruptions.

7.8 Experiments

We evaluate the performance and feasibility of BoSS on both server and client side of the system. On the server side, we measure the cost of running the full malicious-secure 2-party BoSS on modern AWS servers over an epoch of up to \(2^{21}\) tags, under several inter-server network conditions: LAN, \(30\) ms (within the same region) and \(60\) ms roundtrip latency (across different regions). The latter two approximate RTTs observed in preliminary network measurements between Boston and Washington, DC, and between California and Washington, DC, respectively. An epoch of 1 million tags, which is \(10^5\) reports, takes \({\sim}9.1\) min end to end on a LAN, \({\sim}11.7\) min at \(30\) ms RTT and \({\sim}14.3\) min at \(60\) ms RTT. On the client side, we measure the cost of sending, receiving and reporting a Signal message with BoSS, relative to a plain-Signal baseline, over a modern 5G network and a 4G LTE network: receiving and verifying a message takes \(0.59\) ms, and sending or forwarding a message in the iPhone 12 setting adds about \(6\) ms over 5G (\(3.3\) ms of computation and \(2.8\) ms to transfer the \(4.6\) KB label), which is around \(13\%\) of sending a plain Signal message.

7.8.1 Implementation and parameters

We implemented both the BoSS client and server. Code, raw measurements, scripts that reproduce every experiment, and our supplementary material are available at [259].

In our implementation, the two moderators run a malicious secure two-party computation using MASCOT in MP-SPDZ. We measure its two components separately: tag validation, which decrypts each report and verifies its tags, and threshold tag aggregation, which runs once per epoch over the tags of all reports; end to end refers to the two together. The client is a Rust library on top of libsignal that implements originating, receiving, forwarding and reporting a message; it reproduces the moderators’ reference test vectors bit for bit, matching the servers’ data formats exactly.

Table 3 lists the protocol and the workload parameters. Figure 15 shows the bytes the client places on the wire. A report carries ten tags: the nine wrapped tags of a message and the stamp of its last sender. An epoch of \(10^5\) reports therefore yields \(N=10^6\) tags; we measure epochs of up to \(N=2^{21}\) tags.

Protocol and workload parameters.
Parameter Value
Recovery threshold \(t\) distinct tags
Chain length tags per report
Complaints per epoch \({\le}\,2.1\cdot10^5\) (measured)
Tags per epoch \(N\) \({\le}\,2^{21}\) (measured)
Statistical security \(\kappa\)
Message body (baseline)  KB
Tag group Ed25519 curve
Tag signatures \(2\times\) Poseidon-Schnorr
Algebraic hash Poseidon, \(t{=}4\), \(R_F{=}8\), \(R_P{=}56\)
Tag KEM Diffie–Hellman in the tag group
Tag AEAD Poseidon, \(t{=}12\), \(R_F{=}8\), \(R_P{=}57\)
Label (sender to recipient) X25519 \(+\) AES-256-GCM; Ed25519

7.8.2 Experimental setup

For the server experiments, a single AWS host simulates both servers over a loopback interface, with the inter-server latency added in software. Table 4 describes the machine specs, the network settings, and the cost. We measure only the online computation: the input-independent, trusted-dealer preprocessing is produced ahead of time and excluded. Tag validation and threshold tag aggregation are measured separately, the end-to-end time is their sum, and each configuration was measured once.

The client experiments run libsignal on a laptop (Apple M1) in two settings: 4 threads, one per performance core of the M1, and 2 threads with the clock frequency limited to \(3.0\) GHz as an estimate of an iPhone 12, whose A14 has two performance cores of the same design at \(3.0\) GHz rather than \(3.2\) GHz.

Computation times are Criterion medians over \(50\) to \(100\) samples. The time to send \(B\) bytes is modeled as \(T_{\mathrm{net}} = L + 8B/R_{\mathrm{up}} + 8B/R_{\mathrm{down}}\): one path latency \(L\) for the two legs of a store-and-forward delivery, plus the transfer at the uplink and downlink rates. The default profile is 5G: \(L=44\) ms, \(13.57\) Mbps up and \(309.41\) Mbps down, as Ookla reports for T-Mobile US in the second half of 2025 [260]. The 4G LTE profile is \(L=58\) ms, \(20\) Mbps up and \(50\) Mbps down [261]. We also measure deliveries through a relay that emulates these profiles (Section 7.8.5).

Server hardware and network. One AWS host simulates both servers, one socket each.
Machine AWS r7a.48xlarge, \(2\times96\) cores (AMD EPYC 9R14), up to 3.7 GHz
Per server one socket: 96 cores, 768 GiB
Peak memory at \(10^6\) tags, per server: \({\sim}620\) GiB (validation), \({\sim}160\) GiB (aggregation)
Framework MP-SPDZ 0.4.3 (MASCOT)
Latency loopback with tc netem; RTT \(0\) (LAN), \(30\) and \(60\) ms
Bandwidth not limited; peak \({\sim}13\) Gbit/s (a \(37.5\) Gbit/s cap changes nothing)
Cost $7.30 / hr / server (r7a.24xlarge, on demand)

7.8.3 Server results

Our main feasibility result is that an epoch of \(N=10^6\) tags is processed online in \(549\) s (\({\sim}9.1\) min) on a LAN, \(699\) s (\({\sim}11.7\) min) at \(30\) ms RTT and \(859\) s (\({\sim}14.3\) min) at \(60\) ms, for \(\$2.2\) to \(\$3.5\) of computation on two servers. Figure 12 plots the times at \(0\) and \(60\) ms and Figure 13 the communication; plots with all three round-trip latency times and the full table of results are in 7.9.

7.8.3.1 Time.

With a small number of tags, network latency dominates the run time. At \(10^6\) tags, tag validation takes only \(25\,\%\) longer between the LAN and \(60\) ms, whereas threshold tag aggregation, which needs more than twice as many rounds, almost doubles the run time from \(249\) to \(485\) s.

7.8.3.2 Communication and cost.

The amount of data transfer is independent of network latency. A server sends \(307\) GB for \(10^6\) tags, \(259\) GB (\(84\,\%\)) of them in tag validation, which sends \(259\) KB per tag at every size; threshold tag aggregation sends \(44\) to \(48\) KB per tag around one million tags. At the on-demand price of the two instances, the computation for \(10^6\) tags costs \(\$2.23\) on a LAN and \(\$3.49\) at \(60\) ms. Data transfer, where it is billed, costs more: about \(\$12\) at the AWS rate between two availability zones of one region.

7.8.3.3 Feasibility.

Our results suggest that the server-side online computation of BoSS is practical in both time and cost. It is feasible for a commercial messaging service to operate. Two commodity servers which are comparable to our experimental setup could process one million tags in under fifteen minutes of online computation even when they sit in different regions (across the country), at an estimated cost below \(\$4\). Time and communication grow almost linearly, and the largest epoch we measured, two million tags, completes in \(18\) to \(25\) minutes. The communication cost is substantial: servers transfer about \(3\) MB per report. In total the cost is about \(\$12\) per epoch for one million tags between two availability zones, this gives an estimation of server’s total online cost about \(\$16\) per epoch.

Online time versus the number of tags \(N\) at an RTT of \(0\) (LAN), and \(60\) ms (across the country). End to end is the sum of the two parts; the marked points off the powers of two are \(10^5\), \(10^6\) and \(2\cdot 10^6\) tags. The full plots, with a round-trip time of \(0\), \(30\) and \(60\) ms, are in 16.
Data sent by one server versus the number of tags \(N\); it is the same at every latency.

7.8.4 Optimization of server-side 2PC computation

We make several protocol optimizations to reduce the cost of server side computation.

7.8.4.1 Primitives in the field of the curve.

The hashes and authenticated encryption that the servers evaluate are built from the Poseidon permutation over \(\mathbb{F}_p\), the base field of the curve, so their inputs are already shared in the right field. In a micro-benchmark, decrypting a single AES-GCM layer of a single tag costs \(594\) KB and \(237\) rounds of communication. In contrast, the Poseidon-based scheme decrypts all ten layers of a tag with only \(150\) KB of communication. The Poseidon-based AEAD uses counter mode with a polynomial MAC, instead of a sponge duplex, allowing all blocks of a layer to be evaluated in parallel.

7.8.4.2 Cheap group operations.

We use group sharing for curve points with group based MAC in the same group, as \(\bigl([P],\,[\alpha P]\bigr)\) under the global MAC key \(\alpha\). So, lifting a shared scalar to the curve, adding shared points, and multiplying by a public scalar require no interaction. The only interactive curve operation, a secret scalar times a secret point, takes one round with a mixed Beaver triple \(\bigl(a,\,bG,\,abG\bigr)\).

7.8.4.3 Sorting by shuffle-then-reveal.

A data-oblivious sorting network needs \(O(N\log^2 N)\) secure comparisons, about \(4\times10^8\) at \(N=10^6\). We shuffle the records obliviously first and open the comparison outcomes of an ordinary quicksort; this costs \(O(N\log N)\approx2\times10^7\) comparisons in expectation.

Time of each client operation including sending, over 5G and 4G LTE.
Bytes on the wire of a bare Signal message, a message with its label, and a report.

7.8.5 Client results

Figure 14 shows the time of each client operation including sending and Figure 15 the bytes that each operation sends. The full table, with the computation, the total with the modeled sending time and the measured delivery between two clients for each operation, is in 7.9.

Receiving and verifying a message costs \(0.59\) ms on both MacBook M1 and in the iPhone 12 setting. Sending costs \(2.05\) ms on the MacBook M1 and \(3.35\) ms in the iPhone 12 setting, the same for a new message and a forward, because both wrap nine tags, real or dummy. Building a report costs \(1.15\) ms on MacBook M1 and \(1.80\) ms in the iPhone 12 setting.

Over 5G, sending a message with its label takes \(50.2\) ms on the MacBook M1 against \(45.4\) ms for a bare Signal message: \(+4.8\) ms (\(11\,\%\)), of which \(2.0\) ms is computation and \(2.8\) ms the transfer of the \(4.6\) KB label. In the iPhone 12 setting it takes \(51.5\) ms, \(+6.1\) ms or \(13\,\%\). The label’s own encryption and signatures take \(0.10\) ms to send, \(0.14\) ms to receive and cost \(208\) B data transfer.

7.8.5.1 Validating the network model.

To check whether the model captures the overhead of our implementation, we also measure delivery times over an emulated network: a sender thread and a receiver thread joined by a kernel TCP socket, with a relay between them that holds every message for the path latency plus its transfer time. A delivery runs from the start of the sender’s computation to the end of the recipient’s checks; we take the median of 40 per path. The model, which is the computation plus the modeled sending time, plus the recipient’s \(0.59\) ms for a send, agrees with the measured deliveries to within \(0.2\)–\(0.5\) ms over 5G and \(0.4\)–\(2.9\) ms over 4G LTE. The 4G LTE profile is measured in a separate session. The measured overhead of a forwarded message over the baseline is \(1.12\times\) (\(+5.5\) ms) on 5G and \(1.10\times\) (\(+6.1\) ms) on 4G LTE.

7.9 Additional experimental results

This section collects additional results that are described in 7.8. For the servers, 5 gives the online time, the data sent and the compute cost at every size and round-trip time, and 16 plots the times at all three round-trip times. For the client, 6 gives the cost of each operation and 7 the wire format.

Online time in seconds at an RTT of \(0\) (LAN, within the same datacenter), \(30\) ms (within the same region) and \(60\) ms (across the country), data sent by one server (the same at every latency), and compute cost of one epoch at \(60\) ms (end-to-end time \(\times\,\$7.30/\text{hr}\times 2\) servers).
Tag validation (s) Threshold tag aggregation (s) End to end (s) Sent/server Cost
2-4(lr)5-7(lr)8-10 \(N\) (tags) 0 30 60 0 30 60 0 30 60 (GB) ($)
\(2^{10}\) 0.9 28.0 44.6 0.8 38.5 72.6 1.8 66.4 117 0.27 0.48
\(2^{12}\) 1.7 27.8 44.6 1.3 48.5 91.2 3.0 76.3 136 1.1 0.55
\(2^{14}\) 5.5 28.0 45.4 3.4 53.9 99.6 8.9 81.9 145 5.0 0.59
\(2^{16}\) 19.3 39.6 57.9 14.9 88.2 155 34.2 128 213 19.5 0.86
\(2^{18}\) 77.1 95.7 114 58.0 140 221 135 236 335 78.5 1.36
\(2^{20}\) 309 346 386 230 339 451 540 686 837 317 3.40
\(2^{21}\) 602 673 747 481 616 764 1,083 1,289 1,511 641 6.13
\(10^5\) 31.4 50.7 69.4 29.0 107 180 60.4 157 249 30.9 1.01
\(10^6\) 300 336 374 249 363 485 549 699 859 307 3.49
Online time versus the number of tags \(N\) at an RTT of \(0\) (LAN), \(30\) and \(60\) ms. End to end is the sum of the two parts.
Client results. MacBook M1: 4 threads; iPhone 12: estimated with 2 threads. Comp.: computation, including Signal encryption (send rows) or decryption (receive row). Total \(=\) computation \(+\) modeled sending. Delivery is measured through the emulated link (median of 40) and, for the send rows, includes the recipient’s receive and verify. 4G is the 4G LTE profile.
Wire Comp. Total (ms) Delivery (ms)
5-6(l)7-8 Operation Device (B) (ms) 5G 4G 5G 4G
Signal baseline MacBook M1 2,154 0.07 45.4 59.3 45.6 59.7
iPhone 12 0.07 45.4 59.3 45.6 59.7
Send, originate MacBook M1 6,714 2.05 50.2 63.8 51.2 66.7
iPhone 12 3.35 51.5 65.1 52.6 68.6
Send, forward MacBook M1 6,714 2.05 50.2 63.8 51.1 65.8
iPhone 12 3.35 51.5 65.1 52.5 67.1
Receive, verify MacBook M1 — 0.59 0.59 0.59 — —
iPhone 12 0.59 0.59 0.59 — —
Report MacBook M1 4,448 1.15 47.9 61.6 48.1 62.4
iPhone 12 1.80 48.5 62.3 48.8 63.0
Client wire format; an element of \(\mathbb{F}_p\) is \(32\) B. The label travels next to the message body inside one Signal message.
Component Size Notes
Wrapped tags (\(\times 9\)) 032 B \(18, 17, \ldots, 10\) elements
Stamp  B elements; the newest tag
Counter  B element
Label encryption overhead  B X25519 key 32 \(+\) GCM tag 16
Label key  B sender’s label-signing key
Certificate  B Ed25519, by the moderators
Signature  B Ed25519, on the ciphertext
Label total 560 B added by BoSS
Message body 048 B next to the label
On the wire, body only 154 B Signal message, measured
On the wire, body \(+\) label 714 B Signal message, measured
Report 448 B elements

8 Omitted Proofs

8.1 Secure Search

8.1.1 Proof of Lemma 4

Lemma 78 (4). Consider a Bloom filter with false positive rate \(\frac{1}{m}\), where \(m\) is an arbitrary positive integer. Suppose at most \(m\) \(\mathsf BF.Check\) operations are performed in the BF. Then, for any \(\delta > 0\), we have: \[\Pr [ \mbox{\rm \# false positives} \ge 1+\delta] \le {\frac {e^\delta} {(1+\delta)^{(1+\delta)}}}.\]

Proof. Let \(\alpha_i\) be the \(i\)th item that is checked through \(\mathsf BF.Check\). That is, we consider a sequence of \[{\mathsf BF.Check}(\alpha_1), \ldots, {\mathsf BF.Check}(\alpha_{m}),\] where \(\alpha_i\) is an arbitrary item. Since we wish to upper bound the false positives (i.e., we don’t care about true positives), it suffices to consider the case that for every \(i\), \(\alpha_i \not \in {\mathsf BF}\) (i.e, \(\alpha_i\) has not been inserted in the BF) as this maximizes the number of possible false positives.

Let \(X_1, \ldots, X_m\) be independent Bernoulli random variables with \(\Pr[X_i = 1] = 1/m\). Since the BF false positive rate is assumed to be \(1/m\), we have for all \(i\), \[\Pr[{\mathsf BF.Check}(\alpha_i)=1] = \Pr[\mbox{query $i$ is a false positive}] \le 1/m.\] Thus, we can bound the number of false positives by \(\sum_{i=1}^m X_i\).

Now, let \(\mu := {\bf Exp}[\sum X_i] = m \cdot \frac 1 m = 1\). By applying the Chernoff bound with \(\mu = 1\), we have: \[\Pr\left[\sum_{i=1}^m X_i \ge 1 + \delta \right] \le {\frac {e^\delta} {(1+\delta)^{(1+\delta)}}} .\] ◻

8.1.2 Proof of Theorem 8

Theorem 79 (8). Given an FHE scheme, and a \((n, s, c, f_p)\)-CODE scheme over domain \(D\) in the random oracle model, the construction in Algorithm 8 yields a \((\ell, f_p)\)-secure search scheme for records in domain \(D\) in the random oracle model, where \(\ell = \frac{c(s)\cdot \ell_c}{s}\), \(\ell_c\) is the length of an FHE ciphertext with plaintext space \(D\), and \(s\) is the number of matching records.

Proof. We begin by proving that the adversary cannot distinguish between two different queries. The adversary chooses a database \(x\) and two queries \(q^0, q^1\), with the promise that \(s = \sum_{i=1}^n q^0(x_i) = \sum_{i=1}^n q^1(x_i)\).

The entire view of the adversary during the experiment can be reconstructed efficiently given (1) the encrypted database \(\unicode{x27E6}x \unicode{x27E7}\), (2) the encrypted query \(\unicode{x27E6}q \unicode{x27E7}\), (3) the decrypted value of \(s\).

We note that the CODE scheme may return either more than \(s\) values to the client (in case of a false positive) or less than \(s\) values (in case decoding fails), but both of these occur with probability at most \(\mathsf{negl}(\lambda)\) and thus we can ignore them in the following.

Since the value of \(s\) is the same for \(q_0\) and \(q_1\), the only thing that changes in the view of the adversary when switching from \(b = 0\) to \(b=1\) is the encrypted query \(\tilde{q_b}\). Therefore, the adversary guesses \(b\) with negligible advantage by the IND-CPA security of the FHE scheme.

The proof that the adversary cannot distinguish between the same query applied to two different databases follows nearly identically. ◻

8.2 Secure Sampling

8.2.1 Proof of Theorem 11

We describe the simulator \({\mathsf{Sim}}\) in the \(\{\mathcal{F}_{\mathsf{osample(L_1)}}, \mathcal{F}_{2PC} \}\)-hybrid model for the case that Party 1 is corrupted. The simulator and proof of security are analogous in the case that Party 2 is corrupted.

\({\mathsf{Sim}}\) receives as input \(\boldsymbol{w}_1\), the output \(i^*\), and \(||\boldsymbol{w}_1 + \boldsymbol{w}_2||_2\). \({\mathsf{Sim}}\) samples \(r^*\) from a geometric distribution with success probability \(p = ||\boldsymbol{w}_1 + \boldsymbol{w}_2||_2^2\).

\({\mathsf{Sim}}\) invokes Party 1 on input \(\boldsymbol{w}_1\). For \(i \in [r^*-1]\), Party 1 sends its input to the first three invocations of \(\mathcal{F}_{\mathsf{osample(L_1)}}\) and \({\mathsf{Sim}}\) returns to it three random values in \(\mathbb{Z}_n\). Party 1 sends its input to the second three invocations of \(\mathcal{F}_{\mathsf{osample(L_1)}}\) and \({\mathsf{Sim}}\) returns to it three random values in \(\mathbb{Z}_n\). Party 1 sends its input to the \(\mathcal{F}_{2PC}\) functionality and \({\mathsf{Sim}}\) returns to it \(\bot\). For \(i = r^*\), Party 1 sends its input to the first three invocation of \(\mathcal{F}_{\mathsf{osample(L_1)}}\) and \({\mathsf{Sim}}\) returns to it three random values in \(\mathbb{Z}_n\). Party 1 sends its input to the second three invocations of \(\mathcal{F}_{\mathsf{osample(L_1)}}\) and \({\mathsf{Sim}}\) returns to it three random values in \(\mathbb{Z}_n\). Party 1 sends its input to the \(\mathcal{F}_{2PC}\) functionality and \({\mathsf{Sim}}\) returns to it \(i^*\).

It is clear that the view of Party 1 is identical in the ideal and real world, assuming that \({\mathsf{Sim}}\) samples the first succeeding round, \(r^*\), from the correct distribution. In the following, we argue that this is indeed the case.

As was shown in the correctness analysis, if the protocol has not already halted before round \(r\), then the probability of halting (and outputting some valid index) in round \(r\) is: \[||\boldsymbol{w}_1||^2 + 2 \langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle + ||\boldsymbol{w}_2||^2 = ||\boldsymbol{w}_1 | \boldsymbol{w}_2||_2^2.\] Since \(r^*\) is defined as the round in which the protocol halts, the distribution on \(r^*\) is exactly the distribution on the number of Bernoulli trials (with probability \(p = ||\boldsymbol{w}_1 | \boldsymbol{w}_2||_2^2\)) needed to get one success. Sampling the number of rounds is therefore equivalent to sampling the random variable corresponding to the number of rounds from a geometric distribution with success probability \(p = ||\boldsymbol{w}_1 | \boldsymbol{w}_2||_2^2\), which is exactly what \({\mathsf{Sim}}\) does.

8.2.2 Proof of Theorem 12

We first give the simulation of the sender. The simulator proceeds as follows:

Due to the semantic security of the underlying FHE scheme, the simulation is indistinguishable. Next, we give the simulation of the receiver.

The simulation is perfect.

8.2.3 Proof of Theorem 21

We describe the simulator \({\mathsf{Sim}}\) in the \(\{\mathcal{F}_{L_1}^{ss}, \mathcal{F}_{2PC}\}\)-hybrid model for the case that Party 1 is corrupted. The simulator and proof of security are analogous in the case that Party 2 is corrupted.

\({\mathsf{Sim}}\) receives as input \(\boldsymbol{w}_1\) and the output \(i^*\). \({\mathsf{Sim}}\) invokes Party 1 on input \(\boldsymbol{w}_1\). For \(j \in [B]\), the simulator works as follows:

The only differences in the view of Party 1 in the ideal and hybrid worlds, are that (1) In the hybrid world it gets a secret share of \(i_j\), whereas in the ideal world it gets a uniformly random value; (2) In the hybrid world it gets an encryption of \(w_{2,i_j}\) from Party 2, whereas in the ideal world it gets an encryption of 0; (3) In the hybrid world it gets encryptions of \(i_j\) or \(0\) from the ideal functionality \(\mathcal{F}_{2PC}\), whereas in the ideal world it always gets encryptions of \(0\).

Receiving uniformly random values instead of correct secret shares does not affect the view of Party 1, since the additive secret sharing used has perfect secrecy. Further, switching from encryptions of \(w_{2,i_j}\) and \(i_j\) to encryptions of \(0\) is indistinguishable due to the semantic security of the threshold FHE scheme. Thus, the view of Party 1 is computationally indistinguishable in the hybrid world and the ideal world.

This concludes the proof of security of the \(L_2\) sampling protocol.

8.2.4 Proof of Lemma 26

We want to show that \[\begin{aligned} \Pr_{D_{L_p}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i] &= \frac{(w_{1,i} + w_{2,i})^p}{||\boldsymbol{w}_1 + \boldsymbol{w}_2||_p^p}\\ &= \frac{(w_{1,i} + w_{2,i})^p}{c \cdot (||\boldsymbol{w}_1||_p^p + ||\boldsymbol{w}_2||_p^p)}\\ &\leq \frac{2^{p-1} (w^p_{1,i} + w^p_{2,i})}{c \cdot (||\boldsymbol{w}_1||_p^p + ||\boldsymbol{w}_2||_p^p)}\\ &= 2^{p-1}/c \cdot \Pr_{D_{\mathsf{ignore}, p}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i]. \end{aligned}\] The inequality holds due to Jensen’s inequality with convex function \(f(x) = x^p\): \[\begin{aligned} 1/2^p \cdot(w_{1,i} + w_{2,i})^p & = f(1/2 \cdot w_{i,1} + 1/2 \cdot w_{i,2}) \\ & \le 1/2 \cdot f(w_{i,1}) + 1/2 \cdot f(w_{2,i}) \\ & = 1/2 (w_{i,1}^p + w_{i,2}^p). \end{aligned}\] This completes the proof of Lemma 26.

8.2.5 Proof of Lemma 27

Note that \(\Pi_{L_p}\) simply performs rejection sampling in a distributed setting where sampling from \(D_{\mathsf{ignore}, p}(\boldsymbol{w}_1, \boldsymbol{w}_2)\) and computing the probabilities is done in a distributed manner. It is therefore well-known that as long as for all \(i \in [n]\), \[\label{eq:rejection_2} \Pr_{D_{L_p}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i] \leq 2^p/c \cdot \Pr_{D_{\mathsf{ignore}, p}(\boldsymbol{w}_1, \boldsymbol{w}_2)}[i],\] then \(\Pi_{L_2}\) samples from the exact correct distribution, and the number of samples required from \(D_{\mathsf{ignore}, p}(\boldsymbol{w}_1, \boldsymbol{w}_2)\) in protocol \(\Pi_{L_2}\) follows a geometric distribution with probability \(c/2^p\). Thus, if condition ([eq:rejection_2]) is met, the protocol samples exactly correctly and completes in an expected \(2^p/c \leq 2^p \in \tilde{O}(1)\) number of rounds (since \(c \geq 1\) and \(p \in O(1)\)). Further, it can be immediately noted that condition ([eq:rejection_2]) is met due to Lemma 26. Finally, each round has \(\tilde{O}(1)\) communication, since \(\Pi_{\mathsf{ignore}}\) has communication \(\tilde{O}(1)\) (by Lemma 23) and since, in addition to that, only a constant number of length \(\tilde{O}(1)\) values are exchanged in each round. Combining the above, we have that \(\Pi_{L_p}\) has expected communication \(\tilde{O}(1)\) and worst case (with all but negligible probability) communication \(\tilde{O}(1)\).

8.2.6 Proof of Lemma 34

We will show that the joint distribution over the \(i\)-th entries of \(\tilde{\boldsymbol{w}_1} := \boldsymbol{M} \boldsymbol{w}_1 = (\tilde w_{1,1}, \ldots, \tilde w_{1,k})\), \(\tilde{\boldsymbol{w}_2} = \boldsymbol{M} \boldsymbol{w}_2 = (\tilde w_{2,1}, \ldots, \tilde w_{2,k})\) can be sampled perfectly, given only \(\langle \boldsymbol{w}_1, \boldsymbol{w}_1 \rangle\), \(\langle \boldsymbol{w}_2, \boldsymbol{w}_2 \rangle\), and \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\).

Due to independence of each of the coordinates of \(\tilde{\boldsymbol{w}_1}, \tilde{\boldsymbol{w}_2}\), this immediately implies that the entire \(\mathsf{approxIP}(\boldsymbol{w}_1, \boldsymbol{w}_2)\) can be simulated perfectly given only \(\langle \boldsymbol{w}_1, \boldsymbol{w}_1 \rangle\), \(\langle \boldsymbol{w}_2, \boldsymbol{w}_2 \rangle\), and \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\).

We begin by noting that \[\begin{aligned} \tilde{w}_{1,i} &=& w_{1,1} M_{i,1} + w_{1,2} M_{i,2} + \cdots + w_{1,n} M_{i,n} \\ \tilde{w}_{2,i} &=& w_{2,1} M_{i,1} + w_{2,2} M_{i,2} + \cdot + w_{2,n} M_{i,n} \end{aligned}\]

In the following, we show how to jointly sample \((\tilde{w}_{1,i}, \tilde{w}_{2,i})\).

Step 1: We begin by sampling from the marginal distribution over the first element of the tuple \(\tilde{w}_{1,i}\). Note that \(\tilde{w}_{1,i}\) is distributed exactly as a Gaussian random variable with mean \(0\) and variance \(\langle \boldsymbol{w}_1, \boldsymbol{w}_1 \rangle\). Thus, we can perfectly sample from the marginal distribution over \(\tilde{w}_{1,i}\) given only \(\langle \boldsymbol{w}_1, \boldsymbol{w}_1 \rangle\). Let \(z\) be the resulting sample.

Step 2: We would now like to sample from the conditional distribution \(\tilde{w}_{2,i}\), conditioned on \(\tilde{w}_{1,i} = z\).

First, the conditional distribution of \(M_{i,1}, \ldots, M_{i,n}\) conditioned on \(w_{1,1} M_{i,1} + w_{1,2} M_{i,2} + \cdots + w_{1,n} M_{i,n} = z\) is defined by the multivariate Gaussian distribution with the following mean \(\boldsymbol{\mu}\) and covariance matrix \(\boldsymbol{\Sigma}\) (see Corollary 7 in [262]): \[\boldsymbol{\mu} = \frac{z}{\langle \boldsymbol{w}_1, \boldsymbol{w}_1 \rangle} \cdot \boldsymbol{w}_1 , ~~~~~ \boldsymbol{\Sigma} = \boldsymbol{I} - \frac{\boldsymbol{w}_1\boldsymbol{w}_1^T}{\langle \boldsymbol{w}_1, \boldsymbol{w}_1 \rangle}\] Now, \(\tilde{w}_{2,i}\) is a linear combination of the variables \(M_{i,1}, \ldots, M_{i,n}\) with coefficients \(w_{2,1}, \ldots, w_{2,n}\). Therefore, \(\tilde{w}_{2,i}\) is distributed as a univariate Gaussian with mean \(\mu'\) and variance \(\sigma'\) as follows (see [263] for example). \[\mu' = \langle \boldsymbol{w}_2, \boldsymbol{\mu} \rangle = \frac{z \langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle}{\langle \boldsymbol{w}_1, \boldsymbol{w}_1 \rangle}\] and \[\sigma' = \boldsymbol{w}_2^T\boldsymbol{\Sigma}\boldsymbol{w}_2 = \boldsymbol{w}_2^T\boldsymbol{w}_2 - \frac{\boldsymbol{w}_2^T\boldsymbol{w}_1\boldsymbol{w}_1^T\boldsymbol{w}_2}{\langle \boldsymbol{w}_1, \boldsymbol{w}_1 \rangle} = \langle \boldsymbol{w}_2, \boldsymbol{w}_2 \rangle - \frac{(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle)^2}{\langle \boldsymbol{w}_1, \boldsymbol{w}_1 \rangle}\] Note that the mean and variance depend only on \(\langle \boldsymbol{w}_1, \boldsymbol{w}_1 \rangle\), \(\langle \boldsymbol{w}_2, \boldsymbol{w}_2 \rangle\), and \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\), so we can sample from this distribution given only those values. Let \(y\) be the resulting sample.

Step 3: Output \((z, y)\)

8.3 Min-Hash

8.3.1 Proof of Lemma 54

Let \(c= p/(1-p)\). We need to find \(a < np\) and \(b > np\) satisfying the following condition. \[\begin{aligned} \frac{\Pr_{\mathsf{B}(n,p)}[a]}{\Pr_{\mathsf{B}(n,p)+s}[a]} = \frac{ \binom{n}{a} p^a (1-p)^{n-a}} { \binom{n}{a-s} p^{a-s} (1-p)^{n-a+s}} < \left ( \frac{ n-a} {a -s} \right)^s \cdot c^s \le e^\epsilon. \end{aligned}\] \[\begin{aligned} \frac{\Pr_{\mathsf{B}(n,p)}[b]}{\Pr_{\mathsf{B}(n,p)+s}[b]} = \frac{ \binom{n}{b} p^{b} (1-p)^{n-b}} { \binom{n}{b-s} p^{b-s} (1-p)^{n-b+s}} > \left ( \frac{ n-b} {b} \right)^s \cdot c^s \ge e^{-\epsilon}. \end{aligned}\]

8.3.1.1 Case 1: \(s \ge \epsilon\).

We set \(a = \frac{np + s(1-p)\cdot e^{\epsilon/s}}{e^{\epsilon/s}\cdot (1-p) + p}\) and \(b = \frac{e^{\epsilon/s} \cdot np}{(1-p) + e^{\epsilon/s} \cdot p}\). Note these values satisfy the above inequalities.

To show the second requirement of the tail bound, it suffices to show that \(\Pr_{\mathsf{B}(n,p)}[X \le a+s] = \mathsf{negl}(\kappa)\); the other case holds similarly.

Let \(\mu := np \in \Theta(\kappa)\) and let \(d = 1- (a+s)/\mu\). By applying the Chernoff bound, we have \[\Pr_{X \leftarrow\mathsf{B}(n,p)}[X \le a+s] = \Pr[ X \le (1-d) \mu ] \le \exp(-d^2\mu/2).\] We will show that we have \(d = \Omega(\frac{1}{\lg\lg \kappa})\), which implies that with \(\mu \in \Theta(\kappa)\), the above probability is negligible in \(\kappa\). Let \(t = s(1-p)\cdot e^{\epsilon/s}\) and \(u = e^{\epsilon/s}\cdot (1-p) + p\). Then, we have \(a = \frac{\mu + t}{u}\). Note that we have \(\epsilon/s \cdot (1-p) + 1 \le u \le e\). We have the following: \[\begin{aligned} d = \frac{\mu - a - s}{\mu} &= \left(1 - \frac{1}{u}\right) - \frac{t/u + s}{\mu} \\ &\ge \frac{\epsilon/s \cdot (1-p)}{e} - \frac{t/u + s}{\mu} = \Omega\left(\frac{1}{\lg\lg \kappa}\right) - \tilde O(1/\kappa). \end{aligned}\]

8.3.1.2 Case 2: \(s \le \epsilon\).

Let \(a = \frac{c}{c+e} \cdot (n+e\epsilon) < np\) and \(b = \frac{c}{c+e^{-1}} \cdot n > np\). Observe that \(\frac{n-a} {b-s} \cdot c = e\) and \(\frac{n-b}{b} \cdot c = e^{-1}\). Therefore, given \(s \le \epsilon\), the above inequalities hold. The tail bounds specified as the second condition of the lemma can be shown using the Chernoff bound since \(np-a \in \Theta(np) = \Theta(\kappa)\) and so does \(b-np\).

8.3.2 Proof of Lemma 58

Let \(t = \frac{1}{n_R}\), let \(\mathsf{low} = 1-\left(\frac{1}{2}+\theta\right)^t\) and \(\mathsf{high} = 1-\left(\frac{1}{2}-\theta\right)^t\). Then, we have: \[\begin{aligned} &\Pr_{h}[\mathsf{good}_\theta(h, A, I, n_B)] \\ & = \Pr_{h} \left[\left(\min h(I) \geq\mathsf{low}\right) \land \left(\min h(I) = \min h(A)\right)\right] \\ & ~~~~ - \Pr_{h} \left[\left(\min h(I) \geq \mathsf{high}\right) \land \left(\min h(I) = \min h(A)\right)\right]\\ & = \Pr_{h} \left[\min h(A) \geq\mathsf{low}\right] \cdot \Pr\left[ \min h(I) = \min h(A) \mid \min h(A) \geq\mathsf{low}\right] \\ & ~~~~ - \Pr_{h} \left[\min h(A) \geq \mathsf{high}\right] \cdot \Pr\left[ \min h(I) = \min h(A) \mid \min h(A) \geq \mathsf{high}\right] \\ & \ge \left(\frac{1}{2}+\theta\right)^{t \cdot n_A} \cdot \frac{n_I}{n_A} - \left(\frac{1}{2}-\theta\right)^{t \cdot n_A} \cdot \frac{n_I}{n_A} \end{aligned}\]

8.3.3 Proof of Lemma 59

We can lowerbound \(|K_\theta|\) with \(\mathsf{B}(k-s, p_\theta)\). Recall \(s \in O(\lg\lg\kappa)\). Let \(\mu = (k-s) p_\theta = \Omega(\kappa).\) Applying the Chernoff Bound, we have \(\Pr\left[ |K_\theta| \le (1 - 1/3) \mu \right] \le \exp(-\mu/18) \le \mathsf{negl}(\kappa). \quad\blacksquare\)

8.3.4 Proof of Lemma 60

8.3.4.1 Hockey stick divergence.

We first review hockey stick divergence [264], [265], [266]. The hockey-stick divergence between two probability measures \(P,Q\) over \(Z\) is defined as: \[\mathsf{D}^\mathsf{hs}_{\alpha}\left({X}, {Y}\right) = \sup_{S \subseteq Z}(X(S) - \alpha Y(S)) = \sum_{z \in Z} [(X(z) - \alpha Y(z)]_+,\] where \(\alpha \geq 1\) and \([x]_+ = \max\{x,0\}\). We observe that the following holds directly from the definition of the hockey stick divergence.

Corollary 80. For any probability measures \(X,Y\) over \(Z\) and for any \(\epsilon, \delta\), it holds \[X \approx_{\epsilon,\delta}Y \mbox{ if and only if } \mathsf{D}^\mathsf{hs}_{e^\epsilon}\left({X}, {Y}\right) \leq \delta\mbox{ and } \mathsf{D}^\mathsf{hs}_{e^\epsilon}\left({Y}, {X}\right) \leq \delta.\]

8.3.4.2 Proof of Lemma 60.

Let \({\eta_{-\theta}}= 1/2 - \theta\) and \({\eta_{+\theta}}= 1/2 + \theta\). For brevity, we let \(C\) denote \(\mathsf{PB}(n,p_J)\). For any distribution \({\cal D}\), let \(P_{\cal D}\) denote the probability measure with respect to \({\cal D}\). We first show that for any \(\epsilon>0\), it holds that \(\mathsf{D}^\mathsf{hs}_{e^\epsilon}\left({P_{C}}, {P_{C + 1}}\right)\) is at most \[\begin{aligned} \max\left(\mathsf{D}^\mathsf{hs}_{e^\epsilon}\left({P_{\mathsf{B}(\lceil\frac{n}{2}\rceil, {\eta_{+\theta}})}}, {P_{\mathsf{B}(\lceil\frac{n}{2}\rceil, {\eta_{+\theta}})+1}}\right), \mathsf{D}^\mathsf{hs}_{e^\epsilon}\left({P_{\mathsf{B}(\lceil\frac{n}{2}\rceil, \eta_{-\theta})}}, {P_{\mathsf{B}(\lceil\frac{n}{2}\rceil, \eta_{-\theta})+1}}\right) \right). \end{aligned}\]

We start with an upper bound of the hockey-stick divergence is reached at extreme points. We rely on the results in [167]. Although they use the Renyi divergence, their results are general enough to be applied to any \(f\)-divergence.

Lemma 81. ([167], Lemma 3.5) \[\begin{aligned} \mathsf{D}^\mathsf{hs}_{e^\epsilon}\left({P_{C}}, {P_{C + 1}}\right) \leq \max_{j \in [n]} \mathsf{D}^\mathsf{hs}_{e^\epsilon}\left({P_{\mathsf{B}(j, \eta_{-\theta}) + \mathsf{B}(n-j,\eta_{+\theta})}}, {P_{\mathsf{B}(j, \eta_{-\theta}) + \mathsf{B}(n-j,\eta_{+\theta})+1}}\right).\label{eqa:twobinom} \end{aligned}\]

Next, we apply data processing inequality to simplify ([eqa:twobinom]) from the above lemma.

Lemma 82. ([167], Lemma 3.6) ([eqa:twobinom]) is upper bounded by \[\begin{aligned} \max \left( \mathsf{D}^\mathsf{hs}_{e^\epsilon}\left({P_{\mathsf{B}(\lceil\frac{n}{2}\rceil, {\eta_{+\theta}})}}, {P_{\mathsf{B}(\lceil\frac{n}{2}\rceil, {\eta_{+\theta}})+1}}\right), \mathsf{D}^\mathsf{hs}_{e^\epsilon}\left({P_{\mathsf{B}(\lceil\frac{n}{2}\rceil, \eta_{-\theta})}}, {P_{\mathsf{B}(\lceil\frac{n}{2}\rceil, \eta_{-\theta})+1}}\right)\right). \label{eqa:twobinom-max} \end{aligned}\]

We extend the above to upper bound the hockey-stick divergence between probability measures differed by an integer amount greater than 1, i.e., \(P_{C}\) and \(P_{C+s}\) for \(s>1\).

Corollary 83. For any \(\epsilon>0\), it holds that \(\mathsf{D}^\mathsf{hs}_{e^\epsilon}\left({P_{C}}, {P_{C + s}}\right)\) is at most \[\begin{aligned} \max \left( \mathsf{D}^\mathsf{hs}_{e^\epsilon}\left({P_{\mathsf{B}(\lceil\frac{n}{2}\rceil, {\eta_{+\theta}})}}, {P_{\mathsf{B}(\lceil\frac{n}{2}\rceil, {\eta_{+\theta}})+s}}\right), \mathsf{D}^\mathsf{hs}_{e^\epsilon}\left({P_{\mathsf{B}(\lceil\frac{n}{2}\rceil, \eta_{-\theta})}}, {P_{\mathsf{B}(\lceil\frac{n}{2}\rceil, \eta_{-\theta})+s}}\right) \right). \end{aligned}\]

Finally, to give a bound on the divergence, we can apply Lemma 54 to argue that the binomial distribution hides the small sensitivity. Specifically, as \(\lceil\frac{n}{2}\rceil \in \Theta(\kappa)\) and \(s =\lg\lg\kappa\), we can claim \((\epsilon, \delta)\)-DDP with \(\delta= \mathsf{negl}(\kappa)\).

Similarly, it holds that \(\mathsf{D}^\mathsf{hs}_{e^\epsilon}\left({P_{C+s}}, {P_{C}}\right) \le \mathsf{negl}(\kappa)\). 0◻

8.3.5 Proof of Theorem 56

8.3.5.1 On the definition of a \(\theta\)-good iteration.

We keep the same definition of a \(\theta\)-good iteration, except we set the exponent to \(1/n_R'\), instead of \(1/n_R\), and we also require \(\theta \le 1/10\). In particular,

8.3.5.2 Bundle of good iterations \(K_\theta\).

The total number of iterations in the min-hash protocol \(\pi_{\mathsf NMH}\) is \(k = \Omega(\kappa \cdot \lg\lg\kappa)\). We require that \(n_R/k^2 = \Omega(\kappa)\).

Using Lemma 58, with all but negligible probability, at least \(\Omega(\kappa \cdot \lg\lg\kappa)\) iterations are \(\theta\)-good. Recall that \(G_\theta\) denotes the set of \(\theta\)-good iterations, and \(K_\theta = G_\theta \setminus S_{x^*}\). We set \(k_g = |K_\theta|\). We further divide these \(k_g\) iterations into \(u = \lg\lg \kappa\) bundles, each of which is of size \(k_b = \Omega(\kappa)\). Those bundles are denoted by \(K_{\theta, 1}, \ldots, K_{\theta,u}\). We also let \(K_{bad} := \overline{K_{\theta}}\).

8.3.5.3 Random variables for the protocol output.

Let \(out^+_{bad}\) be the protocol’s match count for sets \(A, B_{+x^*}\) w.r.t. the hash functions in \(K_{bad}\): \[out^+_{bad} := \left | \{ j \in K_{bad} : \min h_j(A) = \min h_j(B_{+x^*}) \} \right |.\] Likewise, let \(out_{bad}\) be the number of matches for sets \(A\) and \(B\) (instead of \(B_{+x^*}\)) in iterations in \(K_{bad}\). Similarly, for \(i \in [u]\), we let \(out^+_{i}\) and \(out_i\) denote the output for the \(i\)-th bundle, with or without \({x^*}\) respectively. Note that \(out^+_{i} = out_i\), since we ruled out \(S_{x^*}\) from \(K_\theta\). Note that the final output of the min-hash protocol for input \(B_{+x^*}\) is equal to \(out^+_{bad} + \sum_{i=1}^u out_i\); the final output for input \(B\) is \(out_{bad} + \sum_{i=1}^u out_i\). Let \[\boldsymbol{out} = out^+_{bad} || out_{bad} || out_1 || \cdots || out_u.\] We also consider the output with the \(i\)th bundle missing; that is, for \(i \in [u]\) let \[\boldsymbol{out}_{-i} = out^+_{bad} || out_{bad} || out_1 || \cdots || out_{i-1} || out_{i+1} || \cdots || out_u.\]

8.3.5.4 Upper-bounding leakage from the output.

Since \(|K_{bad}|\) and \(|K_{\theta,i}|\) are at most \(k \in poly(\kappa)\), we can safely assume that the total number of bits in \(\boldsymbol{out}\) is \[2\lg |K_{bad}| + \sum_{i=1}^u \lg |K_{\theta, i}| \leq ( 2 + \lg\lg \kappa) \lg |poly(\kappa)| \le \kappa.\]

8.3.5.5 Distribution of \(R\) and its min-entropy.

The original distribution on the secret set \(R\) is the uniform distribution over all sets of size \(n_R\) with each element is chosen from a universe \(\mathcal{U}\). The universe \(\mathcal{U}\) has size \(\ell \cdot n_R\) with \(\ell \ge 4(n_R)^3\).

Now choose, uniformly at random, a partition \(\{U_1, \ldots, U_{n_R}\}\) of \(\mathcal{U}\) where each \(|U_j| = \ell\) such that the element in the \(j\)th slot of \(R\) belongs to \(U_j\). These universes \(\{U_1, \ldots, U_{n_R}\}\) are leaked in the analysis.

Let \({\cal D}\) denote the original distribution over the set \(R\), but conditioned on the leaked information \(\{ U_1, \ldots, U_{n_R} \}\). The distribution \({\cal D}\) is equivalent to a distribution over streams of \(n_R\) elements, where the element in the \(i\)-th slot is chosen uniformly at random from \(U_i\). Therefore, \({\cal D}\) has min-entropy \(n_R \lg \ell\).

We additionally consider arbitrary leakage \(f(R)\) of length \(L\) such that \[n_R \lg \ell - L \ge \frac{8n_R}{9} \lg \ell + 2n_R.\]

8.3.5.6 Available iterations in a bundle.

For a fixed set \(Z \subseteq R\), in a min-hash graph, we say that a set of iterations in the \(i\)th bundle \(K_{\theta, i}\) is available with respect to \(Z\) if there are no edges from \(Z\) to that set. In other words, no elements in \(Z\) contribute to the final count reduction for any of those iterations. In this sense, those iterations are still available for the count reduction by the other elements than those in \(Z\). More formally, consider a graph \(G \leftarrow{\bf MinhashG}_{H_1}(A, I, {x^*}, H_2)\) and letting \(G = (\mathcal{X}, \mathcal{Y}, \mathcal{E})\), we define \[\mathsf{Avail}_G(K_{\theta,i}, Z) := \{ j \in K_{\theta, i}: \forall z \in Z: (z, j) \not \in \mathcal{E})\}.\]

8.3.5.7 Existence of a good bundle.

We now describe an experiment to check if the \(i\)th bundle of iterations is good in the sense that given the fixed hash, the distribution \({\cal D}\) (after the leakage) satisfies the DP-like property conditions specified in Lemma 1. Roughly speaking, Lemma 1 shows that a bundle will be good with a high probability.

  1. Process IsAGoodBundle\((i, \boldsymbol{out}_{-i}, {\cal D}, A, I, {x^*}, H_1, H_2)\):

  2. Consider \(G \leftarrow{\bf MinhashG}_{H_1}(A, I, {x^*}, H_2)\).

  3. Let \({\cal D}_{1,i} := {\cal D}\mid \boldsymbol{out}_{-i}\). In other words, \({\cal D}_{1,i}\) is the distribution \({\cal D}\) on \(R\), but conditioned on the output vector \(\boldsymbol{out}_{-i}\). If \({\cal D}_{1,i}\) has min-entropy less than \(n_R \lg(\ell) - L - 2\kappa\) then output \(\mathsf{FAIL}_{1,i}\) and terminate.

  4. Check if there is a leakage function \(f_G(R)\) which leaks \(V = \{j_1, \ldots, j_{n'_R} \}\) and \(T = \mathsf{Avail}_G(K_{\theta,i}, R \setminus R')\) such that there exists a distribution with the Geometric Collision Property over sets \(R' = \{x_j \in R : j \in V\}\). If there is no such distribution, output \(\mathsf{FAIL}_{2,i}\) and terminate. Let \({\cal D}_{2,i} := {\cal D}_{1,i} | f_G(R)\).

  5. If it holds \(|T| \le \frac{1}{10} | K_{\theta,i}|\), output \(\mathsf{FAIL}_{3,i}\) and terminate. Let \(k_v = |T|\).

  6. Compute \(D_{T, r}({\cal D}_{2,i})\) and check if \(D_{T,r}\) satisfies the conditions given in Lemma 1. Output \(\mathsf{FAIL}_{4,i}\) and terminate, if the above check fails.

  7. Output SUCCESS.

8.3.5.8 Failure probability \(\mathsf{FAIL}_{1,i}\).

We claim that \(\mathsf{FAIL}_{1,i}\) takes place with a negligible probability. By applying [168], Lemma 2.2, the average min-entropy of \({\cal D}|\boldsymbol{out}_{-i}\) is at least \(n_R\lg \ell - L - \kappa\), which implies that the min-entropy of \({\cal D}| \boldsymbol{out}_{-i}\) is at least \(n_R\lg \ell - L - 2\kappa \ge \frac{8n_R}{9} \lg \ell + n_R\) with probability \(1 - 2^{-\kappa}\) (assuming that \(n_R \ge 2\kappa\)).

8.3.5.9 Failure probability \(\mathsf{FAIL}_{2,i}\).

Lemma 84. The experiment outputs \(\mathsf{FAIL}_{2,i}\) with a negligible probability.

We give the proof later in Section 8.3.8.

8.3.5.10 Failure probability \(\mathsf{FAIL}_{3,i}\)

We show that \(\mathsf{FAIL}_{3,i}\) occurs with negligible probability. Let \(n = n_R\) and \(n' = n'_R\) for brevity of notation. Recall that \(n' = n/3\). Let \(X_j\) be an indicator variable that represents whether there is an edge from \((n-n')\) nodes to iteration \(j\). Therefore, we have \[\Pr_{H_2}[|T| = r] = \Pr_{H_2} \left[ \sum_{j=1}^{k_b} X_j = k_b - r \right].\] Recall that \(p_j \le 1-({\eta_{-\theta}})^{1/n'}\) and \(\Pr[X_j = 1] = 1 - (1 - p_j)^{n-n'} \le 1 - ({\eta_{-\theta}})^\frac{n-n'}{n'} = 1 - ({\eta_{-\theta}})^2 \le 1 - (2/5)^2\). Therefore, we have \[m:= {\bf E}\left[ \sum_{j=1}^{k_b} X_j \right] \le k_b \cdot (1 - ({\eta_{-\theta}})^2) \le 0.84 k_b\] Using the Chernoff bound and due to \(k_b \in \Omega(\kappa)\), we have \[\begin{aligned} \Pr_{H_2}\left [|T| \le \frac{k_b}{10} \right] &= \Pr_{H_2} \left[ \sum_{j=1}^{k_b} X_j \ge \frac{9}{10}k_b \right] \\ &\le \exp\left(-\frac{(0.9 k_b - m_0)^2}{2 m_0}\right) = \exp(-\Omega(\kappa)). \quad\blacksquare \end{aligned}\]

8.3.5.11 Failure probability \(\mathsf{FAIL}_{4,i}\).

By Lemma 1, for all \(i \in [u]\), conditioned on \(\mathsf{FAIL}_{1,i}\), \(\mathsf{FAIL}_{2,i}\), \(\mathsf{FAIL}_{3,i}\) not occurring, let \[p_4 := \Pr_{H_1, H_2}[\textbf{IsAGoodBundle}(i, \boldsymbol{out}_{-i}, {\cal D}, A, I, {x^*}, H_1, H_2) =\ \mathsf{FAIL}_{4,i}].\] Then, we have \(p_4 \in O(k_v \lg^3(\kappa)/(n_R)^{0.5})\).

8.3.5.12 Existence of a good bundle out of \(u\) bundles.

Observe that conditioned on \(\mathsf{FAIL}_{1,i}\), \(\mathsf{FAIL}_{2,i}\), \(\mathsf{FAIL}_{3,i}\) not occurring, the process outputs \(\mathsf{FAIL}_{4,i}\) independently of \((\boldsymbol{out}_{-i}, R')\), since the hash values in \(H_2\) for any iteration are chosen independently of those for the other iterations. Using the above, since \(k_v /\sqrt{n_R} = O(1/\sqrt{\kappa})\), we have the following:

8.3.5.13 Noise distribution.

We define a noise distribution \(\Phi\) and give an analysis of the hockey stick divergence of \(\Phi(r)\) and \(\Phi(r-\lg\lg(\kappa))\).

Definition 85 (Noise distribution \(\Phi\)). We define \(\Phi(r)\) as follows:

Lemma 86. The hockey stick divergences \(\mathsf{D}^\mathsf{hs}_{e^\epsilon}\left({\Phi(r)}, {\Phi(r-\lg\lg(\kappa))}\right)\) and
\(\mathsf{D}^\mathsf{hs}_{e^\epsilon}\left({\Phi(r-\lg\lg(\kappa))}, {\Phi(r)}\right)\) are both negligible in \(\kappa\).

Proof. For brevity, for any \(r\), denote \(D_r := D_{T, r}({\cal D}_{2,i^*})\). Conditioned on IsAGoodBundle outputting SUCCESS with input \(\boldsymbol{out}_{-{i^*}}\), we have \(a\) and \(b\) such that for \(r \in [a + \lg\lg \kappa, b]\), \[e^{-\epsilon} \le \frac{e^{-\epsilon/3}E^{n'}_{k_v, r}}{e^{\epsilon/3}E^{n'}_{k_v, r-\lg\lg(\kappa)}} \le \frac{D_r}{D_{r-\lg\lg(\kappa)}} \le \frac{e^{\epsilon/3}E^{n'}_{k_v, r}}{e^{-\epsilon/3}E^{n'}_{k_v, r-\lg\lg(\kappa)}} \le e^{\epsilon}.\] The first and last inequalities are from Corollary 61. The second and third inequalities are from the condition that the process outputs SUCCESS. The hockey stick divergence \(\mathsf{D}^\mathsf{hs}_{e^\epsilon}\left({\Phi(r)}, {\Phi(r-\lg\lg(\kappa))}\right)\) is therefore at most \[\sum_{r \not \in [a+\lg\lg\kappa, b]} D_r \le k_v \cdot \mathsf{negl}(\kappa) = \mathsf{negl}(\kappa). {\quad\blacksquare}\] Similarly, \(\mathsf{D}^\mathsf{hs}_{e^\epsilon}\left({\Phi(r-\lg\lg(\kappa))}, {\Phi(r)}\right)\) is also \(\mathsf{negl}(\kappa)\). ◻

8.3.5.14 Putting it all together.

Let \(c\) be the final count produced by running protocol \(\pi_{\mathsf NMH}\). We consider the probabilities \[\Pr_{H_1, H_2,\mathcal{D}}[ c \mid B_{+x^*}] \mbox{~~and~~} \Pr_{H_1, H_2, \mathcal{D}}[c \mid B].\]

We consider only runs of the protocol that yield \(c\) and for which there exists some \(i^* \in [u]\) such that the process \({\bf IsAGoodBundle}\) returns SUCCESS given \(\boldsymbol{out}_{-i^*}\) as input. We just have argued that such an \(i^*\) exists with all but negligible probability.

Further, we consider only runs of the protocol for which \(out^+_{bad} - out_{bad} \leq s = \lg\lg(\kappa)\). By Lemma 50, this also occurs with all but negligible probability, We will also leak \(k_v = |\mathsf{Avail}(K_{\theta, i^*}, R \setminus R')|\).

Conditioned on the above events, by the definition of the distribution \(\Phi\), the value \(out_{i^*}\) contributes \((k_v - r)\) to the final count \(c\) with probability \(p = \Phi(r)\). Recall that every iteration \(j\) in \(K_{\theta,i^*}\) is good, which means \(\min h_j(A) = \min h_j(I)\), potentially contributing to the output.

Therefore, assuming none of bad events occur (which happens with overwhelming probability), by applying Lemma 86, the probability that the ratio of probabilities of a certain output \(out\) for \(B_{+x^*}\) and \(B\) is not contained in \([e^{-\epsilon}, e^{\epsilon}]\) is \(\mathsf{negl}(\kappa)\), and therefore we conclude that the protocol satisfies the DDP security.

8.3.6 Proof of Lemma 1

When considering the probability of \(D_{T,r}({\cal D})\) and \(I_{R', T, r}\) over the choice of \(H_2\), the identity of \(T\) doesn’t matter except for its size \(k_b = |T|\). Therefore, in this case, we will simply use \(D_{k_b,r}({\cal D})\) and \(I_{R', k_b, r}\) Moreover, when it is clear from the context, we will sometimes omit \(k_b\) and \({\cal D}\) and say \(E^{R'}_{r} = E^{n'_R}_r\) and \(I_{R',r} = I_{R', k_b, r}\), and \(D_r = D_{k_b,r}({\cal D})\).

We first show the following lemma holds.

Lemma 87. Let \({\cal D}\) be a distribution over sets of size \(n_R'\) with geometric collision property. Fix \(H_1\) and consider \(k_b, \theta, a, b\) specified in Lemma 61 with the same requirements. Then, we have the following:

Case 1:

If \(r \not \in [a+s, b]\), we have \(\Pr_{H_2}\left[ D_{k_b,r}({\cal D}) \le \mathsf{negl}(\kappa) \right] \ge 1 - \mathsf{negl}(\kappa)\).

Case 2:

If \(r \in [a,b]\), then we have

\[\Pr_{H_2}\left[ e^{-\epsilon/3} E^{n'_R}_{k_b,r} \leq D_{k_b,r}({\cal D}) \leq e^{\epsilon/3} E^{n'_R}_{k_b,r} \right] \ge 1-(e^{\epsilon/3}-1)^{-2} \cdot \frac{16 \lg^3(\kappa)}{\sqrt{n_R}}.\]

Then, Lemma 1 follows by taking a union bound over different cases of \(r \in [k_b]\).

We also define \(\rho(R') := \Pr_{R' \sim \tilde{\mathcal{D}}}[R']\).

8.3.6.1 Proof for Case 1.

We first consider Case (1). By applying the Case (1) of Corollary 61, we have \(E^{n_R'}_{r} \in \mathsf{negl}(\kappa)\). Given \(E^{n_R'}_{r} \in \mathsf{negl}(\kappa)\), we show \[\Pr_{H_2}\left[ D_r({\cal D}) \leq \mathsf{negl}(\kappa) \right] \ge 1 - \mathsf{negl}(\kappa).\]

Recall that \(D_r({\cal D}) = \sum_{R'} \rho(R') \cdot I_{R',r}\). Assume toward the contradiction that the negation of the statement holds. This means there are polynomials \(p\) and \(q\), and a collection \(\mathsf Heavy\) of \(R'\)s such that \[\Pr_{H_2}\left[ \sum_{R' \in {\mathsf Heavy}} \rho(R') \cdot I_{R', r} \ge 1/p(\kappa) \right] \ge 1/q(\kappa).\]

The above implies that \(\sum_{R' \in {\mathsf Heavy}} \rho(R') \ge 1/p(\kappa)\). Now, since \({\cal D}\) and \(H_2\) are independent, we have \(\sum_{R' \in {\mathsf Heavy}} \rho(R') \Pr_{H_2}\left[I_{R', r} \right] \ge \frac{1}{p(\kappa) q(\kappa)}.\) However, considering that \(\Pr_{H_2}\left[I_{R', r}\right] = E^{n_R'}_{r}\), which is negligible, the above is a contradiction.

8.3.6.2 Proof for Case 2.

We will bound \(D_r = \sum_{R'} \rho(R') \cdot I_{R', r}\) using Chebyshev inequality. For this, we would like to bound the variance of \(D_r\).

We start with showing the following lemma, which will allow us to ignore the tail when we bound the variance. Below, the value \(z\) will correspond to the size of the intersection of the two sets \(R'_i\) and \(R'_j\).

Lemma 88. Fix \(H_1\). Consider a graph \(G \leftarrow{\bf MinhashG}_{H_1}(A, I, {x^*}, H_2)\). Consider any set \(T\) of iterations in \(G\) such that \(|T| = k_b\). Let \(Z\) be a set of left nodes in \(G\) such that \(|Z| \le n'_R\). Let \(z = |Z|\). Consider the probability (over the choice of \(H_2\)) that \(Z\) has more than \(z \lg\lg \kappa\) outgoing edges in \(G\). This probability is negligible in \(\kappa\).

Proof. Let \(p = 1 - ({\eta_{-\theta}})^{1/n'_R}\). We first show that \(p \le 1/n'_R.\) Recall \(\theta \le 1/10\), which implies \(e^{-1} \le 1/2 - \theta = {\eta_{-\theta}}\). Therefore, we have \((1-1/n_R')^{n_R'} \le e^{-1} \le {\eta_{-\theta}}\), so \(1-1/n_R' \le ({\eta_{-\theta}})^{1/n_R'}\). Therefore, we have \(p = 1 - ({\eta_{-\theta}})^{1/n'_R} \le 1/n'_R\).

Let \({\mathsf{Edges}}(Z, T)\) be the set of edges from \(Z\) to \(T\). Over the choice of \(H_2\), the probability that each pair in \(Z \times T\) forms an edge is at most \(p\). Therefore, we can simply use a Binomial distribution to bound the probability. In particular, with \(t = \lg\lg \kappa\) we have \[\begin{aligned} \Pr_{H_2}\big[ |{\mathsf{Edges}}(Z,T)| \ge zt\big] &\le \Pr \big[ \mathsf{B}(z\hat{k}, p) \ge zt \big] \le \binom{z\hat{k}}{zt} \cdot p^{zt} \\ &\le \binom{z\hat{k}}{zt} \cdot \left(\frac{1}{n_R'}\right)^{zt} \le \left(\frac{e \hat{k}}{t n'_R}\right)^{zt} \end{aligned}\] Since \(n'_R\) is much larger than \(k_b\), the above probability becomes negligible in \(\kappa\). ◻

Now we prove the following lemma towards bounding the variance of \(D_r\).

Lemma 89. Fix \(H_1\). We set the parameters for \(k_b, a\) and \(b\) as stated in Lemma 1. Let \(R'_i, R'_j\) be sets of nodes on the left of size \(n'_R\) such that with \(|R'_i \cap R'_j| = z\). Let \(\zeta = z \lg\lg\kappa\). Then for all \(a \leq r \leq b\), we have \[\begin{aligned} \Pr_{H_2}[I_{R'_i,r} \wedge I_{R'_j, r}] = \mathop{\mathrm{\mathbb{E}}}_{H_2}[I_{R'_i,r} \cdot I_{R'_j, r}] \leq \left( 1 + \frac{\zeta \cdot (e^{\zeta \epsilon/3}+1)}{{\eta_{-\theta}}^{z k_b/n'_R} } \right) \left(E^{n'_R}_r\right)^2 \end{aligned}\]

Proof. Fix \(R'_i, R'_j\) with \(|R'_i \cap R'_j| = z\). Let \(Z = R'_i \cap R'_j\) and \(X = R'_i - Z\). Then, we have \[\begin{aligned} \Pr_{H_2}[I_{R'_i,r} \wedge I_{R'_j, r}] & = \sum_{m=0}^r \Pr[ I_{X,m} \wedge I_{Z, r-m} \wedge I_{R'_j, r} ]\\ & \leq \sum_{m=0}^{r-\zeta} \Pr[I_{Z, r-m}] + \sum_{m=r-\zeta+1}^r \Pr[ I_{X,m} \wedge I_{R'_j, r} ] \\ & = \sum_{m = \zeta}^{r} \Pr[I_{Z, m}] + \sum_{m=r-\zeta+1}^r \Pr[ I_{X,m} ] \cdot \Pr[I_{R'_j, r} ] \\ &\le \mathsf{negl}(\kappa) + \sum_{m=r-\zeta+1}^r \Pr[I_{X, m}] \cdot \Pr[I_{R'_j, r}]\\ &= \mathsf{negl}(\kappa) + E^{n'_R}_r\cdot \sum_{m=r-\zeta+1}^r \Pr[I_{X, m}] . \end{aligned}\] The second inequality holds due to Lemma 88.

It is left to bound \(\Pr[I_{X, m}]\) for \(m \in (r-\zeta, r]\). We observe that \(\Pr_{H_2}[I_{X, m}] = \Pr[I_{R'_i, m} |~ I_{Z, 0}]\). In other words, the event that \(X\) contributes to noise pattern \(m\) is equivalent to the event that \(R'_i\) contributes to \(m\) conditioned on the intersection having no contribution. Therefore, we have \[\Pr_{H_2}[I_{X, m}] = \frac{\Pr[I_{R'_i, m} \wedge I_{Z, 0}]}{ \Pr[I_{Z,0}] } \le \frac{\Pr[I_{R'_i, m}]}{ {\eta_{-\theta}}^{z k_b/n'_R} } = \frac{E^{n'_R}_{m}}{ {\eta_{-\theta}}^{z k_b/n'_R} }.\]

We now bound \(E_m^{n'_R}\) for \(m \in (r-\zeta, r]\). Let \(m^* := \arg\max_{m} \{E^{n'_R}_m: m \in (r-\zeta, r] \}\). Using Corollary 61 we have \(E^{n'_R}_{m^*} \le (e^{\epsilon/3})^{\zeta} \cdot E^{n'_R}_{r} + \mathsf{negl}(\kappa)\). Therefore, we have \[\begin{aligned} \Pr_{H_2}[I_{R'_i,r} \wedge I_{R'_j, r}] &\le \mathsf{negl}(\kappa) + E^{n'_R}_r \cdot \sum_{m=r-\zeta+1}^{r} \Pr[I_{X, m}] \\ &\le \mathsf{negl}(\kappa) + \zeta \cdot E^{n'_R}_r \cdot \Pr[I_{X, m^*}] \\ &= \mathsf{negl}(\kappa) + \zeta \cdot E^{n'_R}_r \cdot \frac{E^{n'_R}_{m^*}}{ {\eta_{-\theta}}^{z k_b/n'_R} } \\ &= \mathsf{negl}(\kappa) + \zeta \cdot E^{n'_R}_r \cdot \frac{e^{\zeta \epsilon/3} E^{n'_R}_{r} + \mathsf{negl}(\kappa)}{ {\eta_{-\theta}}^{z k_b/n'_R} } \\ &\le \left( 1 + \frac{\zeta \cdot (e^{\zeta \epsilon/3}+1)}{{\eta_{-\theta}}^{z k_b/n'_R} } \right) \left(E^{n'_R}_r\right)^2 {\quad\blacksquare} \end{aligned}\] ◻

We set the parameters for \(H_1, k_b, a\) and \(b\) as stated in Lemma 1. Let \(\mathcal{D}\) be a distribution with the geometric collision property. Then, we show that for every \(a \leq r \leq b\), we have \[\mathsf{Var}_{H_2} [D_r] \leq \frac{16 \lg^3(\kappa)}{\sqrt{n_R}} \left (E^{n'_R}_{k_b, r} \right )^2.\]

Consider any \(r \in [a, b]\). Recall that \(D_r := \sum_{R' \in \mathsf{Supp}(\tilde{\mathcal{D}})} \rho(R') \cdot I_{R', r}\).

\[\begin{aligned} \mathsf{Var}_{H_2}[D_r] &\quad \quad = \sum_{R'_i, R'_j} \rho(R'_i) \cdot \rho(R'_j) \cdot ( \mathbb{E}[I_{R'_i, r } \cdot I_{R'_j, r} ] - \mathbb{E}[I_{R'_i, r }] \cdot \mathbb{E}[I_{R'_j, r}] ) \\ &\quad \quad \leq \sum_{R'_i, R'_j : |R'_i \cap R'_j| \ge 1} \rho(R'_i) \cdot \rho(R'_j) \cdot \mathbb{E}[I_{R'_i,r} \cdot I_{R'_j, r}]\\ &\quad \quad = \sum_{z=1}^{n'_R} \Pr_{R'_i, R'_j \sim {\cal D}} [|R'_i \cap R'_j| = z] \cdot \mathbb{E}[I_{R'_i,r} \cdot I_{R'_j, r}] \\ &\quad \quad \le \sum_{z=1}^{n'_R} \left(\frac{1}{\sqrt{n_R}}\right)^z \cdot \left( 1 + \frac{\zeta \cdot (e^{\zeta \epsilon/3} + 1)}{{\eta_{-\theta}}^{ z k/n'_R} } \right) \cdot \left(E^{n'_R}_r\right)^2 \\ &\quad \quad \le \sum_{z=1}^{n'_R} \left(\frac{1}{\sqrt{n_R}}\right)^z \cdot \left( \zeta \cdot \frac{e^\zeta + 2}{(2/5)^{\zeta/3} } \right) \cdot \left(E^{n'_R}_r\right)^2 \\ &\quad \quad \le \sum_{z=1}^{n'_R} \left(\frac{1}{\sqrt{n_R}}\right)^z \cdot \left( 8^{\zeta+1} \right) \cdot \left(E^{n'_R}_r\right)^2 \\ \end{aligned}\] The first inequality holds because if \(R'_i\) and \(R'_j\) are disjoint, then \(I_{R'_i,r}\) and \(I_{R'_j, r}\) are independent over the choice of \(H_2\), and the relevant terms are canceled out. The second inequality is due to the geometric collision property of \({\cal D}\) and Lemma 89. The third inequality holds with \(\epsilon\leq 3\) since \(\theta < 1/10\) and \(k_b\) is much smaller than \(n'_R\). Therefore, we have \(\mathsf{Var}_{H_2}[D_r] \le 8 \cdot \left(E^{n'_R}_r\right)^2 \cdot \sum_{z=1}^{n'_R} \left( \frac{\lg^3\kappa }{\sqrt{n_R}} \right)^z \leq \frac{16 \lg^3 \kappa}{\sqrt{n_R}} {\left (E^{n'_R}_{r} \right )}^2\). 0◻

Finally, by Chebyshev, we have that for all \(a \leq r \leq b\), \[\begin{aligned} \label{eq:chebyshev} &\Pr_{H_2}\left [D_r \notin [e^{-\epsilon/3} (E^{n'_R}_{k_b, r}), e^{\epsilon/3} (E^{n'_R}_{k_b, r})] \right ] \\ &\qquad \leq \Pr\left [|D_r -E^{n'_R}_{k_b, r}| \geq (1-e^{-\epsilon/3}) \cdot E^{n'_R}_{k_b, r} \right ] \\ &\qquad \leq \frac{\mathsf{Var}[D_r]}{(1-e^{-\epsilon/3})^{2} \cdot (E^{n'_R}_{k_b, r})^2} \leq \frac{16 \lg^3(\kappa)}{(1-e^{-\epsilon/3})^{2}\sqrt{n_R}}. \end{aligned}\]

8.3.7 Strong Chain Rule

8.3.7.1 Strong chain rule for a special case: achieving flatness through clustering.

Fortunately, a stronger version of the chain rule is known to hold for a special leakage pattern, i.e., when elements are conditioned in order [163]; very roughly speaking, for every \(i\), the min-entropy of \(R_i | (R_1, \ldots, R_{i-1})\) is essentially the same as the min-entropy of \((R_1, \ldots, R_i)\) minus the min-entropy of \((R_1, \ldots, R_{i-1})\) at the sacrifice of an additional small leakage, which is called a spoiling leakage.

They achieve this by grouping possible sequences with a similar distributional characteristic into the same cluster. Then, in every cluster, the distribution of sequences conditioned on that cluster will be essentially flat. Now, the spoiling leakage corresponds to the cluster identifier. By making every cluster contain sufficiently many sequences (leading to sufficient min-entropy due to flatness), the total number of clusters can be small (leading to a short spoiling leakage).

8.3.7.2 Notes on notations.

For brevity, in this section, we omit the subscript from \(n_R\), i.e., we denote \(n = n_R\). For any sequence of random variables \(R = R_1, \dots, R_n\) (for the secret input \(R\)), we denote \(R_{<i} = R_1,\dots,R_{i-1}\) and \(R_{\leq i} = R_1,\dots,R_{i}\). Likewise, we extend such subscript notations and use \(R_{>i}\) and \(R_{\ge i}\). We use lower case \(r = r_1,\dots,r_n\) to denote the actual set/sequence.

8.3.7.3 Strong chain rule for our setting.

We first adapt the result in [163] into our setting. Then, we argue that a sufficient number of elements still have high min-entropy, even conditioned on the previous elements. Finally, we show that these high min-entropy (conditioned) elements provide the geometric collision property.

Theorem 90 (Block structures with few bits spoiled in our setting). We consider a min-hash graph \(G = (\mathcal{X}, \mathcal{Y}, \mathcal{E})\) constructed from \({\bf MinhashG}_{H_1}(A, I, {x^*}, H_2)\), while focusing on a single bundle \(K_{\theta,*}\) of iterations.

Let \(\mathcal{U} = U_1 \times \cdots \times U_n\) be a fixed universe and \(R = (R_1,\dots,R_n)\) be a sequence of (possibly correlated) random variables where each \(R_i\) is over \(U_i\) (and all are disjoint) and \(|U_i| = \ell\) for all \(i\). Then, for any \(\epsilon \in (0, 1)\) and any \(\delta> 0\), there exists a spoiling leakage function \(f_G(R)\) that satisfies the following properties.

  1. It holds that \(\Pr_{R}[f(R) = \bot] \leq \epsilon n\).

  2. Let \(Im(f)\) be the set of images of \(f\). Every \(y \in Im(f) \setminus \{\bot\}\) specifies two disjoint sets \(V\) and \(W\) such that \(V \cup W = [n]\).

  3. Conditioned on any \(y \in Im(f) \setminus \{\bot\}\), for every \(i \in V\), every element in distribution \(R_i \mid R_{<i}\) has low probability weight, i.e., \[\begin{aligned} &\forall y \in Im(f) \setminus \{\bot\}, \forall r \mbox{ s.t. } f(r) = y, \forall i \in V:\\ &\qquad \Pr\left[R_i = r_i~ \Bigg |~R_{<i} = r_{<i},~ y\right] \leq \frac{2^{\delta}}{n^{1.5}}. \end{aligned}\]

  4. Conditioned on any \(y \in Im(f) \setminus \{\bot\}\), for every \(i \in W\), it holds that \(R_i \mid R_{<i}\) has small support size, i.e., \[\begin{aligned} \forall y \in Im(f) \setminus \{\bot\}, \forall r \mbox{ s.t. } f(r) = y, \forall i \in W: \\ \left | \left \{ r_i : \Pr[R_i = r_i|R_{<i} = r_{<i}, y]] \geq 0 \right \} \right | \leq 2^{\delta} \cdot n^{1.5}. \end{aligned}\]

  5. \(|Im(f)| \leq n \cdot (2e)^{n/2} \cdot \frac{(n+k_b)!}{n!} \cdot \left ( 2(\lg(\ell) + \lg (1/\epsilon)) /\delta \right )^{n}\).

  6. \(\mathsf{Avail}_G(K_{\theta,*}, R_W)\) can be computed from \(f(R)\), where \(R_W := \{R_i : i \in W\}\).

By following the general idea of [163], we will build clusters, and the spoiling leakage will be the cluster identifier. However, we will slightly change the way we build clusters.

8.3.7.4 Condition 1.

Throughout our proof, we let \(\Pr[r_i]\) denote \(\Pr[R_i = r_i]\) for brevity, whenever the referred random variable is clear. Before forming the clusters, we will first like to exclude all sequences \(r \in \mathcal{U}= U_1 \times\dots\times U_n\) having a very small probability \(\Pr_{R}[R_i = r_i \mid R_{<i} = r_{<i}] < \epsilon/\ell\) for any \(i \in [n]\) and only consider the remaining \(\mathcal{U}' \subset \mathcal{U}\). Specifically, we let \(f(r) = \perp\) for all \(r \notin \mathcal{U}'\). As we will see later, this probability lower bound is vital to upper bound \(|Im(f)|\).

Claim 91. Let \(\mathcal{U}'\) be the set containing all the sequences \(r\) such that \(\Pr_{R}[R_i = r_i \mid R_{<i} = r_{<i}] \geq \epsilon/\ell\) for all \(i \in [n]\) . Then, we have \(\Pr[ r \in \mathcal{U}' ] \ge 1 - \epsilon n\).

Proof. For each \(i \in [n]\), and any \(r_{<i} \in U_1 \times\dots\times U_{i-1}\), we have \[\sum_{u \in U_i: \Pr_{R}[R_i = u \mid R_{<i} = r_{<i}] < \epsilon/\ell} \Pr_{R}[R_i = u \mid R_{<i} = r_{<i}] < \sum_{u \in U_i} \epsilon/\ell =\epsilon.\] Therefore, using a union bound across all \(i\in [n]\), we have \(\Pr[r \not \in \mathcal{U}'] \leq \epsilon\cdot n\). ◻

8.3.7.5 Building clusters.

For each \(r \in \mathcal{U}'\), we describe how to compute \(f(r) = (f_1(r), f_2(r),\) \(\ldots, f_n(r))\), which will serve as the cluster identifier. Let \(\mathsf{r}(a)\) denote a rounding function that rounds \(a\) to the closest multiple of \(\delta/2\). We say \(a \approx_{\mathsf{r}} a'\) if \(\mathsf{r}(a) = \mathsf{r}(a')\).

  1. For each \(r\), do the following:

  2. Let \(f_{>n}(r) = \bot\) for any \(r\), and initialize \(W = \emptyset\).

  3. For \(i = n,\dots,1\), do the following:

    1. Let \(\mathsf{sp}^1_i(r)\) denote the surprise of the \(i\)th element of \(r\). More formally, \[\mathsf{sp}^1_i(r) = -\lg \Pr_{R}[R_i = r_i \mid R_{<i} = r_{<i}, ~f_{>i}(R) = f_{>i}(r)].\] This surprise measure represents how rare and surprising the event \(r_i\) is, conditioned on \(r_{<i}\), \(f_{>i}(r)\). In a sense, we will group sequences with similar surprises into a cluster.

    2. Let \(\mathsf{sp}^2_i(r)\) denote the surprise of the sequences with a similar surprise level in aggregate. \[\mathsf{sp}^2_i(r) = -\lg \Pr_{R}[\mathsf{sp}^1_i(R) \approx_{\mathsf{r}} \mathsf{sp}^1_i(r) \mid R_{<i} = r_{<i}, ~f_{>i}(R) = f_{>i}(r)].\] Note \(\mathsf{sp}^1_i(r) \ge \mathsf{sp}^2_i(r)\), since at least sequence \(r\) has \(\mathsf{sp}^1_i(r)\) and possibly more points may approximately share the surprise. Note also that \(\mathsf{sp}^2_i(r)\) is a deterministic function of \(\mathsf{sp}^1_i(r), r_{<i}\), \(f_{>i}(r)\).

    3. If \(\mathsf{r}(\mathsf{sp}^1_i(r)) - \mathsf{r}(\mathsf{sp}^2_i(r)) \geq 1.5\lg(n)\) then let \(f_i(r) = (\mathsf{r}(\mathsf{sp}^1_i(r)), \mathsf{true})\).

    4. Otherwise, let \(f_i(r) = (\mathsf{r}(\mathsf{sp}^1_i(r)), \mathsf{false}, H_i)\) and add \(i\) to \(W\). Here, \(H_i\) is defined as \(N(\{r_i\})\setminus N(r_W)\), where \(N\) refers to the neighbors (restricted to \(K_{\theta,*}\)) of the input set of nodes in \(G\). In other words, \(H_i\) contains the iterations newly covered by element \(r_i\); any iterations previously covered by \(r_W\) are ruled out in \(H_i\). In this way, we can reduce the length of the cluster identifier.

  4. Set \(f(r) = f_1(r),\dots,f_n(r)\). Set \(V = [n] \setminus W\).

8.3.7.6 Conditions 2 and 3.

Condition 2 follows from how \(V\) is computed in step 3. We now show that condition 3 holds. In particular, \(\forall y \in Im(f(\cdot)) \setminus \{\bot\}, \forall r \mbox{ s.t. } f(r) = y, \forall i \in V\) we have \[\begin{aligned} \Pr[r_i \mid r_{<i}, y] & = \Pr[r_i \mid r_{<i}, y_{\geq i}] = \frac{\Pr[r_i \land r_{<i} \land y_{\geq i}]}{\Pr[r_{<i} \land y_{\geq i}]} \\ &= \frac{\Pr[r_i \land r_{<i} \land y_{> i} ]}{\Pr[r_{<i} \land y_{>i} ]\Pr[y_i \mid r_{<i} \land y_{>i} ] } \end{aligned}\]

The first equality is due to \(y_{< i}\) being a deterministic function of \(r_{< i}\), \(y_{\geq i}\). Similarly, the numerator of the final fraction is due to \(y_{i}\) being a deterministic function of \(r_{\leq i}\), \(y_{>i}\). Moreover, \(y_{i,2}\) (i.e., \(\mathsf{true}\)) can be deterministically computed from \(y_{i,1}\)(i.e., \(\mathsf{r}(\mathsf{sp}^1_i(r))\)), \(r_{<i}, y_{>i}\). Therefore, the above is equal to \[\label{eq:sp1_sp2} \frac{\Pr[r_i \land r_{<i} \land y_{> i} ]}{\Pr[y_{i,1} \mid r_{<i} \land y_{>i}] \Pr[r_{<i} \land y_{>i} ]} = \frac{\Pr[r_i \mid r_{<i} \land y_{>i} ]}{\Pr[y_{1,i} \mid r_{<i} \land y_{>i} ]} =\frac{2^{-\mathsf{sp}^1_i(r)}}{2^{-\mathsf{sp}^2_i(r)}} \leq \frac{2^\delta}{n^{1.5}}.\]

The last inequality holds since \(i \in V\), \(\mathsf{r}(\mathsf{sp}^1_i(r)) - \mathsf{r}(\mathsf{sp}^2_i(r)) \ge 1.5\lg(n)\).

8.3.7.7 Condition 4.

For \(r, y, i\) as quantified in the theorem statement, we have \[\begin{aligned} & \left | \left \{ r_i : \Pr[R_i = r_i|R_{<i} = r_{<i}, y]] \geq 0 \right \} \right | \\&= \left | \left \{ r_i : \Pr[R_i = r_i \land R_{<i} = r_{<i} \land y ]] \geq 0 \right \} \right |\\ &= \left | \left \{ r_i : \Pr[R_i = r_i \land R_{<i} = r_{<i} \land y_{i,1}, y_{i,2}, y_{>i} ]] \geq 0 \right \} \right |\\ &\leq \left | \left \{ r_i : \Pr[R_i = r_i | R_{<i} = r_{<i}, y_{i,1}, y_{i,2}, y_{>i} ]] \geq 0 \right \} \right | \end{aligned}\] By a similar argument as above, for all \(r_i\) s.t. \(\Pr[R_i = r_i | R_{<i} = r_{<i}, y_{i,1}, y_{i,2}, y_{>i} ]] \geq 0,\) it holds \[\Pr[R_i = r_i | R_{<i} = r_{<i}, y_{i,1}, y_{i,2}, y_{>i} ] = \frac{\Pr[r_i \mid r_{<i} \land y_{>i} ]}{\Pr[y_{i,1} \mid r_{<i} \land y_{>i} ]} = \frac{2^{-\mathsf{sp}^1_i(r)}}{2^{-\mathsf{sp}^2_1(r)}}\geq \frac{2^{-\delta}}{n^{1.5}}\] where the inequality holds since \(i \in W\), we know that \(\mathsf{r}(\mathsf{sp}^1_i(r)) - \mathsf{r}(\mathsf{sp}^2_i(r)) \le 1.5\lg(n)\). This means that \(\left | \left \{ r_i : \Pr[R_i = r_i | R_{<i} = r_{<i}, y_{\ge i} ]] \geq 0 \right \} \right | \leq 2^\delta \cdot n^{1.5}.\)

8.3.7.8 Condition 5.

To bound \(|Im(f)|\), we first upper bound \(y_{i,1}\). Recall that \(\Pr_{R}[R_i = r_i \mid R_{<i} = r_{<i}] \geq \epsilon/\ell\) for all \(i \in [n]\) and \(r \in \mathcal{U}'\). Therefore, \(\Pr_{R}[R_i = r_i \mid R_{<i} = r_{<i}, y] \geq \epsilon/\ell\) for all \(i \in [n]\), and \(\forall r\) such that \(f(r) = y\).

Therefore, for all \(r\in \mathcal{U}', i \in [n]\), we have \(\mathsf{sp}^1_i(r) \le \lg (\ell) + \lg (1/\epsilon),\) which implies that \(y_{i,1}\) has at most \(2(\lg(\ell)) + \lg (1/\epsilon))/\delta\) different possibilities.

To upper bound the number of possibilities of the remaining parts, it suffices to upper bound the number of choices for set \(W\) of size \(m\), as well as the number of possibilities for \(H_i\)’s in each slot \(i \in W\). Clearly, the former is \(\binom{n}{m}\). For the latter part, note that each iteration appears at most once over all \(m\) slots. Therefore, the problem becomes how we can assign \(k_b\) different iterations into \(m+1\) positions (with some positions possibly containing none) while assigning them to the \(m+1\)th position when they never appear in any slot of \(W\). This is a well-known problem of stars and bars with \(m+1\) variables and sum \(k_b\), which has \(\binom{m+k_b}{m}\) possibilities. Since we have \(k_b!\) different orderings for \(k_b\) iterations, the upper bound is \(\binom{m+k_b}{m} \cdot (k_b!)\). We have:

\[\begin{aligned} |Im(f)| &\leq \left (2 (\lg(\ell) + \lg (1/\epsilon)) /\delta \right )^n \left ( \sum_{m=0}^n {n \choose m} {m + k_b \choose m} \cdot k_b! \right )\\ &= \left (2 (\lg(\ell) + \lg (1/\epsilon)) /\delta \right )^n \left ( \sum_{m=0}^n {n \choose m}\frac{(m+k_b)!}{m!} \right )\\ &\leq n \cdot {n \choose n/2} \cdot \frac{(n+k_b)!}{n!} \cdot \left ( 2(\lg(\ell) + \lg (1/\epsilon)) /\delta \right )^{n}\\ &\leq n \cdot (2e)^{n/2} \cdot \frac{(n+k_b)!}{n!} \cdot \left ( 2(\lg(\ell) + \lg (1/\epsilon)) /\delta \right )^{n}. \end{aligned}\]

8.3.7.9 Condition 6.

Finally, condition 6 follows from the definition of the clustering procedure. In particular, \(H_W = \bigcup_{i \in W} H_i\) contains all the iterations that \(r_W\) covers. The available set can be computed by \(K_{\theta,*} \setminus H_W\). This concludes our proof.

It can be seen that in the above proof, the only properties that we used of the additional leakage \(H_i\) is that for \(i \in W\), \(H_i\) depends only on \(R_i, y_{>i}\) and that the number of choices for the output of the sequence of leakages \([H_i]_{i \in W}\) is bounded by some \(B\). Theorem 63 stated in Section 5.8.5 is restatement of Theorem 90 with respect to any such leakage function.

Note that the leakage functions \(\ell_i\) specified above can model leakage with respect to a random oracle \(h\), by letting \(\rho_i = h(R_i)\).

8.3.8 Proof of Lemma 84

For brevity, we denote \({\cal D}= {\cal D}_{2,i}\) and \({\cal D}_\mathsf{leak}= {\cal D}_{1,i}\) in the experiment \(\mathsf IsAGoodBundle\). We show that \({\cal D}\) has the geometric collision property. In other words, we would like to show that when \(R\) is chosen uniformly at random from universe \(\mathcal{U}\) then the distribution of these \(n_R = n_B - n_I\) elements has the geometric collision property even with the leakage.

Towards this goal, by applying Theorem 90 to this distribution, we show that even with the leakage, there are at least \(n_R/3\) elements that preserves enough min-entropy. We next show how these elements with sufficient min-entropy give the geometric collision property.

Remark 92 (Getting rid of tiny parts). Similar to [163], Remark 2, we can further require that each cluster should have a probability that is “not too small”. Therefore, we define a new leakage function \(f'\) by substituting the \(\epsilon\) in the above theorem with \(\epsilon/2\), and additionally letting \(f'(r) = \perp\) for all \(r\) such that \(y \in f(r)\) and \(\Pr_R[f(R) =y] < \epsilon n/(2|Im(f)|)\) (their total probability is at most \(\epsilon n/2\)), we obtain the following: \(f'\) satisfies all conditions in Theorem 90. Additionally, \(\forall y \in Im(f')\), we have \(\Pr_R[f'(R) =y] \geq \epsilon n / (2 |Im(f)|)\).

8.3.8.1 Fraction of blocks with high entropy.

Using Theorem 90, with setting \(\ell \geq 4n^3\) and assuming sufficient min-entropy of \(R\), we first show that one can ensure more than \(1/3\) fraction of the blocks having min-entropy at least \(1.5\lg(n)\), upon leaking the outcome of \(f'\) and all previous blocks.

First notice that with all but \(\epsilon n\) probability, \(f'(R) \neq \perp\). Therefore, it suffices to let \(\epsilon= 2^{-\kappa}\). Then, by setting \(\delta= 1\), we have \[\begin{aligned} \lg(|Im(f)|) &\leq n \cdot (2e)^{n/2} \cdot (n+{k_b})^{k_b} \cdot \left ( 2(\lg(\ell) + \lg (1/\epsilon)) /\delta \right )^{n}\\ &= \bigg(\lg(n) +n/2 \cdot \lg(2e) \bigg)+ {k_b} \cdot \lg (n+{k_b}) + n \cdot (1+\lg(\lg(\ell) + \kappa))\\ & < 3n/2 + 2 k_b \lg n + n (2 + \lg \kappa) < 0.5 n \lg n \end{aligned}\] for sufficiently large \(n\) with \(k_b = \Omega(\kappa)\) and \(n/k_b^2 = \Omega(\kappa)\).

Combining the above with Remark 92, we have \(\Pr_{{\cal D}_\mathsf{leak}}[f'(R) =y] \geq \epsilon n / (2 \cdot 2^{0.5 n \lg (n)})\) and for every \(y\in Im(f')\setminus\{\perp\}\). Moreover, for every \(r\) such that \(f'(r) = y\), we have \[\begin{aligned} \Pr_{{\cal D}}[r] &= \Pr_{{\cal D}_\mathsf{leak}}[r \mid y] = \frac{\Pr_{{\cal D}_\mathsf{leak}}[r \wedge y]}{\Pr_{{\cal D}_\mathsf{leak}}[y]} \le \frac{2^{-(\frac{8n}{9} \lg \ell+n)} }{(\epsilon n/2) \cdot 2^{-0.5n \lg n}} \nonumber \\ &= 2^{-(\frac{8}{9} \log \ell - 0.5 \lg n + 1) \cdot n} \cdot (2/\epsilon n), \label{eq:min-ent-leak_2} \end{aligned}\] which suggests \({\cal D}\) has min-entropy at least \((\frac{8}{9} \log \ell - 0.5 \lg n + 1) \cdot n - \lg (2/\epsilon n)\). We show that the following holds: The min-entropy of at least \(n' = n/3\) blocks, conditioned on the outcome of all prior blocks as well as \(y\), is at least \(\lg(n^{1.5})\).

Towards a contradiction, assume otherwise. Let \(V\) be the set of blocks with min-entropy at least \(\lg(n^{1.5})\) and let \(W\) be the set of blocks with min-entropy less than \(\lg(n^{1.5})\) (as defined in Theorem 90). We will show that if \(|V| \leq n/3\) there exists a point \(r\) in the support of \(\mathcal{{\cal D}}\) such that \(\Pr_{\mathcal{{\cal D}}}[r] > 2^{-(\frac{8}{9} \log \ell - 0.5 \lg n + 1) \cdot n} \cdot (2/\epsilon n)\), contradicting the min-entropy of \(\mathcal{{\cal D}}\).

First, find any value \(r^*_V\) such that \(\Pr_{\mathcal{{\cal D}}}[R_V =r^*_V] \geq \frac{1}{\ell^{|V|}}\). Note that \(r^*_V\) must exist since the support size of \(R_V\) is at most \(\ell^{|V|}\). Let \({\mathsf Supp}_W(r^*_V) = \{r: r_V = r^*_V \wedge \Pr_{\mathcal{{\cal D}}}[R = r] > 0 \}\). Then, we have \(\Pr_{{\cal D}}[R \in {\mathsf Supp}_W(r^*_V)] %\sum_{r \in \supp_W(r^*_V)} \Pr_{\mathcal{\DDD}}[R_V = r_V \wedge R_W = r_W] = \Pr[R_V = r^*_V] \geq \frac{1}{\ell^{|V|}}. %\geq \frac{1}{(4\cdot n^3)^{|V|}}.\)

Second, we show that \(|{\mathsf Supp}_W(r^*_V)| \le (2 \cdot n^{1.5})^{|W|}\). Consider any \(r \in {\mathsf Supp}_W(r^*_V)\). Applying the fourth condition of Theorem 90 with \(\delta= 1\), condition on any \(y\in Im(f')\setminus\{\perp\}\), for any \(i \in W\) and any fixing of \(R_{< i} = r_{< i}\), the number of elements in the support of \(R_i \mid r_{< i}\) is at most \(2 \cdot n^{1.5}\), which implies that \(|{\mathsf Supp}_W(r^*_V)|\) must be at most \((2 \cdot n^{1.5})^{|W|}\), since the positions for \(V\) are fixed to \(r^*_V\).

Based on the above two arguments, by the averaging argument, there must be some \(r^* \in {\mathsf Supp}_W(r^*_V)\) for which \(\Pr_{\mathcal{{\cal D}}}[R = r^*] \geq \frac{1}{(\ell)^{|V|}} \cdot \frac{1}{(2 \cdot n^{1.5})^{|W|}}.\) Therefore, we have \[\begin{aligned} -\lg \Pr_{{\cal D}}[r^*] & = |V| \lg (\ell) + |W| \lg (2 n^{1.5}) = |V| \lg \ell + |W| + 1.5 (n-|V|) \lg n \\ & \leq n + |V| \lg (\ell/n) + 1.5 n \lg n \leq n + n/3 \lg (\ell/n) + 1.5 n \lg n \\ & = n + n/3 \lg (\ell) - 1/3 n \lg n + 1.5 n \lg n, \end{aligned}\] where the second to last line follows assuming \(|V| < n/3\).

To reach contradiction to ([eq:min-ent-leak_2]), we require that \[n + n/3 \lg (\ell) - 1/3 n \lg n + 1.5 n \lg n \leq \left(\frac{8}{9} \lg \ell - 0.5 \lg n + 1 \right) \cdot n - \lg (2/\epsilon n).\] The above is implied by \(5/3 n \lg n \leq 5/9 n \lg \ell - \lg (2/\epsilon n).\)

When \(\ell \geq 4n^3\) the above is implied by \(5/3 n \lg n \leq 5/3 n \lg n + 10/3 n - \lg (2/\epsilon n),\) which is true for \(n \geq \lg(1/\epsilon) = \kappa\). Thus we reach contradiction to ([eq:min-ent-leak_2]). We therefore conclude that \(|V| \geq n/3\).

8.3.8.2 Geometric collision property.

Note that we can equivalently view \(R'\) in the support of \({\cal D}\) as a set of size \(n'\), or as a stream of elements of length \(n'\), where the element in the \(i\)-th block (for \(i \in [n']\)) comes from universe \(U_{i}\), and \(\{U_{1}, \ldots, U_{n'}\}\) are mutually disjoint. Taking the second view, given \(R',S'\) in the support of \({\cal D}\), we have that \(|R' \cap S'| = z\) if and only if there exists some set \(Z \subseteq [n']\) of size \(z\) such that (1) the ordered set of elements in the blocks of \(R'\) indexed by \(Z\) (denoted \(R'_{Z}\)) is equal to the ordered set of elements in the blocks of \(S'\) indexed by \(Z\) (denoted \(S'_{Z}\)) and (2) the set of elements in the blocks of \(R'\) indexed by \([n'] \setminus Z\) (denoted \(R'_{ \overline{Z}}\)) and the set of elements in the blocks of \(S'\) indexed by \([n'] \setminus Z\) (denoted \(S'_{ \overline{Z}}\)) are disjoint.

We are now ready to analyze the probability that \(|R' \cap S'| = z\) for \(R', S'\) drawn from \({\cal D}\), and for \(z \in [n']\): \[\begin{aligned} \Pr_{R', S' \leftarrow {\cal D}} [|R' \cap S'| = z] &= \sum_{Z \subseteq [n'], |Z| = z} \Pr_{R', S' \leftarrow {\cal D}} \left [ \left ( R'_{Z} = S'_{Z} \right ) \wedge \left ( R'_{\overline{Z}} \cap S'_{\overline{Z}}) = \emptyset \right ) \right]\\ &\leq \sum_{Z \subseteq [n'], |Z| = z} \Pr_{R', S' \leftarrow {\cal D}} [R'_{Z} = S'_{Z}] ~~\leq \sum_{Z \subseteq [n'], |Z| = z} \left ( \frac{1}{n^{1.5}} \right )^z \end{aligned}\] The second inequality holds since each element in the stream has min-entropy at least \(\lg (n^{1.5})\). Therefore, we have \(\Pr_{R', S' \leftarrow {\cal D}} [|R' \cap S'| = z] \le {{n/3} \choose z} \cdot \left ( \frac{1}{n^{1.5}} \right )^z \leq \left ( \frac{1}{n^{0.5}} \right )^z.\)

8.4 FACTS

8.4.1 Proofs for tail bound probabilistic analysis

We now complete the proofs of lemmas and theorems in 6.4.3.

We start with the following standard way to approximate numbers near 1 with exponentials.

Lemma 93. For any real constant \(\alpha>0\), and any real \(x\) with \(0<x\le\alpha\), we have \[\exp\left(-\tfrac{1}{\alpha}\ln\tfrac{1}{1-\alpha}\cdot{}x\right) \le 1-x < \exp(-x).\]

We also re-state this straightforward consequence of the Hoeffding/Chernoff bound on the sum of random variables:

Lemma 94. Let \(X_1,\ldots,X_n\) be independent Poisson trials, and write \(Y=\sum_i X_i\) for their sum. If \(\mathbb{E}[Y] = \mu\), then for any \(\delta>0\), each of \(\Pr(Y \ge \mu + \delta)\) and \(\Pr(Y \le \mu - \delta)\) are at most \(\exp(-2\delta^2/n)\).

We now recall and prove the building-block lemmas from 6.4.3.

Proof. From [eqn:pw], we know this probability is exactly \(p_w = 1 - \frac{{(s-u)}^{\underline{w}}}{{s}^{\underline{w}}},\) where \(w = v-\tau\) is the number of unfilled slots remaining. Using 93 we have \(\frac{{(s-u)}^{\underline{w}}}{{s}^{\underline{w}}} \le \left(1-\frac{u}{s}\right)^w \le \exp(-uw/s)\), which means that \[p_w \ge 1 - \exp\left(-\tfrac{u(v-\tau)}{s}\right) = 1 - \exp\left(-\tfrac{u\tau}{s}\cdot{}\left(\tfrac{v}{\tau}-1\right)\right).\] Applying the two lower bounds on \(\frac{u\tau}{s}\) and \(\tfrac{v}{\tau}\) from the lemma statement yields the claimed result. ◻

Proof. Using again [eqn:pw], the probability is exactly \(p_w = 1 - \frac{{(s-u)}^{\underline{w}}}{{s}^{\underline{w}}},\) where again \(w\le v\) is the number of unfilled slots for item \(x\). Then \[\tfrac{{(s-u)}^{\underline{w}}}{{s}^{\underline{w}}} \ge \tfrac{{(s-u)}^{\underline{v}}}{{s}^{\underline{v}}} \ge \left(\tfrac{s-u-v+1}{s-v+1}\right)^v > \left(1 - \tfrac{u}{s-v}\right)^v.\] Using upper bounds on \(\frac{v}{s}\) and \(u\) from the lemma statement, we have \[p_w < 1 - \left(1 - \tfrac{u}{s-v}\right)^v \le 1 - \left(1 - 3.66567{}\tfrac{1}{v}\right)^v.\] Finally, the lower bound on \(v\) from the lemma statement shows \(3.66567{}/v \le 0.00989{}\), and so we can finally use the lower exponential bound of 93 to obtain the stated result. ◻

Proof. The tipping point \(\tau\) is the expected number of slots filled in the table if \(t\) of the \(m\) total calls to were actually called on this particular item.

We can divide the calls to into two groups: the \(t\) calls for item \(x\), and the \(m-t\) calls for other items. The expected number of slots within \(x\)’s item set filled by the first group is at most \(0.974876t\), from 3.

For the second group, these calls to on unrelated items are distributed uniformly at random among all table indices, and so their expected fraction within this item set is the same as their overall fraction in the table. Therefore, the expected number of slots filled by calls to on other items is at most \[\frac{(m-t)v}{s} < \frac{mv}{s} \le \frac{7.409}{96} t.\]

By linearity of expectation, we can sum these two to obtain an upper bound on the total expected tipping point as given in the lemma statement. ◻

Now we can proceed to the proofs of the main theorems on the accuracy of the CCBF.

Proof. Let \(\tau_t\) be the tipping point for any actual number \(m\le n\) of total set bits in the table \(T\) and for the given threshold \(t\). And consider random variables \(X_1,\ldots,X_v\) for the \(v\) slots assigned to item \(x\), where each \(X_1\) is 0 or 1 depending on whether the corresponding slot in table \(T\) is 0 or 1. We want to know the probability that the sum of the \(X_i\)’s is at least \(\tau_t\), which is what would cause \(\mathsf{TestCount}(x,t)\) to produce a false positive.

Let \(k = t - 2.1\sqrt{\lambda t}\) be the actual number of calls to on item \(x\), and write \(\tau_k\) for the tipping point at threshold \(k\). By definition and the exact calculations for \(\tau_k\) outlined earlier, we know that \(\mathbb{E}[\sum X_i] = \tau_k\).

The difference between these two tipping points \(\tau_t - \tau_k\) is the expected number of extra slots filled by \(t-k\) calls to , which from 2 is at least \[0.956414(t-k) = 0.956414{}\cdot{}2.1{}\sqrt{\lambda t} \ge \sqrt{\tfrac{\lambda v}{2}},\] where in the last step we used the upper bound on \(v\) from the assumptions of the theorem.

The variables \(X_i\) are not independent, but they are negatively correlated, meaning that whenever one slot is filled, it only decreases the likelihood that another is filled; intuitively, this is because there are now fewer chances to fill the other slot. Therefore we can apply the Hoeffding bound in this direction (94) to say that \[\Pr\left(\sum X_i \ge \tau_k + \sqrt{\tfrac{\lambda v}{2}}\right) \le \exp(-\lambda),\] as required. ◻

Proof. Writing \(k\) for the actual number of complaints given in [eqn:fn], we need a tail bound on the probability that, after \(k\) calls to \(\mathsf{Increment}{}\) on the same item \(x\), there are still fewer than \(1.0520553{}t\) slots of \(x\)’s item set filled in, where the latter constant comes from applying the upper bound on the tipping point from 4.

For this, we need a lower bound on the expected number of bits set after \(k\) calls to on item \(x\); from 2 this is at least \(0.956414{}k\).

Now we can apply the Hoeffding bound (94), with \(\mu = 0.956414{}k\) and \(\mu+\delta=1.0520553{}t\ge\tau\) to see that the probability that less than \(\tau\) bits of \(x\)’s user set are flipped is at most \[\begin{aligned} &\exp\left(-2(1.0520553{}t-0.956414{}k)^2/k\right) \\ \le& \exp\left(-2\left(0.38\lambda + 0.66\sqrt{\lambda t}\right)^2/k\right)\\ \le& \exp\left(-\frac{.28\lambda^2 + \lambda\sqrt{\lambda t} + .87\lambda t}% {.4\lambda + .7\sqrt{\lambda t} + 1.1t}\right) \\ \le& \exp(-.7\lambda) \le 2^{-\lambda}. \end{aligned}\] ◻

8.5 BoSS

8.5.1 Simulator for the BoSS protocol

To prove that our BoSS protocol UC-realizes \(\mathcal{F}_{\mathsf{TRACK}}\) in the \((\mathcal{F}_{\mathsf{KR}}, \mathcal{F}_{\mathsf{2PC}}^{\mathit{\cdot}})\)-hybrid model under static corruptions, we construct an ideal-world simulator \({\mathsf{Sim}}\) that interfaces between \(\mathcal{F}_{\mathsf{TRACK}}\) (and the ideal router) on one side and the real-world adversary \(\mathcal{A}\) on the other, interacting with \(\mathcal{A}\) in place of the real-world router, all honest parties, and all instances of \(\mathcal{F}_{\mathsf{KR}}\) and \(\mathcal{F}_{\mathsf{2PC}}^{\mathit{\cdot}}\).

8.5.1.1 Router syntax.

Recall that in the SUC model all messages between parties or between one party and an ideal functionality is sent via a router, which immediately forwards the message metadata (sender, recipient, and public header) to the adversary/simulator, and only delivers it to the recipient when the adversary/simulator decides to do so.

For our simulator \({\mathsf{Sim}}\), this means there are five kinds of router messages to handle, where party \(P\) sends to party \(Q\) a header+private message \((h;x)\):

8.5.1.2 Simulated honest behavior.

The simulator \({\mathsf{Sim}}\) will maintain state for all honest parties and ideal sub-functionalities and (except where otherwise specified) faithfully execute honest protocols and sub-functionality code as written, routing all communication via \(\mathcal{A}\).

Unless a rule for \((\mathrm{RouterMsg}, P, Q, h)\) is specified below, \({\mathsf{Sim}}\)’s default response to the ideal-world router is to immediately return \((\mathrm{deliver})\); when a rule is specified, \({\mathsf{Sim}}\) withholds \((\mathrm{deliver})\) on that message until the rule completes.


Simulator 1 (Complaint Tracking Simulator \({\mathsf{Sim}}\)). Init. Simulation of moderator initialization (1):

  1. Upon receiving \((\mathrm{RouterMsg}, \mathsf{mod}_0, \mathcal{F}_{\mathsf{TRACK}}, \mathrm{init}, \mathsf{sid})\) from the ideal router (when \(\mathsf{mod}_0\) is honest), note that there is no private input, so \({\mathsf{Sim}}\) simply runs the honest \(\mathsf{mod}_0\) protocol from 1 (including the \(\mathcal{F}_{\mathsf{2PC}}^{\mathit{\cdot}}\) and \(\mathcal{F}_{\mathsf{KR}}\) sub-functionality invocations), and returns \((\mathrm{deliver})\) to the ideal router once simulated \(\mathsf{mod}_0\) sets \(\mathrm{initialized}\gets \mathsf{complete}\) in 1.

  2. Similarly, when \(\mathsf{mod}_1\) is honest, \({\mathsf{Sim}}\) runs the honest \(\mathsf{mod}_1\) protocol from 1 when \(\mathcal{A}\) delivers \((\mathrm{RouterMsg}, \mathsf{mod}_0, \mathsf{mod}_1, \mathsf{sid}||\mathsf{init}, \mathrm{init})\) from simulated honest \(\mathsf{mod}_0\) or sends \((\mathrm{CorruptMsg}, \mathsf{mod}_0, \mathsf{mod}_1, \mathsf{sid}||\mathsf{init}, \mathrm{init};)\) from a corrupted \(\mathsf{mod}_0\) (in the latter case, \({\mathsf{Sim}}\) also sends \((\mathrm{init}, \mathsf{sid};)\) to \(\mathcal{F}_{\mathsf{TRACK}}\) on behalf of \(\mathsf{mod}_0\) once \(\mathsf{mod}_1\) sets \(\mathrm{initialized}\gets \mathsf{complete}\)).

  3. In any case, \({\mathsf{Sim}}\) saves the moderator keys \((\mathsf{spk}_\mathsf{mod}, \mathsf{ssk}_\mathsf{mod}, \mathsf{ssk}_{\mathsf{mod}_0}, \mathsf{ssk}_{\mathsf{mod}_1})\) and \((\mathsf{kpk}_\mathsf{mod}, \mathsf{ksk}_\mathsf{mod}, \mathsf{ksk}_{\mathsf{mod}_0}, \mathsf{ksk}_{\mathsf{mod}_1})\) created by running \(\mathsf{Sign}.\mathsf{KeyGen}\) and \(\mathsf{KEM}.\mathsf{KeyGen}\) inside the two \(\mathcal{F}_{\mathsf{2PC}}^{\mathit{\cdot}}\) invocations.



Simulator 2 (Client registration). Register. Simulation of client registration (2):

  1. Upon receiving \((\mathrm{RouterMsg}, c, \mathcal{F}_{\mathsf{TRACK}}, \mathrm{register}, \mathsf{sid})\) from the ideal router (when \(c\) is honest), note that there is no private input, so \({\mathsf{Sim}}\) honestly runs the client protocol from 2, remembering the generated key pairs \((\mathsf{spk}_c, \mathsf{ssk}_c)\) and \((\mathsf{epk}_c, \mathsf{esk}_c)\) as well as \((\sigma_{\mathsf{spk}_{c}}, \sigma_{\mathsf{auth}_{c}})\), and returns \((\mathrm{deliver})\) to the ideal router once simulated \(c\) completes 2.

  2. \({\mathsf{Sim}}\) also runs the moderators’ protocol from 2 honestly for each honest moderator \(\mathsf{mod}_i\).



Simulator 3 (CreateMsgLabel). CreateMsgLabel. Simulation of label creation (3):

  1. Upon receiving \((\mathrm{HonestSend}, \mathsf{sid}, \mathsf{sender})\) from \(\mathcal{F}_{\mathsf{TRACK}}\):

    1. Create a dummy recipient key pair \((\mathsf{epk}_{\mathsf{dummy}}, \mathsf{esk}_{\mathsf{dummy}}) \gets {\mathsf Enc}.\mathsf{KeyGen}\) if not created already.

    2. Simulate the routing of a \(\mathrm{lookup}\) call to \(\mathcal{F}_{\mathsf{KR}}\) via \(\mathcal{A}\) on behalf of \(\mathsf{sender}\).

    3. Sample a random plaintext of the same length as real \((\mathsf{tag}_0, \ldots, \mathsf{tag}_{f_{\mathsf{limit}}-2}, \mathsf{stamp})\), encrypt it as \(\mathsf{ct}\gets {\mathsf Enc}_{\mathsf{epk}_{\mathsf{dummy}}}(\cdots)\), and sign \(\sigma_{\mathsf{ct}}\gets \mathsf{Sign}_{\mathsf{ssk}_{\mathsf{sender}}}(\mathsf{ct})\) using \(\mathsf{ssk}_{\mathsf{sender}}\) remembered from \(\mathsf{sender}\)’s registration.

    4. Construct the full label \(\mathsf{label}\gets (\mathsf{ct}, \sigma_{\mathsf{ct}}, \mathsf{spk}_{\mathsf{sender}}, \sigma_{\mathsf{auth}_{\mathsf{sender}}})\), record \(\mathsf{label}\) as an honest label, and return \((\mathsf{label})\) to \(\mathcal{F}_{\mathsf{TRACK}}\).

  2. Upon receiving \((\mathrm{CorruptedSend}, \mathsf{sid}, \mathsf{sender}, \mathsf{recipient}, \mathsf{contents})\) from \(\mathcal{F}_{\mathsf{TRACK}}\):

    1. Run the honest \(\mathrm{CreateMsgLabel}\) protocol (3) on behalf of \(\mathsf{sender}\) using the leaked \((\mathsf{recipient}, \mathsf{contents})\) and setting \(\mathsf{forwardOf}= \bot\), remembering the created \((\sigma_{\mathsf{edge}}, \mathsf{label})\) pair along with the dummy tag ciphertexts \((\mathsf{tag}_0, \ldots, \mathsf{tag}_{f_{\mathsf{limit}}-2})\) for later reference, and return the resulting \((\mathsf{label})\) to \(\mathcal{F}_{\mathsf{TRACK}}\).



Simulator 4 (CheckMsgLabel). CheckMsgLabel. Simulation of label verification (4):

  1. Upon receiving \((\mathrm{CorruptedReceive}, \mathsf{sid}, \mathsf{label}, \mathsf{sender}, \mathsf{recipient}, \mathsf{contents})\) from \(\mathcal{F}_{\mathsf{TRACK}}\):

    1. Run the honest \(\mathrm{CheckMsgLabel}\) protocol (4) as \(\mathsf{recipient}\) with inputs \((\mathsf{label}, \mathsf{sender}, \mathsf{contents})\), saving the response (\(\mathsf{LabelOK}\) or \(\mathsf{LabelBad}\)) without returning it yet.

    2. If the response was \((\mathsf{LabelOK})\), construct \(\mathsf{pt\text{-}tag}\gets ({c_{\mathsf{KEM}}}, \mathsf{nonce}, \sigma_{\mathsf{edge}}, \mathsf{spk}_{\mathsf{sender}}, \sigma_{\mathsf{spk}_{\mathsf{sender}}})\) from the decrypted \(\mathsf{stamp}\) (as in [boss:prot:originate,boss:prot:report]) and call subroutine \(\mathrm{FollowCorruptTags}(\mathsf{pt\text{-}tag}, (\mathsf{tag}_0, \ldots, \mathsf{tag}_{f_{\mathsf{limit}}-2}), \allowbreak H(\mathsf{contents}), \mathsf{spk}_{\mathsf{recipient}}, \mathsf{contents}, \mathsf{label})\).

    3. Return \((\mathrm{OK})\) to \(\mathcal{F}_{\mathsf{TRACK}}\).



Simulator 5 (CreateReport). CreateReport. Simulation of report creation (5):

  1. Upon receiving \((\mathrm{Reporting}, \mathsf{sid}, \mathsf{client})\) from \(\mathcal{F}_{\mathsf{TRACK}}\):

    1. Generate \(k_{\mathsf{AEAD}}\gets \mathsf{AEAD}.\mathsf{KeyGen}\), use it to encrypt a random plaintext of the same length as \((\mathsf{tag}_0, \ldots, \mathsf{tag}_{f_{\mathsf{limit}}-2}, \mathsf{pt\text{-}tag}, H(\mathsf{contents}), \mathsf{spk}_{\mathsf{client}}, \sigma_{\mathsf{spk}_{\mathsf{client}}})\) in 5 to obtain \(\mathsf{ct}\), and encapsulate \({c_{\mathsf{KEM}}}' \gets \mathsf{KEM}.\mathsf{Encaps}_{\mathsf{kpk}_\mathsf{mod}}(k_{\mathsf{AEAD}})\).

    2. Remember \(\mathsf{report}= (\mathsf{ct}, {c_{\mathsf{KEM}}}')\) (and its plaintext) as an honest report, and return \((\mathsf{report})\) to \(\mathcal{F}_{\mathsf{TRACK}}\).



Simulator 6 (Audit). Audit. Simulation of report auditing (6):

  1. Upon receiving \((\mathrm{RouterMsg}, \mathsf{mod}_0, \mathcal{F}_{\mathsf{TRACK}}, \mathrm{Audit}, \mathsf{sid}, \mathsf{reports})\) from the ideal router (when \(\mathsf{mod}_0\) is honest):

    1. Save \(\mathsf{reports}\) and loop through each \(\mathsf{report}_i = (\mathsf{ct}_i, {c_{\mathsf{KEM}}}_i) \in \mathsf{reports}\):

      1. If \(\mathsf{report}_i\) is a saved honest report, or if \(k_{\mathsf{AEAD}}\gets \mathsf{KEM}.\mathsf{Decaps}_{\mathsf{ksk}_\mathsf{mod}}({c_{\mathsf{KEM}}}_i)\), \((\mathsf{tag}_0, \ldots, \mathsf{tag}_{f_{\mathsf{limit}}-2}, \mathsf{pt\text{-}tag}, \mathsf{chash}, \mathsf{spk}_{\mathsf{recipient}}, \allowbreak\sigma_{\mathsf{spk}_{\mathsf{recipient}}}) \gets \mathsf{AEAD}.{\mathsf Dec}_{k_{\mathsf{AEAD}}}(\mathsf{ct}_i)\), or \(\mathsf{Sign}.\mathsf{Verify}_{\mathsf{spk}_\mathsf{mod}}(\mathsf{spk}_{\mathsf{recipient}}, \sigma_{\mathsf{spk}_{\mathsf{recipient}}})\) fails, ignore it.

      2. Otherwise, call \((\mathsf{label}, \mathsf{trunc}) \gets \mathrm{FollowCorruptTags}(\mathsf{pt\text{-}tag}, \allowbreak(\mathsf{tag}_0, \ldots, \mathsf{tag}_{f_{\mathsf{limit}}-2}), \mathsf{chash}, \mathsf{spk}_{\mathsf{recipient}}, \bot, \bot)\). If \(\mathsf{label}\ne \bot\), look up \(\mathsf{recipient}\) for \(\mathsf{spk}_{\mathsf{recipient}}\) and (if \(\mathsf{report}_i\) is not already recorded in \(\mathcal{F}_{\mathsf{TRACK}}\)) send \((\mathrm{CreateReport}, \mathsf{sid}; \mathsf{label}, (\mathsf{report}_i, \mathsf{trunc}))\) to \(\mathcal{F}_{\mathsf{TRACK}}\) on behalf of \(\mathsf{recipient}\).

    2. Return \((\mathrm{deliver})\) to the ideal router.

  2. Upon receiving \((\mathrm{CorruptMsg}, \mathsf{mod}_0, \mathsf{mod}_1, \mathsf{sid}||\mathsf{reports}, \mathsf{reports};)\) from a corrupted \(\mathsf{mod}_0\):

    1. If \(\mathrm{initialized}= \mathsf{complete}\) and \(\mathrm{audited}\) is not set for \(\mathsf{mod}_1\), perform the same loop over \(\mathsf{reports}\) as above, and then send \((\mathrm{Audit}, \mathsf{sid}, \mathsf{reports};)\) to \(\mathcal{F}_{\mathsf{TRACK}}\) on behalf of \(\mathsf{mod}_0\).

  3. Upon receiving \((\mathrm{RouterMsg}, \mathcal{F}_{\mathsf{TRACK}}, \mathsf{mod}_i, \mathrm{AuditResult}, \mathsf{reportedClients})\) from the ideal router for either moderator for the first time:

    1. Look up the \(\mathsf{spk}_c\) values (saved during registration) for each \(c \in \mathsf{reportedClients}\), and randomly shuffle these in a list \(L\) of length \(|\mathsf{reports}| \cdot f_{\mathsf{limit}}\) padded with zeros.

    2. Simulate the honest \(\mathrm{Audit}\) protocol (6) on behalf of all honest moderators, except that in the \(\mathcal{F}_{\mathsf{2PC}}^{\mathit{\mathrm{ProcessReports}}}\) call, substitute \(L\) as the output.

    3. Once simulated \(\mathsf{mod}_i\) sets \(\mathrm{audited}\gets \mathsf{complete}\) in 6, return \((\mathrm{deliver})\) to the ideal router.



Simulator 7 (FollowCorruptTags). Subroutine \(\mathrm{FollowCorruptTags}(\mathsf{pt\text{-}tag}, (\mathsf{tag}_0, \ldots, \mathsf{tag}_{f_{\mathsf{limit}}-2}), \mathsf{chash},\allowbreak \mathsf{spk}_{\mathsf{recipient}}, \mathsf{contents}, \mathsf{label}_{\mathsf{in}})\). Validates a tag chain from a corrupted party and adds any new edges to \(\mathcal{F}_{\mathsf{TRACK}}\)’s messaging graph:

  1. Phase 1 (backward tag validation): Initialize an empty list \(T \gets \emptyset\) and set \(d \gets 0\). For \(j\) going from \(f_{\mathsf{limit}}-2\) down to \(-1\):

    1. Parse \(\mathsf{pt\text{-}tag}= ({c_{\mathsf{KEM}}}, \mathsf{nonce}, \sigma_{\mathsf{edge}}, \mathsf{spk}_{\mathsf{sender}}, \sigma_{\mathsf{spk}_{\mathsf{sender}}})\).

    2. Verify \(\mathsf{Sign}.\mathsf{Verify}_{\mathsf{spk}_{\mathsf{sender}}}(({c_{\mathsf{KEM}}}, \mathsf{nonce}, \mathsf{chash}, \mathsf{spk}_{\mathsf{recipient}}), \sigma_{\mathsf{edge}})\) and \(\mathsf{Sign}.\mathsf{Verify}_{\mathsf{spk}_\mathsf{mod}}(\mathsf{spk}_{\mathsf{sender}}, \sigma_{\mathsf{spk}_{\mathsf{sender}}})\), and look up the registered clients \(\mathsf{sender}, \mathsf{recipient}\) for \(\mathsf{spk}_{\mathsf{sender}}, \mathsf{spk}_{\mathsf{recipient}}\). If any check or lookup fails, break out of the loop.

    3. Prepend \((\sigma_{\mathsf{edge}}, \mathsf{sender}, \mathsf{recipient})\) to \(T\).

    4. If \(\mathsf{sender}\) is honest (so \((\sigma_{\mathsf{edge}}, \mathsf{label})\) and dummy tags \((\mathsf{tag}_0', \ldots, \mathsf{tag}_{f_{\mathsf{limit}}-2}')\) were saved during a \(\mathrm{CorruptedSend}\) in 3), let \(m \in \{0, \ldots, j+1\}\) be the largest integer such that \(\mathsf{tag}_{j-r} = \mathsf{tag}_{f_{\mathsf{limit}}-2-r}'\) for all \(0 \le r < m\), set \(d \gets m\), and break out of the loop.

    5. If \(j \ge 0\), decapsulate \(k_{\mathsf{AEAD}}\gets \mathsf{KEM}.\mathsf{Decaps}_{\mathsf{ksk}_\mathsf{mod}}({c_{\mathsf{KEM}}})\), compute \(\mathsf{tag}_r \gets \mathsf{AEAD}.{\mathsf Dec}_{k_{\mathsf{AEAD}}}(\mathsf{tag}_r; \mathsf{spk}_{\mathsf{sender}})\) for \(r \in \{0, \ldots, j-1\}\), decrypt \(\mathsf{pt\text{-}tag}\gets \mathsf{AEAD}.{\mathsf Dec}_{k_{\mathsf{AEAD}}}(\mathsf{tag}_j; \mathsf{spk}_{\mathsf{sender}})\), and set \(\mathsf{spk}_{\mathsf{recipient}} \gets \mathsf{spk}_{\mathsf{sender}}\). If decapsulation or any decryption fails, break out of the loop.

  2. Phase 2 (forward edge creation): Set \(\mathsf{forwardOf}\gets \bot\). For the \(i\)-th entry \((\sigma_{\mathsf{edge}}, \mathsf{sender}, \mathsf{recipient})\) in \(T\) (from oldest, \(i=1\), to newest, \(i=|T|\)):

    1. Look up \(\sigma_{\mathsf{edge}}\) in \({\mathsf{Sim}}\)’s stored \((\sigma_{\mathsf{edge}}, \mathsf{label})\) pairs.

    2. If found, set \(\mathsf{forwardOf}\gets \mathsf{label}\) (and if \(\mathsf{contents}= \bot\), set \(\mathsf{contents}\gets \mathrm{cont}(\mathsf{label})\)).

    3. If not found (meaning \(\mathsf{sender}\) is corrupted):

      1. If \(\mathsf{contents}= \bot\), set \(\mathsf{contents}\gets \mathsf{chash}\).

      2. If \(i = |T|\) and \(\mathsf{label}_{\mathsf{in}} \ne \bot\), set \(\mathsf{label}\gets \mathsf{label}_{\mathsf{in}}\); otherwise sample a fresh unused \(\mathsf{label}\).

      3. Set \(\mathsf{trunc} \gets \min(f_{\mathsf{limit}}, d + i)\), send \((\mathrm{CreateMsgLabel}, \mathsf{sid}; \mathsf{recipient}, \mathsf{contents}, \mathsf{forwardOf}, \allowbreak(\mathsf{label}, \mathsf{trunc}))\) to \(\mathcal{F}_{\mathsf{TRACK}}\) on behalf of \(\mathsf{sender}\), and send \((\mathrm{CheckMsgLabel}, \mathsf{sid}; \mathsf{label}, \mathsf{sender}, \mathsf{contents})\) to \(\mathcal{F}_{\mathsf{TRACK}}\) on behalf of \(\mathsf{recipient}\) (if \(\mathsf{recipient}\) is corrupted).

      4. Store \((\sigma_{\mathsf{edge}}, \mathsf{label})\) and set \(\mathsf{forwardOf}\gets \mathsf{label}\).

  3. Return \((\mathsf{forwardOf}, \min(f_{\mathsf{limit}}, d + |T|))\).


9 Conclusion

This dissertation investigates how privacy-preserving computation can be made efficient and practical for large-scale applications while providing rigorous security and privacy guarantees. Towards this goal, we explore two complementary directions: the design and analysis of secure protocols with sublinear communication and the development of practical privacy-preserving systems for accountability in end-to-end encrypted messaging.

In the first direction, we demonstrate how the underlying structures of different computational tasks can be exploited to achieve communication efficiency. For secure search over encrypted datasets, we exploit the sparsity of search results to develop compressed oblivious encodings that enable efficient retrieval in a constant number of communication rounds while reducing the use of expensive homomorphic operations. For secure collaborative sampling, we exploit the structures of different target distributions to develop sublinear-communication protocols and investigate the fundamental limitations and privacy trade-offs associated with achieving such efficiency. Our results also demonstrate how these techniques can be applied to the distributed realization of the exponential mechanism for differential privacy. For private set similarity estimation, we develop efficient protocols for differentially private estimation using Min-Hash and show that, under appropriate conditions, the inherent randomness of an existing communication-efficient algorithm can itself provide meaningful privacy guarantees without additional noise. Together, these works demonstrate the importance of understanding the structures of both the underlying computations and the input distributions when designing and analyzing efficient privacy-preserving protocols.

In the second direction, we demonstrate how privacy-preserving accountability mechanisms can be designed to operate efficiently in large-scale end-to-end encrypted messaging systems. FACTS and BoSS provide two complementary accountability functionalities, identifying the originators of widely reported messages and identifying users who repeatedly spread unwanted content, respectively. Through different approaches, ranging from probabilistic data structures to optimized secure computation protocols, we show that threshold-based accountability can be achieved with practical computational and communication costs while preserving the security and privacy properties of the underlying messaging systems, except for the information disclosed as specified by their respective security models. In particular, we demonstrate how the main server-side costs of complaint management and auditing can be made dependent on the reporting workload rather than the overall messaging activity, while keeping the additional overhead imposed on clients small.

A common theme across these works is that the efficiency of privacy-preserving computation can be significantly improved by taking into consideration the specific requirements and structures of the desired functionalities, rather than relying solely on general-purpose cryptographic techniques. In some cases, this allows us to achieve substantial efficiency improvements without changing the desired functionality or weakening the privacy guarantees. In other cases, carefully designed approximations or additional leakage may enable more efficient solutions. Our results highlight the importance of formally characterizing these trade-offs and understanding when such relaxations are necessary, what information they may reveal, and whether they are acceptable for the intended applications.

Several interesting directions remain open for future research. For secure search, it would be interesting to explore new encoding schemes that further reduce communication and computational costs or achieve better functionality, as well as investigate other applications of compressed oblivious encodings beyond secure search. For secure collaborative sampling, our work opens up opportunities to explore more types of sampling functionalities and to investigate how communication-efficient secure sampling techniques can be applied to a broader range of privacy-preserving computations, particularly in distributed statistical analysis and differential privacy. For Min-Hash, a natural direction is to extend our analysis to other sketching and randomized algorithms and investigate whether their inherent randomness can provide meaningful privacy guarantees under differential privacy or other related privacy notions. Furthermore, the strong chain rule for min-entropy and other analytical techniques developed in our work may be of independent interest and find applications in other problems involving uncertainty about private inputs and information leakage.

For privacy-preserving accountability in end-to-end encrypted messaging, there are several directions to explore from both cryptographic and system design perspectives. One interesting direction is to investigate whether more complex accountability functionalities, such as those provided by BoSS, can be efficiently realized in a single-server setting. Alternative cryptographic approaches, such as those based on zero-knowledge proofs, may also offer new ways of realizing or extending privacy-preserving accountability functionalities. Beyond complaint collection and threshold-based auditing, it would be interesting to explore how privacy-preserving mechanisms can support post-audit operations, such as allowing identified users to appeal audit results or providing verifiable evidence that an audit result is supported by valid reports, without compromising the privacy of other users or revealing unnecessary information about their communications. More broadly, the design and deployment of accountability mechanisms in end-to-end encrypted messaging systems raise important ethical and policy questions that go beyond computer science. We hope that our results can contribute to these discussions by providing a better understanding of what accountability functionalities can be achieved while limiting the information disclosed about users and their communications.

Overall, this dissertation contributes both theoretical foundations and practical systems toward making privacy-preserving computation efficient at scale. We hope that the techniques, theoretical results, and design principles developed in this dissertation will serve as building blocks for a broader range of efficient and practical privacy-preserving applications.

10 References

[1]
C. Dwork, “Differential privacy,” in Automata, languages and programming: 33rd international colloquium, ICALP 2006, venice, italy, july 10-14, 2006, proceedings, part II 33, Springer, 2006, pp. 1–12. doi: 10.1007/11787006_1.
[2]
C. Dwork, F. McSherry, K. Nissim, and A. Smith, “Calibrating noise to sensitivity in private data analysis,” in TCC 2006, S. Halevi and T. Rabin, Eds., in LNCS, vol. 3876. Springer, Heidelberg, 2006, pp. 265–284. doi: 10.1007/11681878_14.
[3]
C. Dwork and A. Roth, “The algorithmic foundations of differential privacy,” Found. Trends Theor. Comput. Sci., vol. 9, no. 3–4, pp. 211–407, 2014, doi: 10.1561/0400000042.
[4]
M. Yasuda, T. Shimoyama, J. Kogure, K. Yokoyama, and T. Koshiba, “Secure pattern matching using somewhat homomorphic encryption,” in CCSW’13, proceedings of the 2013 ACM cloud computing security workshop, co-located with CCS 2013, berlin, germany, november 4, 2013, A. Juels and B. Parno, Eds., ACM, 2013, pp. 65–76. doi: 10.1145/2517488.2517497.
[5]
J. H. Cheon, M. Kim, and K. E. Lauter, “Homomorphic computation of edit distance,” in FC 2015 workshops, M. Brenner, N. Christin, B. Johnson, and K. Rohloff, Eds., in LNCS, vol. 8976. Springer, Heidelberg, 2015, pp. 194–212. doi: 10.1007/978-3-662-48051-9_15.
[6]
J. H. Cheon, M. Kim, and M. Kim, “Optimized search-and-compute circuits and their application to query evaluation on encrypted data,” IEEE Trans. Inf. Forensics Secur., vol. 11, no. 1, pp. 188–199, 2016, doi: 10.1109/TIFS.2015.2483486.
[7]
M. Kim, H. T. Lee, S. Ling, B. H. M. Tan, and H. Wang, “Private compound wildcard queries using fully homomorphic encryption,” IEEE Trans. Dependable Secur. Comput., vol. 16, no. 5, pp. 743–756, 2019, doi: 10.1109/TDSC.2017.2763593.
[8]
D. X. Song, D. Wagner, and A. Perrig, “Practical techniques for searches on encrypted data,” in 2000 IEEE symposium on security and privacy, IEEE Computer Society Press, May 2000, pp. 44–55. doi: 10.1109/SECPRI.2000.848445.
[9]
D. Boneh, G. Di Crescenzo, R. Ostrovsky, and G. Persiano, “Public key encryption with keyword search,” in EUROCRYPT 2004, C. Cachin and J. Camenisch, Eds., in LNCS, vol. 3027. Springer, Heidelberg, May 2004, pp. 506–522. doi: 10.1007/978-3-540-24676-3_30.
[10]
R. Curtmola, J. A. Garay, S. Kamara, and R. Ostrovsky, “Searchable symmetric encryption: Improved definitions and efficient constructions,” in ACM CCS 2006, A. Juels, R. N. Wright, and S. De Capitani di Vimercati, Eds., ACM Press, 2006, pp. 79–88. doi: 10.1145/1180405.1180417.
[11]
M. Chase and S. Kamara, “Structured encryption and controlled disclosure,” in ASIACRYPT 2010, M. Abe, Ed., in LNCS, vol. 6477. Springer, Heidelberg, 2010, pp. 577–594. doi: 10.1007/978-3-642-17373-8_33.
[12]
Y. Ishai, E. Kushilevitz, S. Lu, and R. Ostrovsky, “Private large-scale databases with distributed searchable symmetric encryption,” in CT-RSA 2016, K. Sako, Ed., in LNCS, vol. 9610. Springer, Heidelberg, 2016, pp. 90–107. doi: 10.1007/978-3-319-29485-8_6.
[13]
D. S. Roche, D. Apon, S. G. Choi, and A. Yerukhimovich, “POPE: Partial order preserving encoding,” in ACM CCS 2016, E. R. Weippl, S. Katzenbeisser, C. Kruegel, A. C. Myers, and S. Halevi, Eds., ACM Press, 2016, pp. 1131–1142. doi: 10.1145/2976749.2978345.
[14]
V. Pappas et al., “Blind seer: A scalable private DBMS,” in 2014 IEEE symposium on security and privacy, IEEE Computer Society Press, May 2014, pp. 359–374. doi: 10.1109/SP.2014.30.
[15]
D. Cash, S. Jarecki, C. S. Jutla, H. Krawczyk, M.-C. Rosu, and M. Steiner, “Highly-scalable searchable symmetric encryption with support for Boolean queries,” in CRYPTO 2013, part i, R. Canetti and J. A. Garay, Eds., in LNCS, vol. 8042. Springer, Heidelberg, 2013, pp. 353–373. doi: 10.1007/978-3-642-40041-4_20.
[16]
B. Fuller et al., “SoK: Cryptographically protected database search,” in 2017 IEEE symposium on security and privacy, IEEE Computer Society Press, May 2017, pp. 172–191. doi: 10.1109/SP.2017.10.
[17]
O. Pandey and Y. Rouselakis, “Property preserving symmetric encryption,” in EUROCRYPT 2012, D. Pointcheval and T. Johansson, Eds., in LNCS, vol. 7237. Springer, Heidelberg, 2012, pp. 375–391. doi: 10.1007/978-3-642-29011-4_23.
[18]
M. Bellare, A. Boldyreva, and A. O’Neill, “Deterministic and efficiently searchable encryption,” in CRYPTO 2007, A. Menezes, Ed., in LNCS, vol. 4622. Springer, Heidelberg, 2007, pp. 535–552. doi: 10.1007/978-3-540-74143-5_30.
[19]
A. Boldyreva, N. Chenette, Y. Lee, and A. O’Neill, “Order-preserving symmetric encryption,” in EUROCRYPT 2009, A. Joux, Ed., in LNCS, vol. 5479. Springer, Heidelberg, 2009, pp. 224–241. doi: 10.1007/978-3-642-01001-9_13.
[20]
A. Boldyreva, N. Chenette, and A. O’Neill, “Order-preserving encryption revisited: Improved security analysis and alternative solutions,” in CRYPTO 2011, P. Rogaway, Ed., in LNCS, vol. 6841. Springer, Heidelberg, 2011, pp. 578–595. doi: 10.1007/978-3-642-22792-9_33.
[21]
M. S. Islam, M. Kuzu, and M. Kantarcioglu, “Access pattern disclosure on searchable encryption: Ramification, attack and mitigation,” in NDSS 2012, The Internet Society, 2012.
[22]
P. Grubbs, R. McPherson, M. Naveed, T. Ristenpart, and V. Shmatikov, “Breaking web applications built on top of encrypted data,” in ACM CCS 2016, E. R. Weippl, S. Katzenbeisser, C. Kruegel, A. C. Myers, and S. Halevi, Eds., ACM Press, 2016, pp. 1353–1364. doi: 10.1145/2976749.2978351.
[23]
P. Grubbs, K. Sekniqi, V. Bindschaedler, M. Naveed, and T. Ristenpart, “Leakage-abuse attacks against order-revealing encryption,” in 2017 IEEE symposium on security and privacy, IEEE Computer Society Press, May 2017, pp. 655–672. doi: 10.1109/SP.2017.44.
[24]
B. Chor, E. Kushilevitz, O. Goldreich, and M. Sudan, “Private information retrieval,” J. ACM, vol. 45, no. 6, pp. 965–981, 1998, doi: 10.1145/293347.293350.
[25]
A. C.-C. Yao, “How to generate and exchange secrets (extended abstract),” in 27th FOCS, IEEE Computer Society Press, 1986, pp. 162–167. doi: 10.1109/SFCS.1986.25.
[26]
O. Goldreich and R. Ostrovsky, “Software protection and simulation on oblivious RAMs,” J. ACM, vol. 43, no. 3, pp. 431–473, 1996, doi: 10.1145/233551.233553.
[27]
G. Cormode and H. Jowhari, “L p samplers and their applications: A survey,” ACM Computing Surveys (CSUR), vol. 52, no. 1, pp. 1–31, 2019.
[28]
S. Ganguly, “Counting distinct items over update streams,” Theoretical Computer Science, vol. 378, no. 3, pp. 211–222, 2007.
[29]
H. Jowhari, M. Saglam, and G. Tardos, “Tight bounds for lp samplers, finding duplicates in streams, and related problems,” in Proceedings of the 30th ACM SIGMOD-SIGACT-SIGART symposium on principles of database systems, PODS 2011, june 12-16, 2011, athens, greece, M. Lenzerini and T. Schwentick, Eds., ACM, 2011, pp. 49–58. doi: 10.1145/1989284.1989289.
[30]
M. Monemizadeh and D. P. Woodruff, “1-pass relative-error l\({}_{\mbox{p}}\)-sampling with applications,” in Proceedings of the twenty-first annual ACM-SIAM symposium on discrete algorithms, SODA 2010, austin, texas, USA, january 17-19, 2010, M. Charikar, Ed., SIAM, 2010, pp. 1143–1160. doi: 10.1137/1.9781611973075.92.
[31]
D. P. Woodruff and P. Zhong, “Distributed low rank approximation of implicit functions of a matrix,” in 2016 IEEE 32nd international conference on data engineering (ICDE), IEEE, 2016, pp. 847–858.
[32]
M. M. Prabhakaran and V. M. Prabhakaran, “On secure multiparty sampling for more than two parties,” in 2012 IEEE information theory workshop, IEEE, 2012, pp. 99–103.
[33]
V. M. Prabhakaran and M. M. Prabhakaran, “Assisted common information with an application to secure two-party sampling,” IEEE Transactions on Information Theory, vol. 60, no. 6, pp. 3413–3434, 2014.
[34]
J. Champion, abhi shelat, and J. Ullman, “Securely sampling biased coins with applications to differential privacy,” in ACM CCS 2019, L. Cavallaro, J. Kinder, X. Wang, and J. Katz, Eds., ACM Press, 2019, pp. 603–614. doi: 10.1145/3319535.3354256.
[35]
C. Dwork, K. Kenthapadi, F. McSherry, I. Mironov, and M. Naor, “Our data, ourselves: Privacy via distributed noise generation,” in Annual international conference on the theory and applications of cryptographic techniques, Springer, 2006, pp. 486–503.
[36]
A. Acar, Z. B. Celik, H. Aksu, A. S. Uluagac, and P. McDaniel, “Achieving secure and differentially private computations in multiparty settings,” in 2017 IEEE symposium on privacy-aware computing (PAC), IEEE, 2017, pp. 49–59.
[37]
C. Clifton and B. Anandan, “Challenges and opportunities for security with differential privacy,” in International conference on information systems security, Springer, 2013, pp. 1–13.
[38]
R. Eriguchi, A. Ichikawa, N. Kunihiro, and K. Nuida, “Efficient noise generation to achieve differential privacy with applications to secure multiparty computation,” in International conference on financial cryptography and data security, Springer, 2021, pp. 271–290.
[39]
T. Elahi, G. Danezis, and I. Goldberg, “PrivEx: Private collection of traffic statistics for anonymous communication networks,” in ACM CCS 2014, G.-J. Ahn, M. Yung, and N. Li, Eds., ACM Press, 2014, pp. 1068–1079. doi: 10.1145/2660267.2660280.
[40]
R. Jansen and A. Johnson, “Safely measuring tor,” in ACM CCS 2016, E. R. Weippl, S. Katzenbeisser, C. Kruegel, A. C. Myers, and S. Halevi, Eds., ACM Press, 2016, pp. 1553–1567. doi: 10.1145/2976749.2978310.
[41]
L. Melis, G. Danezis, and E. De Cristofaro, “Efficient private statistics with succinct sketches,” in NDSS 2016, San Diego, CA: Internet Society, 2016.
[42]
R. Wails, A. Johnson, D. Starin, A. Yerukhimovich, and S. D. Gordon, “Stormy: Statistics in tor by measuring securely,” in ACM CCS 2019, L. Cavallaro, J. Kinder, X. Wang, and J. Katz, Eds., ACM Press, 2019, pp. 615–632. doi: 10.1145/3319535.3345650.
[43]
S. G. Choi, D. Dachman-Soled, M. Kulkarni, and A. Yerukhimovich, “Differentially-private multi-party sketching for large-scale statistics,” PoPETs, vol. 2020, no. 3, pp. 153–174, 2020, doi: 10.2478/popets-2020-0047.
[44]
J. Blocki, A. Blum, A. Datta, and O. Sheffet, “The johnson-lindenstrauss transform itself preserves differential privacy,” in 53rd FOCS, IEEE Computer Society Press, 2012, pp. 410–419. doi: 10.1109/FOCS.2012.67.
[45]
A. Smith, S. Song, and A. Guha Thakurta, “The flajolet-martin sketch itself preserves differential privacy: Private counting with minimal space,” NeurIPS 2020, vol. 33, pp. 19561–19572, 2020, doi: 10.5555/3495724.3497365.
[46]
L. Wang, I. Pinelis, and D. Song, “Differentially private fractional frequency moments estimation with polylogarithmic space,” in International conference on learning representations, 2022.
[47]
J. Hehir, D. Ting, and G. Cormode, “Sketch-flip-merge: Mergeable sketches for private distinct counting,” in ICML 2023, PMLR, 2023, pp. 12846–12865. doi: 10.5555/3618408.3618930.
[48]
C. Dickens, J. Thaler, and D. Ting, “Order-invariant cardinality estimators are differentially private,” Advances in Neural Information Processing Systems, vol. 35, pp. 15204–15216, 2022, doi: 10.5555/3600270.3601376.
[49]
T. Li, Z. Liu, V. Sekar, and V. Smith, “Privacy for free: Communication-efficient learning with differential privacy using sketches,” arXiv preprint arXiv:1911.00972, 2019, doi: 10.48550/arXiv.1911.00972.
[50]
R. Pagh and M. Thorup, “Improved utility analysis of private countsketch,” Advances in Neural Information Processing Systems, vol. 35, pp. 25631–25643, 2022, doi: 10.5555/3600270.3602128.
[51]
D. Mir, S. Muthukrishnan, A. Nikolov, and R. N. Wright, “Pan-private algorithms via statistics on sketches,” in ACM SIGMOD-SIGACT-SIGART, 2011, pp. 37–48. doi: 10.1145/1989284.1989290.
[52]
R. Bassily and A. Smith, “Local, private, efficient protocols for succinct histograms,” in Proceedings of the forty-seventh annual ACM symposium on theory of computing, 2015, pp. 127–135. doi: 10.1145/2746539.2746632.
[53]
R. Bassily, K. Nissim, U. Stemmer, and A. Guha Thakurta, “Practical locally private heavy hitters,” Advances in Neural Information Processing Systems, vol. 30, 2017, doi: 10.5555/3294771.3294989.
[54]
Z. Huang, Y. Qiu, K. Yi, and G. Cormode, “Frequency estimation under multiparty differential privacy: One-shot and streaming,” arXiv preprint arXiv:2104.01808, 2021, doi: 10.14778/3547305.3547312.
[55]
F. Zhao, D. Qiao, R. Redberg, D. Agrawal, A. El Abbadi, and Y.-X. Wang, “Differentially private linear sketches: Efficient implementations and applications,” NeurIPS 2022, vol. 35, pp. 12691–12704, 2022, doi: 10.5555/3600270.3601192.
[56]
R. Stanojevic, M. Nabeel, and T. Yu, “Distributed cardinality estimation of set operations with differential privacy,” in 2017 IEEE symposium on privacy-aware computing (PAC), IEEE, 2017, pp. 37–48. doi: 10.1109/pac.2017.43.
[57]
H. Sparka, F. Tschorsch, and B. Scheuermann, “P2KMV: A privacy-preserving counting sketch for efficient and accurate set intersection cardinality estimations,” Cryptology ePrint Archive, 2018, doi: 10.14279/DEPOSITONCE-8374.
[58]
S. Nuñez von Voigt and F. Tschorsch, “Rrtxfm: Probabilistic counting for differentially private statistics,” in Digital transformation for a sustainable society in the 21st century: I3E 2019 IFIP WG 6.11 international workshops, Springer, 2020, pp. 86–98. doi: 10.1007/978-3-030-39634-3_9.
[59]
B. Kreuter, C. W. Wright, E. S. Skvortsov, R. Mirisola, and Y. Wang, “Privacy-preserving secure cardinality and frequency estimation,” Google, LLC, 2020.
[60]
R. Pagh and N. M. Stausholm, “Efficient Differentially Private \(F_0\) Linear Sketching,” in 24th international conference on database theory (ICDT 2021), K. Yi and Z. Wei, Eds., in Leibniz international proceedings in informatics (LIPIcs), vol. 186. Dagstuhl, Germany: Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2021, pp. 18:1–18:19. doi: 10.4230/LIPIcs.ICDT.2021.18.
[61]
E. D. Cristofaro, S. Faber, P. Gasti, and G. Tsudik, “Genodroid: Are privacy-preserving genomic tests ready for prime time?” in WPES 2012, ACM, 2012, pp. 97–108. doi: 10.1145/2381966.2381980.
[62]
M. S. Riazi, B. Chen, A. Shrivastava, D. Wallach, and F. Koushanfar, “Sub-linear privacy-preserving near-neighbor search.” Cryptology ePrint Archive, Report 2019/1222, 2019.
[63]
S. Faber, “Variants of privacy preserving set intersection and their practical applications,” PhD thesis, University of Maryland, 2016.
[64]
M. Aumüller, A. Bourgeat, and J. Schmurr, “Differentially private sketches for jaccard similarity estimation,” in SISAP 2020, in LNCS. Springer, 2020, pp. 18–32. doi: 10.1007/978-3-030-60936-8_2.
[65]
Z. Yan, Q. Wu, M. Ren, J. Liu, S. Liu, and S. Qiu, “Locally private jaccard similarity estimation,” Concurr. Comput. Pract. Exp., vol. 31, no. 24, 2019, doi: 10.1002/cpe.4889.
[66]
Z. Yan, J. Liu, G. Li, Z. Han, and S. Qiu, “PrivMin: Differentially private MinHash for jaccard similarity computation,” CoRR, vol. abs/1705.07258, 2017, doi: 10.48550/arXiv.1705.07258.
[67]
A. Beimel, K. Nissim, and E. Omri, “Distributed private data analysis: Simultaneously solving how and what,” in CRYPTO 2008, D. Wagner, Ed., in LNCS, vol. 5157. Springer, Heidelberg, 2008, pp. 451–468. doi: 10.1007/978-3-540-85174-5_25.
[68]
X. He, A. Machanavajjhala, C. J. Flynn, and D. Srivastava, “Composing differential privacy and secure computation: A case study on scaling private record linkage,” in ACM CCS 2017, B. M. Thuraisingham, D. Evans, T. Malkin, and D. Xu, Eds., ACM Press, 2017, pp. 1389–1406. doi: 10.1145/3133956.3134030.
[69]
A. Groce, P. Rindal, and M. Rosulek, “Cheaper private set intersection via differentially private leakage,” Proc. Privacy Enhancing Technologies (PETS), vol. 2019, no. 3, pp. 6–25, 2019, doi: 10.2478/popets-2019-0034.
[70]
S. Mazloom and S. D. Gordon, “Secure computation with differentially private access patterns,” in ACM CCS 2018, D. Lie, M. Mannan, M. Backes, and X. Wang, Eds., ACM Press, 2018, pp. 490–507. doi: 10.1145/3243734.3243851.
[71]
S. D. Gordon, J. Katz, M. Liang, and J. Xu, “Spreading the privacy blanket: - differentially oblivious shuffling for differential privacy,” in ACNS 22: 20th international conference on applied cryptography and network security, G. Ateniese and D. Venturi, Eds., in LNCS, vol. 13269. Rome, Italy: Springer, Cham, Switzerland, 2022, pp. 501–520.
[72]
J. Feigenbaum, Y. Ishai, T. Malkin, K. Nissim, M. J. Strauss, and R. N. Wright, “Secure multiparty computation of approximations,” ACM Trans. Algorithms, vol. 2, no. 3, pp. 435–472, 2006.
[73]
S. Halevi, R. Krauthgamer, E. Kushilevitz, and K. Nissim, “Private approximation of NP-hard functions,” in 33rd ACM STOC, ACM Press, 2001, pp. 550–559. doi: 10.1145/380752.380850.
[74]
E. Boyle, R. LaVigne, and V. Vaikuntanathan, “Adversarially robust property-preserving hash functions,” in Innovations in theoretical computer science conference (ITCS), San Diego, CA, USA: Schloss Dagstuhl–Leibniz-Zentrum fuer Informatik, 2019, pp. 16:1–16:20. doi: 10.4230/LIPIcs.ITCS.2019.16.
[75]
N. Fleischhacker and M. Simkin, “Robust property-preserving hash functions for hamming distance and more,” in EUROCRYPT 2021, part III, A. Canteaut and F.-X. Standaert, Eds., in LNCS, vol. 12698. Springer, Cham, Switzerland, 2021, pp. 311–337.
[76]
N. Fleischhacker, K. G. Larsen, and M. Simkin, “Property-preserving hash functions for hamming distance from standard assumptions,” in EUROCRYPT 2022, part II, in LNCS. Springer, Cham, Switzerland, 2022, pp. 764–781.
[77]
J. Holmgren, M. Liu, L. Tyner, and D. Wichs, “Nearly optimal property preserving hashing,” in CRYPTO 2022, part III, in LNCS. Springer, Cham, Switzerland, 2022, pp. 473–502.
[78]
I. Attias, E. Cohen, M. Shechner, and U. Stemmer, “A framework for adversarial streaming via differential privacy and difference estimators,” in ITCS 2023, LIPIcs, 2023, pp. 8:1–8:19. doi: 10.4230/LIPIcs.ITCS.2023.8.
[79]
O. Ben-Eliezer, R. Jayaram, D. P. Woodruff, and E. Yogev, “A framework for adversarially robust streaming algorithms,” J. ACM, vol. 69, no. 2, pp. 17:1–17:33, 2022, doi: 10.1145/3498334.
[80]
Y. Dodis, P. Grubbs, T. Ristenpart, and J. Woodage, “Fast message franking: From invisible salamanders to encryptment,” in CRYPTO 2018, part i, H. Shacham and A. Boldyreva, Eds., in LNCS, vol. 10991. Springer, Heidelberg, 2018, pp. 155–186. doi: 10.1007/978-3-319-96884-1_6.
[81]
N. Tyagi, P. Grubbs, J. Len, I. Miers, and T. Ristenpart, “Asymmetric message franking: Content moderation for metadata-private end-to-end encryption,” in CRYPTO 2019, part III, A. Boldyreva and D. Micciancio, Eds., in LNCS, vol. 11694. Springer, Heidelberg, 2019, pp. 222–250. doi: 10.1007/978-3-030-26954-8_8.
[82]
P. Grubbs, J. Lu, and T. Ristenpart, “Message franking via committing authenticated encryption,” in CRYPTO 2017, part III, J. Katz and H. Shacham, Eds., in LNCS, vol. 10403. Springer, Heidelberg, 2017, pp. 66–97. doi: 10.1007/978-3-319-63697-9_3.
[83]
S. Eskandarian, “Abuse reporting for metadata-hiding communication based on secret sharing,” in USENIX security 2024: 33rd USENIX security symposium, D. Balzarotti and W. Xu, Eds., Philadelphia, PA, USA: USENIX Association, 2024. Available: https://www.usenix.org/conference/usenixsecurity24/presentation/eskandarian
[84]
M. Gregoire, M. Pierce, and S. Eskandarian, “Onion franking: Abuse reports for mix-based private messaging,” in ISOC network and distributed system security symposium – NDSS 2025, San Diego, CA, USA: The Internet Society, 2025.
[85]
N. Tyagi, I. Miers, and T. Ristenpart, “Traceback for end-to-end encrypted messaging,” in ACM CCS 2019, L. Cavallaro, J. Kinder, X. Wang, and J. Katz, Eds., ACM Press, 2019, pp. 413–430. doi: 10.1145/3319535.3354243.
[86]
C. Peale, S. Eskandarian, and D. Boneh, “Secure complaint-enabled source-tracking for encrypted messaging,” in ACM CCS 2021: 28th conference on computer and communications security, G. Vigna and E. Shi, Eds., Virtual Event, Republic of Korea: ACM Press, 2021, pp. 1484–1506. doi: 10.1145/3460120.3484539.
[87]
J. Bartusek, S. Garg, A. Jain, and G.-V. Policharla, “End-to-end secure messaging with traceability only for illegal content,” in Advances in cryptology – EUROCRYPT 2023, part v, in LNCS, vol. 14008. Springer, Cham, Switzerland, 2023, pp. 35–66. doi: 10.1007/978-3-031-30589-4_2.
[88]
R. Issa, N. Alhaddad, and M. Varia, “Hecate: Abuse reporting in secure messengers with sealed sender,” in USENIX security 2022: 31st USENIX security symposium, K. R. B. Butler and K. Thomas, Eds., Boston, MA, USA: USENIX Association, 2022, pp. 2335–2352. Available: https://www.usenix.org/conference/usenixsecurity22/presentation/issa
[89]
E. Kenney, Q. Tang, and C. Wu, “Anonymous traceback for end-to-end encryption,” in ESORICS 2022: 27th european symposium on research in computer security, part II, V. Atluri, R. Di Pietro, C. D. Jensen, and W. Meng, Eds., in LNCS, vol. 13555. Copenhagen, Denmark: Springer, Cham, Switzerland, 2022, pp. 42–62. doi: 10.1007/978-3-031-17146-8_3.
[90]
Z. Wang et al., “Impact tracing: Identifying the culprit of misinformation in encrypted messaging systemsy,” in NDSS, The Internet Society, 2025.
[91]
C. Bell and S. Eskandarian, “Anonymous complaint aggregation for secure messaging,” Proceedings on Privacy Enhancing Technologies (PoPETs), vol. 2024, no. 3, pp. 276–296, 2024, doi: 10.56553/popets-2024-0078.
[92]
P. Branco, M. Green, A. Hegde, A. Jain, and G. Kaptchuk, “How to trace viral content in end-to-end encrypted messaging.” Cryptology ePrint Archive, Report 2025/1052, 2025. Available: https://eprint.iacr.org/2025/1052
[93]
D. Boneh, E. Boyle, H. Corrigan-Gibbs, N. Gilboa, and Y. Ishai, “Lightweight techniques for private heavy hitters,” in 2021 IEEE symposium on security and privacy, San Francisco, CA, USA: IEEE, 2021, pp. 762–776. doi: 10.1109/SP40001.2021.00048.
[94]
A. Davidson, P. Snyder, E. B. Quirk, J. Genereux, B. Livshits, and H. Haddadi, “STAR: Secret sharing for private threshold aggregation reporting,” in ACM CCS 2022: 29th conference on computer and communications security, H. Yin, A. Stavrou, C. Cremers, and E. Shi, Eds., Los Angeles, CA, USA: ACM Press, 2022, pp. 697–710. doi: 10.1145/3548606.3560631.
[95]
S. Cresci, F. Lillo, D. Regoli, S. Tardelli, and M. Tesconi, “$FAKE: Evidence of spam and bot activity in stock microblogs on twitter,” in ICWSM, AAAI Press, 2018, pp. 580–583.
[96]
S. Baribi-Bartov, B. Swire-Thompson, and N. Grinberg, “Supersharers of fake news on twitter,” Science, vol. 384, no. 6699, pp. 979–982, 2024, doi: 10.1126/science.adl4435.
[97]
S. Vosoughi, D. Roy, and S. Aral, “The spread of true and false news online,” science, vol. 359, no. 6380, pp. 1146–1151, 2018.
[98]
S. Tsugawa and K. Watabe, “Identifying influential brokers on social media from social network structure,” in ICWSM, AAAI Press, 2023, pp. 842–853.
[99]
K. Garimella and D. Eckles, “Image based misinformation on WhatsApp,” in Proceedings of the thirteenth international AAAI conference on web and social media (ICWSM 2019), 2017.
[100]
C. Machado, B. Kira, V. Narayanan, B. Kollanyi, and P. N. Howard, “A study of misinformation in WhatsApp groups with a focus on the brazilian presidential elections,” in WWW (companion volume), ACM, 2019, pp. 1013–1019.
[101]
I. V. Pasquetto, E. Jahani, S. Atreja, and M. Baum, “Social debunking of misinformation on WhatsApp: The case for strong and in-group ties,” Proc. ACM Hum. Comput. Interact., vol. 6, no. CSCW1, pp. 117:1–117:35, 2022.
[102]
M. Maffei, G. Malavolta, M. Reinert, and D. Schröder, “Maliciously secure multi-client ORAM,” in Applied cryptography and network security, D. Gollmann, A. Miyaji, and H. Kikuchi, Eds., Cham: Springer International Publishing, 2017, pp. 645–664.
[103]
A. Chakraborti and R. Sion, “ConcurORAM: High-throughput stateless parallel multi-client ORAM,” in 26th annual network and distributed system security symposium, NDSS 2019, san diego, california, USA, february 24-27, 2019, The Internet Society, 2019. Available: https://www.ndss-symposium.org/ndss-paper/concuroram-high-throughput-stateless-parallel-multi-client-oram/
[104]
T. Hoang, R. Behnia, Y. Jang, and A. A. Yavuz, “MOSE: Practical multi-user oblivious storage via secure enclaves,” in Proceedings of the tenth ACM conference on data and application security and privacy, in CODASPY ’20. New York, NY, USA: Association for Computing Machinery, 2020, pp. 17–28. doi: 10.1145/3374664.3375749.
[105]
J. Katz, S. Myers, and R. Ostrovsky, “Cryptographic counters and applications to electronic voting,” in EUROCRYPT 2001, B. Pfitzmann, Ed., in LNCS, vol. 2045. Springer, Heidelberg, May 2001, pp. 78–92. doi: 10.1007/3-540-44987-6_6.
[106]
E.-J. Goh and P. Golle, “Event driven private counters,” in FC 2005, A. Patrick and M. Yung, Eds., in LNCS, vol. 3570. Springer, Heidelberg, 2005, pp. 313–327.
[107]
X. S. Wang et al., “Oblivious data structures,” in ACM CCS 2014, G.-J. Ahn, M. Yung, and N. Li, Eds., ACM Press, 2014, pp. 215–226. doi: 10.1145/2660267.2660314.
[108]
M. Keller and P. Scholl, “Efficient, oblivious data structures for MPC,” in ASIACRYPT 2014, part II, P. Sarkar and T. Iwata, Eds., in LNCS, vol. 8874. Springer, Heidelberg, 2014, pp. 506–525. doi: 10.1007/978-3-662-45608-8_27.
[109]
E. Shi, “Path oblivious heap: Optimal and practical oblivious priority queue,” in 2020 IEEE symposium on security and privacy, IEEE Computer Society Press, May 2020, pp. 842–858. doi: 10.1109/SP40000.2020.00037.
[110]
A. Akavia, D. Feldman, and H. Shaul, “Secure search on encrypted data via multi-ring sketch,” in ACM CCS 2018, D. Lie, M. Mannan, M. Backes, and X. Wang, Eds., ACM Press, 2018, pp. 985–1001. doi: 10.1145/3243734.3243810.
[111]
A. Akavia, C. Gentry, S. Halevi, and M. Leibovich, “Setup-free secure search on encrypted data: Faster and post-processing free,” Proc. Priv. Enhancing Technol., vol. 2019, no. 3, pp. 87–107, 2019, doi: 10.2478/popets-2019-0038.
[112]
R. Wen, Y. Yu, X. Xie, and Y. Zhang, “LEAF: A faster secure search algorithm via localization, extraction, and reconstruction,” in ACM CCS 2020, J. Ligatti, X. Ou, J. Katz, and G. Vigna, Eds., ACM Press, 2020, pp. 1219–1232. doi: 10.1145/3372297.3417237.
[113]
B. H. Bloom, “Space/time trade-offs in hash coding with allowable errors,” Commun. ACM, vol. 13, no. 7, pp. 422–426, 1970, doi: http://doi.acm.org/10.1145/362686.362692.
[114]
L. Fan, P. Cao, J. M. Almeida, and A. Z. Broder, “Summary cache: A scalable wide-area web cache sharing protocol,” IEEE/ACM Trans. Netw., vol. 8, no. 3, pp. 281–293, 2000, doi: 10.1109/90.851975.
[115]
M. Mitzenmacher, “Compressed bloom filters,” in 20th ACM PODC, A. D. Kshemkalyani and N. Shavit, Eds., ACM, 2001, pp. 144–150. doi: 10.1145/383962.384004.
[116]
M. Blanton and E. Aguiar, “Private and oblivious set and multiset operations.” Cryptology ePrint Archive, Report 2011/464, 2011.
[117]
G. Asharov, I. Komargodski, W.-K. Lin, K. Nayak, E. Peserico, and E. Shi, “OptORAMa: Optimal oblivious RAM,” in EUROCRYPT 2020, part II, A. Canteaut and Y. Ishai, Eds., in LNCS, vol. 12106. Springer, Heidelberg, May 2020, pp. 403–432. doi: 10.1007/978-3-030-45724-2_14.
[118]
D. Cantor and H. Zassenhaus, “A new algorithm for factoring polynomials over finite fields,” Mathematics of Computation, vol. 36, pp. 587–592, 1981.
[119]
M. T. Goodrich, “Data-oblivious external-memory algorithms for the compaction, selection, and sorting of outsourced data,” in SPAA 2011: Proceedings of the 23rd annual ACM symposium on parallelism in algorithms and architectures, san jose, CA, USA, june 4-6, 2011 (co-located with FCRC 2011), 2011, pp. 379–388. doi: 10.1145/1989493.1989555.
[120]
G. Kellaris, G. Kollios, K. Nissim, and A. O’Neill, “Generic attacks on secure outsourced databases,” in ACM CCS 2016, E. R. Weippl, S. Katzenbeisser, C. Kruegel, A. C. Myers, and S. Halevi, Eds., ACM Press, 2016, pp. 1329–1340. doi: 10.1145/2976749.2978386.
[121]
Z. Gui, O. Johnson, and B. Warinschi, “Encrypted databases: New volume attacks against range queries,” in ACM CCS 2019, L. Cavallaro, J. Kinder, X. Wang, and J. Katz, Eds., ACM Press, 2019, pp. 361–378. doi: 10.1145/3319535.3363210.
[122]
L. Blackstone, S. Kamara, and T. Moataz, “Revisiting leakage abuse attacks,” in NDSS 2020, The Internet Society, 2020.
[123]
S. Patel, G. Persiano, K. Yeo, and M. Yung, “Mitigating leakage in secure cloud-hosted data structures: Volume-hiding for multi-maps via hashing,” in ACM CCS 2019, L. Cavallaro, J. Kinder, X. Wang, and J. Katz, Eds., ACM Press, 2019, pp. 79–93. doi: 10.1145/3319535.3354213.
[124]
A. J. Titus, S. Kishore, T. Stavish, S. M. Rogers, and K. Ni, “PySEAL: A python wrapper implementation of the SEAL homomorphic encryption library.” 2018. Available: https://arxiv.org/abs/1803.01891
[125]
“Microsoft SEAL (release 3.6).” https://github.com/Microsoft/SEAL, 2020.
[126]
J. Fan and F. Vercauteren, “Somewhat practical fully homomorphic encryption,” IACR Cryptol. ePrint Arch., vol. 2012, p. 144, 2012, Available: http://eprint.iacr.org/2012/144
[127]
S. Angel, H. Chen, K. Laine, and S. T. V. Setty, “PIR with compressed queries and amortized query processing,” in 2018 IEEE symposium on security and privacy, IEEE Computer Society Press, May 2018, pp. 962–979. doi: 10.1109/SP.2018.00062.
[128]
W. A. Stein et al., Sage Mathematics Software (Version 9.2). The Sage Development Team, 2020.
[129]
A. Ali et al., “Communication–computation trade-offs in PIR.” Usenix Security (To appear), 2021.
[130]
O. Goldreich, S. Micali, and A. Wigderson, “How to play any mental game or A completeness theorem for protocols with honest majority,” in 19th ACM STOC, A. Aho, Ed., ACM Press, May 1987, pp. 218–229. doi: 10.1145/28395.28420.
[131]
A. Andoni, R. Krauthgamer, and K. Onak, “Streaming algorithms via precision sampling,” in IEEE 52nd annual symposium on foundations of computer science, FOCS 2011, palm springs, CA, USA, october 22-25, 2011, R. Ostrovsky, Ed., IEEE Computer Society, 2011, pp. 363–372. doi: 10.1109/FOCS.2011.82.
[132]
V. Braverman, R. Ostrovsky, and C. Zaniolo, “Optimal sampling from sliding windows,” J. Comput. Syst. Sci., vol. 78, no. 1, pp. 260–272, 2012, doi: 10.1016/j.jcss.2011.04.004.
[133]
F. McSherry and K. Talwar, “Mechanism design via differential privacy,” in 48th FOCS, IEEE Computer Society Press, 2007, pp. 94–103. doi: 10.1109/FOCS.2007.41.
[134]
L. Babai, N. Nisan, and M. Szegedy, “Multiparty protocols and logspace-hard pseudorandom sequences (extended abstract),” in 21st ACM STOC, ACM Press, May 1989, pp. 1–11. doi: 10.1145/73007.73008.
[135]
S. Goryczka, L. Xiong, and V. Sunderam, “Secure multiparty aggregation with differential privacy: A comparative study,” in Proceedings of the joint EDBT/ICDT 2013 workshops, 2013, pp. 155–163.
[136]
M. Pathak, S. Rane, and B. Raj, “Multiparty differential privacy via aggregation of locally trained classifiers,” Advances in neural information processing systems, vol. 23, 2010.
[137]
S. Pentyala et al., “Training differentially private models with secure multiparty computation,” arXiv preprint arXiv:2202.02625, 2022.
[138]
J. Katz and Y. Lindell, Introduction to modern cryptography. Chapman; Hall/CRC Press, 2007.
[139]
D. Evans, V. Kolesnikov, and M. Rosulek, “A pragmatic introduction to secure multi-party computation,” Foundations and Trends in Privacy and Security, vol. 2, no. 2–3, pp. 70–246, 2018, doi: 10.1561/3300000019.
[140]
Y. Lindell and B. Pinkas, “A proof of security of Yao’s protocol for two-party computation,” Journal of Cryptology, vol. 22, no. 2, pp. 161–188, 2009, doi: 10.1007/s00145-008-9036-8.
[141]
C. Dwork, “Differential privacy (invited paper),” in ICALP 2006, part II, M. Bugliesi, B. Preneel, V. Sassone, and I. Wegener, Eds., in LNCS, vol. 4052. Springer, Heidelberg, 2006, pp. 1–12. doi: 10.1007/11787006_1.
[142]
E. Shi, T.-H. H. Chan, E. G. Rieffel, and D. Song, “Distributed private data analysis: Lower bounds and practical constructions,” ACM Trans. Algorithms, vol. 13, no. 4, pp. 50:1–50:38, 2017, doi: 10.1145/3146549.
[143]
Y. Ishai, T. Malkin, M. J. Strauss, and R. N. Wright, “Private multiparty sampling and approximation of vector combinations,” Theor. Comput. Sci., vol. 410, no. 18, pp. 1730–1745, 2009, doi: 10.1016/j.tcs.2008.12.062.
[144]
A. A. Razborov, “On the distributional complexity of disjointness,” Theor. Comput. Sci., vol. 106, no. 2, pp. 385–390, 1992, doi: 10.1016/0304-3975(92)90260-M.
[145]
B. Kalyanasundaram and G. Schnitger, “The probabilistic communication complexity of set intersection,” SIAM J. Discret. Math., vol. 5, no. 4, pp. 545–557, 1992, doi: 10.1137/0405044.
[146]
Z. Bar-Yossef, T. S. Jayram, R. Kumar, and D. Sivakumar, “An information statistics approach to data stream and communication complexity,” J. Comput. Syst. Sci., vol. 68, no. 4, pp. 702–732, 2004, doi: 10.1016/j.jcss.2003.11.006.
[147]
W. B. Johnson and J. Lindenstrauss, “Extensions of lipschitz mappings into a hilbert space.” 1984.
[148]
P. Indyk and R. Motwani, “Approximate nearest neighbors: Towards removing the curse of dimensionality,” in 30th ACM STOC, ACM Press, May 1998, pp. 604–613. doi: 10.1145/276698.276876.
[149]
A. Kabán, “Improved bounds on the dot product under random projection and random sign projection,” in Proceedings of the 21th ACM SIGKDD international conference on knowledge discovery and data mining, sydney, NSW, australia, august 10-13, 2015, L. Cao, C. Zhang, T. Joachims, G. I. Webb, D. D. Margineantu, and G. Williams, Eds., ACM, 2015, pp. 487–496. doi: 10.1145/2783258.2783364.
[150]
C. Mouchet, J. R. Troncoso-Pastoriza, J.-P. Bossuat, and J.-P. Hubaux, “Multiparty homomorphic encryption from ring-learning-with-errors,” Proceedings on Privacy Enhancing Technologies (PoPETs), vol. 2021, no. 4, pp. 291–311, 2021.
[151]
A. Broder, “On the resemblance and containment of documents,” in Compression and complexity of sequences, international conference on, IEEE Computer Society, 1997, p. 21. doi: 10.1109/sequen.1997.666900.
[152]
P. Li, A. B. Owen, and C.-H. Zhang, “One permutation hashing,” in In proceedings of the 26th annual conference on neural information processing systems 2012., 2012, pp. 3122–3130. doi: 10.5555/2999325.2999482.
[153]
P. Jaccard, “Étude comparative de la distribution florale dans une portion des alpes et des jura,” Bull Soc Vaudoise Sci Nat, vol. 37, pp. 547–579, 1901, doi: 10.5169/seals-266450.
[154]
A. Z. Broder, S. C. Glassman, M. S. Manasse, and G. Zweig, “Syntactic clustering of the web,” Comput. Networks, vol. 29, no. 8–13, pp. 1157–1166, 1997, doi: 10.1016/s0169-7552(97)00031-7.
[155]
C. Tantipathananandh, T. Y. Berger-Wolf, and D. Kempe, “A framework for community identification in dynamic social networks,” in KDD, ACM, 2007, pp. 717–726. doi: 10.1145/1281192.1281269.
[156]
H. Wu, C. Wang, Y. Tyshetskiy, A. Docherty, K. Lu, and L. Zhu, “Adversarial examples for graph data: Deep insights into attack and defense,” in IJCAI 2019, ijcai.org, 2019, pp. 4816–4823. doi: 10.24963/ijcai.2019/669.
[157]
B. Jiang, H. Krim, T. Wu, and D. Cansever, “Refining self-supervised learning in imaging: Beyond linear metric,” in ICIP 2022, IEEE, 2022, pp. 76–80. doi: 10.1109/icip46576.2022.9897745.
[158]
C. Blundo, E. D. Cristofaro, and P. Gasti, “EsPRESSO: Efficient privacy-preserving evaluation of sample set similarity,” J. Comput. Secur., vol. 22, no. 3, pp. 355–381, 2014, doi: 10.3233/jcs-130482.
[159]
E. D. Cristofaro, P. Gasti, and G. Tsudik, “Fast and private computation of cardinality of set intersection and union,” in CANS 2012, Springer, 2012, pp. 218–231. doi: 10.1007/978-3-642-35404-5_17.
[160]
Y. Tan and B. Lv, “Break two PSI-CA protocols in polynomial time,” in Proceedings of the 2024 16th international conference on machine learning and computing, in ICMLC ’24. New York, NY, USA: Association for Computing Machinery, 2024, pp. 65–72. doi: 10.1145/3651671.3651682.
[161]
R. Bassily, A. Groce, J. Katz, and A. Smith, “Coupled-worlds privacy: Exploiting adversarial uncertainty in statistical data privacy,” in 54th FOCS, IEEE Computer Society Press, 2013, pp. 439–448. doi: 10.1109/FOCS.2013.54.
[162]
S. Dziembowski, T. Kazana, and M. Zdanowicz, “Quasi chain rule for min-entropy,” Inf. Process. Lett., vol. 134, pp. 62–66, 2018, doi: 10.1016/j.ipl.2018.02.007.
[163]
M. Skórski, “Strong chain rules for min-entropy under few bits spoiled,” in 2019 IEEE international symposium on information theory (ISIT), IEEE, 2019, pp. 1122–1126. doi: 10.1109/isit.2019.8849240.
[164]
S. Mazloom, P. H. Le, S. Ranellucci, and S. D. Gordon, “Secure parallel computation on national scale volumes of data,” in USENIX security symposium, Boston, MA, USA: USENIX Association, 2020, pp. 2487–2504.
[165]
T.-H. H. Chan, K.-M. Chung, B. M. Maggs, and E. Shi, “Foundations of differentially oblivious algorithms,” in 30th SODA, T. M. Chan, Ed., ACM-SIAM, 2019, pp. 2448–2467. doi: 10.1137/1.9781611975482.150.
[166]
B. Doerr, “Probabilistic tools for the analysis of randomized optimization heuristics,” CoRR, vol. abs/1801.06733, 2018, Available: https://arxiv.org/abs/1801.06733
[167]
W.-N. Chen, A. Ozgur, and P. Kairouz, “The poisson binomial mechanism for unbiased federated learning with secure aggregation,” in ICML 2022, PMLR, 2022, pp. 3490–3506.
[168]
Y. Dodis, R. Ostrovsky, L. Reyzin, and A. Smith, “Fuzzy extractors: How to generate strong keys from biometrics and other noisy data,” SIAM Journal on Computing, vol. 38, no. 1, pp. 97–139, Jan. 2008, doi: 10.1137/060651380.
[169]
M. Isaac and K. Roose, “Disinformation spreads on WhatsApp ahead of brazilian election.” https://www.nytimes.com/2018/10/19/technology/whatsapp-brazil-presidential-election.html, 2018.
[170]
E. Samuels, “How misinformation on WhatsApp led to a mob killing in India.” https://www.washingtonpost.com/politics/2020/02/21/how-misinformation-whatsapp-led-deathly-mob-lynching-india/, 2020.
[171]
Facebook, “How is Facebook addressing false information through independent fact-checkers?” https://www.facebook.com/help/1952307158131536.
[172]
[173]
E. Stefanov et al., “Path ORAM: An extremely simple oblivious RAM protocol,” J. ACM, vol. 65, no. 4, pp. 18:1–18:26, 2018, doi: 10.1145/3177872.
[174]
C. Gentry, “Fully homomorphic encryption using ideal lattices,” in 41st ACM STOC, M. Mitzenmacher, Ed., ACM Press, 2009, pp. 169–178. doi: 10.1145/1536414.1536440.
[175]
M. Ben-Or, S. Goldwasser, and A. Wigderson, “Completeness theorems for non-cryptographic fault-tolerant distributed computation (extended abstract),” in 20th ACM STOC, ACM Press, May 1988, pp. 1–10. doi: 10.1145/62212.62213.
[176]
R. S. Geiger, “Bot-based collective blocklists in twitter: The counterpublic moderation of harassment in a networked public space,” Information, Communication & Society, vol. 19, pp. 787–803, Jun. 2016, doi: 10.1080/1369118X.2016.1153700.
[177]
A. Kulshrestha and J. Mayer, “Identifying harmful media in end-to-end encrypted communication: Efficient private membership computation,” in 30th USENIX security symposium (USENIX security 21), USENIX Association, 2021, pp. 893–910. Available: https://www.usenix.org/conference/usenixsecurity21/presentation/kulshrestha
[178]
R. Brandom, “Apple says collision in child-abuse hashing system is not a concern,” The Verge, 2021, Available: https://www.theverge.com/2021/8/18/22630439/apple-csam-neuralhash-collision-vulnerability-flaw-cryptography
[179]
G. Cormode and S. Muthukrishnan, “An improved data stream summary: The count-min sketch and its applications,” J. Algorithms, vol. 55, no. 1, pp. 58–75, 2005, doi: 10.1016/j.jalgor.2003.12.001.
[180]
B. Smith, “Ring.” https://lib.rs/crates/ring, Nov. 2021.
[181]
A. Payne, “Bitvec.” https://lib.rs/crates/bitvec, Nov. 2021.
[182]
N. Tyagi, Y. Gilad, D. Leung, M. Zaharia, and N. Zeldovich, “Stadium: A distributed metadata-private messaging system,” in Proceedings of the 26th symposium on operating systems principles, ACM, 2017, pp. 423–440.
[183]
H. Corrigan-Gibbs, D. I. Wolinsky, and B. Ford, “Proactively accountable anonymous messaging in verdict,” in Presented as part of the 22nd \(\{\)USENIX\(\}\) security symposium (\(\{\)USENIX\(\}\) security 13), 2013, pp. 147–162.
[184]
J. Brooks et al., “Ricochet: Anonymous instant messaging for real privacy.” 2016.
[185]
J. Lund, “Technology preview: Sealed sender for signal,” Technology preview: Sealed sender for Signal. Oct. 2018. Available: https://signal.org/blog/sealed-sender/
[186]
I. Martiny, G. Kaptchuk, A. J. Aviv, D. S. Roche, and E. Wustrow, “Improving Signal’s sealed sender,” in ISOC network and distributed system security symposium – NDSS 2021, Virtual: The Internet Society, 2021. doi: 10.14722/ndss.2021.24180.
[187]
O. Goldreich, “Towards a theory of software protection and simulation by oblivious RAMs,” in 19th ACM STOC, A. Aho, Ed., ACM Press, May 1987, pp. 182–194. doi: 10.1145/28395.28416.
[188]
R. Ostrovsky, “Efficient computation on oblivious RAMs,” in 22nd ACM STOC, ACM Press, May 1990, pp. 514–523. doi: 10.1145/100216.100289.
[189]
E. Fenske, A. Mani, A. Johnson, and M. Sherr, “Distributed measurement with private set-union cardinality,” in ACM CCS 2017, B. M. Thuraisingham, D. Evans, T. Malkin, and D. Xu, Eds., ACM Press, 2017, pp. 2295–2312. doi: 10.1145/3133956.3134034.
[190]
V. G. Ashok and R. Mukkamala, “A scalable and efficient privacy preserving global itemset support approximation using bloom filters,” in Data and applications security and privacy XXVIII - 28th annual IFIP WG 11.3 working conference, DBSec 2014, vienna, austria, july 14-16, 2014. proceedings, 2014, pp. 382–389. doi: 10.1007/978-3-662-43936-4\_26.
[191]
R. Egert, M. Fischlin, D. Gens, S. Jacob, M. Senker, and J. Tillmanns, “Privately computing set-union and set-intersection cardinality via bloom filters,” in Information security and privacy - 20th australasian conference, ACISP 2015, brisbane, QLD, australia, june 29 - july 1, 2015, proceedings, 2015, pp. 413–430. doi: 10.1007/978-3-319-19962-7\_24.
[192]
E. Ferrara, O. Varol, C. Davis, F. Menczer, and A. Flammini, “The rise of social bots,” Communications of the ACM, vol. 59, no. 7, pp. 96–104, 2016.
[193]
Z. Alkhalil, C. Hewage, L. Nawaf, and I. Khan, “Phishing attacks: A recent comprehensive study and a new anatomy,” Frontiers in Computer Science, vol. 3, p. 563060, 2021.
[194]
M. Stella, E. Ferrara, and M. De Domenico, “Bots increase exposure to negative and inflammatory content in online social systems,” Proceedings of the National Academy of Sciences, vol. 115, no. 49, pp. 12435–12440, 2018.
[195]
K. Kelkar, “Mobs are killing people in India based on false rumors spread through WhatsApp.” PBS News, 2018. Available: https://www.pbs.org/newshour/world/mobs-are-killing-people-in-india-based-on-false-rumors-spread-through-whatsapp
[196]
M. Martínez, “Burned to death because of a rumour on WhatsApp.” BBC News, 2018. Available: https://www.bbc.com/news/world-latin-america-46145986
[197]
A. Coleman, “‘Hundreds dead’ because of Covid-19 misinformation.” BBC News, 2020. Available: https://www.bbc.com/news/world-53755067
[198]
Signal Messenger LLC, “Signal.” https://signal.org, 2026.
[199]
Meta, “WhatsApp.” https://www.whatsapp.com, 2026.
[200]
Apple, “iMessage.” https://support.apple.com/messages, 2026.
[201]
Meta, “Messenger.” https://www.messenger.com, 2026.
[202]
M. Singh, “Signal’s Brian Acton talks about exploding growth, monetization and WhatsApp data-sharing outrage.” https://techcrunch.com/2021/01/12/signal-brian-acton-talks-about-exploding-growth-monetization-and-whatsapp-data-sharing-outrage/, 2021.
[203]
I. Mehta, “WhatsApp now has more than 3 billion users a month.” https://techcrunch.com/2025/05/01/whatsapp-now-has-more-than-3-billion-users/, 2025.
[204]
M. Singh, “WhatsApp is now delivering roughly 100 billion messages a day.” https://techcrunch.com/2020/10/29/whatsapp-is-now-delivering-roughly-100-billion-messages-a-day/, 2020.
[205]
R. Pfefferkorn, “Content-oblivious trust and safety techniques: Results from a survey of online service providers,” Journal of Online Trust and Safety, vol. 1, no. 2, pp. 1–38, 2022.
[206]
S. Scheffler and J. R. Mayer, “SoK: Content moderation for end-to-end encryption,” Proceedings on Privacy Enhancing Technologies (PoPETs), vol. 2023, no. 2, pp. 403–429, 2023, doi: 10.56553/popets-2023-0060.
[207]
Facebook, “Messenger secret conversations: Technical whitepaper (version 2.0).” https://about.fb.com/wp-content/uploads/2016/07/messenger-secret-conversations-technical-whitepaper.pdf, 2017.
[208]
I. Leontiadis and S. Vaudenay, “Private message franking with after opening privacy,” in ICICS 23: 25th international conference on information and communication security, D. Wang, M. Yung, Z. Liu, and X. Chen, Eds., in LNCS, vol. 14252. Tianjin, China: Springer, Singapore, Singapore, 2023, pp. 197–214. doi: 10.1007/978-981-99-7356-9_12.
[209]
M. Gregoire, G. Schell, and S. Eskandarian, “Third-party moderation of abuse reports for end-to-end encrypted messaging with multiple moderators,” IACR Cryptol. ePrint Arch., vol. 2026, p. 10, 2026.
[210]
M. Gregoire, G. Schell, and S. Eskandarian, “Abuse reporting and enforcement for third-party moderators in private messaging,” IACR Cryptol. ePrint Arch., vol. 2026, p. 882, 2026.
[211]
L. Liu, D. S. Roche, A. Theriault, and A. Yerukhimovich, “Fighting fake news in encrypted messaging with the fuzzy anonymous complaint tally system (FACTS),” in ISOC network and distributed system security symposium – NDSS 2022, San Diego, CA, USA: The Internet Society, 2022.
[212]
T. Niitsuma, M. Yoshida, H. Tamori, and Y. Nakawake, “Prestige bias drives the viral spread of content reposted by influencers in online communities,” Scientific Reports, vol. 15, no. 1, p. 15282, 2025.
[213]
H. Fu, Y. Feng, C. Wu, and J. Xu, “Perseus: Tracing the masterminds behind cryptocurrency pump-and-dump schemes,” CoRR, vol. abs/2503.01686, 2025.
[214]
Z. Wang et al., “Abuse resistant traceability with minimal trust for encrypted messaging systems,” in NDSS, The Internet Society, 2026.
[215]
Signal Messenger LLC, “Phone number privacy and usernames.” https://support.signal.org/hc/en-us/articles/6712070553754-Phone-Number-Privacy-and-Usernames, 2026.
[216]
Meta, “About registration.” https://faq.whatsapp.com/441163784889902, 2026.
[217]
L. Crisan, “Launching default end-to-end encryption on messenger.” Meta Newsroom, 2023. Accessed: Nov. 17, 2026. [Online]. Available: https://about.fb.com/news/2023/12/default-end-to-end-encryption-on-messenger
[218]
Google, “A billion RCS messages are sent every day in the U.S.” Google Blog, May 13, 2025. Available: https://blog.google/products-and-platforms/platforms/android/billion-rcs-messages/
[219]
R. A. Varanasi, J. Pal, and A. Vashistha, “Accost, accede, or amplify: Attitudes towards COVID-19 misinformation on WhatsApp in india,” in CHI, ACM, 2022, pp. 256:1–256:17.
[220]
K. J. K. Feng, K. Song, K. Li, O. Chakrabarti, and M. Chetty, “Investigating how university students in the united states encounter and deal with misinformation in private WhatsApp chats during COVID-19,” in SOUPS @ USENIX security symposium, USENIX Association, 2022, pp. 427–446.
[221]
F. Benevenuto and P. Melo, “Misinformation campaigns through WhatsApp and telegram in presidential elections in brazil,” Commun. ACM, vol. 67, no. 8, pp. 72–77, 2024.
[222]
A. Kalogeropoulos and P. Rossini, “Unraveling WhatsApp group dynamics to understand the threat of misinformation in messaging apps,” New Media Soc., vol. 27, no. 3, pp. 1625–1650, 2025.
[223]
K. Cohn-Gordon, C. Cremers, B. Dowling, L. Garratt, and D. Stebila, “A formal security analysis of the Signal messaging protocol,” Journal of Cryptology, vol. 33, no. 4, pp. 1914–1983, 2020, doi: 10.1007/s00145-020-09360-1.
[224]
K. Cohn-Gordon, C. Cremers, L. Garratt, J. Millican, and K. Milner, “On ends-to-ends encryption: Asynchronous group messaging with strong security guarantees,” in ACM CCS 2018, D. Lie, M. Mannan, M. Backes, and X. Wang, Eds., ACM Press, 2018, pp. 1802–1819. doi: 10.1145/3243734.3243747.
[225]
J. Alwen, S. Coretti, and Y. Dodis, “The double ratchet: Security notions, proofs, and modularization for the Signal protocol,” in EUROCRYPT 2019, part i, Y. Ishai and V. Rijmen, Eds., in LNCS, vol. 11476. Springer, Cham, Switzerland, May 2019, pp. 129–158. doi: 10.1007/978-3-030-17653-2_5.
[226]
M. Chase, T. Perrin, and G. Zaverucha, “The Signal private group system and anonymous credentials supporting efficient verifiable encryption,” in ACM CCS 2020, J. Ligatti, X. Ou, J. Katz, and G. Vigna, Eds., ACM Press, 2020, pp. 1445–1459. doi: 10.1145/3372297.3417887.
[227]
N. Vatandas, R. Gennaro, B. Ithurburn, and H. Krawczyk, “On the cryptographic deniability of the Signal protocol,” in ACNS 20, part II, M. Conti, J. Zhou, E. Casalicchio, and A. Spognardi, Eds., in LNCS, vol. 12147. Springer, Cham, Switzerland, 2020, pp. 188–209. doi: 10.1007/978-3-030-57878-7_10.
[228]
S. Campion, J. Devigne, C. Duguey, and P.-A. Fouque, “Multi-device for Signal,” in ACNS 20, part II, M. Conti, J. Zhou, E. Casalicchio, and A. Spognardi, Eds., in LNCS, vol. 12147. Springer, Cham, Switzerland, 2020, pp. 167–187. doi: 10.1007/978-3-030-57878-7_9.
[229]
A. Bienstock, Y. Dodis, and P. Rösler, “On the price of concurrency in group ratcheting protocols,” in TCC 2020, part II, R. Pass and K. Pietrzak, Eds., in LNCS, vol. 12551. Springer, Cham, Switzerland, 2020, pp. 198–228. doi: 10.1007/978-3-030-64378-2_8.
[230]
A. Bienstock, J. Fairoze, S. Garg, P. Mukherjee, and S. Raghuraman, “A more complete analysis of the Signal double ratchet algorithm,” in CRYPTO 2022, part i, in LNCS. Springer, Cham, Switzerland, 2022, pp. 784–813. doi: 10.1007/978-3-031-15802-5_27.
[231]
R. Canetti, P. Jain, M. Swanberg, and M. Varia, “Universally composable end-to-end secure messaging,” in CRYPTO 2022, part II, in LNCS. Springer, Cham, Switzerland, 2022, pp. 3–33. doi: 10.1007/978-3-031-15979-4_1.
[232]
K. Bhargavan, C. Jacomme, F. Kiefer, and R. Schmidt, “Formal verification of the PQXDH post-quantum key agreement protocol for end-to-end secure messaging,” in USENIX security 2024: 33rd USENIX security symposium, D. Balzarotti and W. Xu, Eds., Philadelphia, PA, USA: USENIX Association, 2024. Available: https://www.usenix.org/conference/usenixsecurity24/presentation/bhargavan
[233]
K. Hashimoto, S. Katsumata, and T. Wiggers, “Bundled authenticated key exchange: A concrete treatment of signal’s handshake protocol and post-quantum security,” in USENIX security 2025: 34th USENIX security symposium, USENIX Association, 2025, pp. 6777–6796. Available: https://www.usenix.org/conference/usenixsecurity25/presentation/hashimoto-key-exchange
[234]
R. Fiedler, F. Günther, J. Pan, and R. Zeng, “XHMQV: Better efficiency and stronger security for signal’s initial handshake based on HMQV,” in Advances in cryptology – CRYPTO 2025, part VIII, in LNCS. Springer, Cham, Switzerland, 2025, pp. 109–140. doi: 10.1007/978-3-032-01913-4_4.
[235]
J. Len, E. Ghosh, P. Grubbs, and P. Rösler, “Interoperability in end-to-end encrypted messaging,” in CSLAW, ACM, 2026, pp. 15–25.
[236]
V. Cheval, C. Jacomme, and J. Richards, “Automated formal analysis of signal’s double ratchet: Attacks, fixes and security proofs,” in 2026 IEEE symposium on security and privacy, San Francisco, CA, USA: IEEE, May 2026, pp. 1522–1538. doi: 10.1109/SP63933.2026.00120.
[237]
P. Rösler, C. Mainka, and J. Schwenk, “More is less: On the end-to-end security of group chats in Signal, WhatsApp, and Threema,” in 2018 IEEE european symposium on security and privacy, London, United Kingdom: IEEE Computer Society Press, 2018, pp. 415–429. doi: 10.1109/EuroSP.2018.00036.
[238]
F. B. Durak and S. Vaudenay, “Bidirectional asynchronous ratcheted key agreement with linear complexity,” in IWSEC 19, N. Attrapadung and T. Yagi, Eds., in LNCS, vol. 11689. Springer, Cham, Switzerland, 2019, pp. 343–362. doi: 10.1007/978-3-030-26834-3_20.
[239]
C. Cremers, J. Fairoze, B. Kiesl, and A. Naska, “Clone detection in secure messaging: Improving post-compromise security in practice,” in ACM CCS 2020, J. Ligatti, X. Ou, J. Katz, and G. Vigna, Eds., ACM Press, 2020, pp. 1481–1495. doi: 10.1145/3372297.3423354.
[240]
Signal, “Technology preview: Sealed sender for signal.” https://signal.org/blog/sealed-sender/, 2018.
[241]
L. Chen and Q. Tang, “People who live in glass houses should not throw stones: Targeted opening message franking schemes.” Cryptology ePrint Archive, Report 2018/994, 2018. Available: https://eprint.iacr.org/2018/994
[242]
D. Mouris, P. Sarkar, and N. G. Tsoutsos, “PLASMA: Private, lightweight aggregated statistics against malicious adversaries,” Proceedings on Privacy Enhancing Technologies (PoPETs), vol. 2024, no. 3, pp. 4–24, 2024, doi: 10.56553/popets-2024-0064.
[243]
H. Li, S. Navot, and S. Tessaro, “POPSTAR: Lightweight threshold reporting with reduced leakage,” in USENIX security 2024: 33rd USENIX security symposium, D. Balzarotti and W. Xu, Eds., Philadelphia, PA, USA: USENIX Association, 2024. Available: https://www.usenix.org/conference/usenixsecurity24/presentation/li-hanjun
[244]
D. Mouris, C. Patton, H. Davis, P. Sarkar, and N. G. Tsoutsos, “Mastic: Private weighted heavy-hitters and attribute-based metrics,” Proceedings on Privacy Enhancing Technologies (PoPETs), vol. 2025, no. 1, pp. 290–319, 2025, doi: 10.56553/popets-2025-0017.
[245]
S. Kamara et al., “Outside looking in: Approaches to content moderation in end-to-end encrypted systems.” https://arxiv.org/pdf/2202.04617; Center for Democracy & Technology, 2022.
[246]
L. Wang, R. Wang, S. Williams-Ceci, S. Menda, and A. X. Zhang, “"Is reporting worth the sacrifice of revealing what i’ve sent?": Privacy considerations when reporting on end-to-end encrypted platforms,” in SOUPS, USENIX Association, 2023, pp. 491–508.
[247]
S. Scheffler and J. R. Mayer, “Group moderation under end-to-end encryption,” in CSLAW, ACM, 2024, pp. 36–47.
[248]
R. Canetti, A. Cohen, and Y. Lindell, “A simpler variant of universally composable security for standard multiparty computation,” in CRYPTO 2015, part II, R. Gennaro and M. J. B. Robshaw, Eds., in LNCS, vol. 9216. Springer Berlin Heidelberg, Germany, 2015, pp. 3–22. doi: 10.1007/978-3-662-48000-7_1.
[249]
R. Canetti, “Universally composable security: A new paradigm for cryptographic protocols,” in 42nd FOCS, IEEE Computer Society Press, 2001, pp. 136–145. doi: 10.1109/SFCS.2001.959888.
[250]
R. Canetti, D. Shahaf, and M. Vald, “Universally composable authentication and key-exchange with global PKI,” in PKC 2016, part II, C.-M. Cheng, K.-M. Chung, G. Persiano, and B.-Y. Yang, Eds., in LNCS, vol. 9615. Springer Berlin Heidelberg, Germany, 2016, pp. 265–296. doi: 10.1007/978-3-662-49387-8_11.
[251]
P. Rogaway and T. Shrimpton, “Cryptographic hash-function basics: Definitions, implications, and separations for preimage resistance, second-preimage resistance, and collision resistance,” in FSE 2004, B. K. Roy and W. Meier, Eds., in LNCS, vol. 3017. Springer, Heidelberg, 2004, pp. 371–388. doi: 10.1007/978-3-540-25937-4_24.
[252]
S. Goldwasser, S. Micali, and R. L. Rivest, “A digital signature scheme secure against adaptive chosen-message attacks,” SIAM Journal on Computing, vol. 17, no. 2, pp. 281–308, 1988.
[253]
D. Boneh, E. Shen, and B. Waters, “Strongly unforgeable signatures based on computational Diffie-Hellman,” in PKC 2006, M. Yung, Y. Dodis, A. Kiayias, and T. Malkin, Eds., in LNCS, vol. 3958. Springer Berlin Heidelberg, Germany, 2006, pp. 229–240. doi: 10.1007/11745853_15.
[254]
M. Bellare, A. Desai, D. Pointcheval, and P. Rogaway, “Relations among notions of security for public-key encryption schemes,” in CRYPTO’98, H. Krawczyk, Ed., in LNCS, vol. 1462. Springer Berlin Heidelberg, Germany, 1998, pp. 26–45. doi: 10.1007/BFb0055718.
[255]
M. Bellare, A. Boldyreva, A. Desai, and D. Pointcheval, “Key-privacy in public-key encryption,” in ASIACRYPT 2001, C. Boyd, Ed., in LNCS, vol. 2248. Springer Berlin Heidelberg, Germany, 2001, pp. 566–582. doi: 10.1007/3-540-45682-1_33.
[256]
R. Cramer and V. Shoup, “Design and analysis of practical public-key encryption schemes secure against adaptive chosen ciphertext attack,” SIAM Journal on Computing, vol. 33, no. 1, pp. 167–226, 2003.
[257]
M. Bellare and C. Namprempre, “Authenticated encryption: Relations among notions and analysis of the generic composition paradigm,” in ASIACRYPT 2000, T. Okamoto, Ed., in LNCS, vol. 1976. Springer Berlin Heidelberg, Germany, 2000, pp. 531–545. doi: 10.1007/3-540-44448-3_41.
[258]
P. Rogaway, “Authenticated-encryption with associated-data,” in ACM CCS 2002, V. Atluri, Ed., ACM Press, 2002, pp. 98–107. doi: 10.1145/586110.586125.
[259]
Anonymous authors, “Implementation and Supplementary Material for the BoSS paper.” https://anonymous.4open.science/r/BoSS_E2EE, 2026.
[260]
Ookla, “United states speedtest connectivity report, H2 2025.” https://www.ookla.com/research/reports/united-states-speedtest-connectivity-report-h2-2025, 2026.
[261]
A. Narayanan et al., “A first look at commercial 5G performance on smartphones,” in Proceedings of the web conference 2020 (WWW ’20), ACM, 2020, pp. 894–905. doi: 10.1145/3366423.3380169.
[262]
D. Dachman-Soled, L. Ducas, H. Gong, and M. Rossi, “LWE with side information: Attacks and concrete security estimation,” in CRYPTO 2020, part II, D. Micciancio and T. Ristenpart, Eds., in LNCS, vol. 12171. Springer, Heidelberg, 2020, pp. 329–358. doi: 10.1007/978-3-030-56880-1_12.
[263]
L.-P. Liu, “Linear transformation of multivariate normal distribution: Marginal, joint and posterior.” http://www.cs.columbia.edu/~liulp/pdf/linear_normal_dist.pdf.
[264]
I. Sason and S. Verdú, “Bounds among f-divergences,” CoRR, vol. abs/1508.00335, 2015, Available: https://arxiv.org/abs/1508.00335
[265]
F. Österreicher, “Csiszar’s f-divergence-basic properties,” RGMIA Research Report Collection, 2002.
[266]
G. Barthe and F. Olmedo, “Beyond differential privacy: Composition theorems and relational logic for f-divergences between probabilistic programs,” in ICALP 2013, part II, F. V. Fomin, R. Freivalds, M. Z. Kwiatkowska, and D. Peleg, Eds., in LNCS, vol. 7966. Springer, Heidelberg, 2013, pp. 49–60. doi: 10.1007/978-3-642-39212-2_8.

Use of Generative AI

Generative AI tools were used to polish the formatting and editing of this document and to assist with parts of the implementation. The research ideas, protocol designs, security proofs, and implementation pipeline are the original work of the author and the collaborators acknowledged in this thesis.


  1. We can reduce \(s \eta\) further to \(\Theta( \eta \cdot (s/\ell) \cdot \log (s/\ell))\) using a Chernoff bound to bound the number of collisions contributing to the sum, but we will use \(s\eta\) for the sake of simplicity of presentation.↩︎

  2. We do not count the public multiplications to produce powers of \(i\)↩︎

  3. We note if we don’t wish to reveal this to the server, we can use a fixed, global upper bound, or, if it is appropriate to the application, the client can add noise to provide differential privacy. It is also worth pointing out that prior work leaks the result set size as well.↩︎

  4. Of course, if \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle= 0\), the probability space is not well-defined, and in this case, we require the protocol to simply output \(\bot\).↩︎

  5. Throughout this chapter, we will describe the round and communication complexities using the asymptotic notation only based on \(n\). That is, all other parameters (e.g., security parameter) independent on \(n\) will be suppressed in the asymptotic expressions.↩︎

  6. Here the assumption that \(\boldsymbol{w}\) are normalized is without loss of generality.↩︎

  7. Regarding \(\langle \boldsymbol{w}_1, \boldsymbol{w}_2 \rangle\), there is a gap between the lowerbound result (i.e., \(\Omega(\frac{1}{n^2})\)) and our construction (i.e., \(\omega(\frac{\log n}{n})\)). Resolving the gap is left as an interesting open problem.↩︎

  8. This can be shown by a simple modification of the lower bound proof from Section 4.5.1.↩︎

  9. As noted previously, it is sufficient to store a short seed to identify the hash.↩︎

  10. We use cryptographic hash functions to instantiate the hashes in the random oracle model.↩︎

  11. We note that since the underlying messaging scheme is encrypted, the actual ciphertext sent will not be the same as the ciphertext received.↩︎

  12. We note that since \(S \in \mathcal{A}\), \(\mathcal{A}\) can produce valid-looking tags for each of these messages by producing the necessary signatures.↩︎

  13. Recall that \(s\) is the size of the CCBF bit vector \(T\)↩︎

  14. Technically, the item used in the CCBF is the tag \(\mathsf{tag}_x\), but we use \(x\) here for ease of notation.↩︎

  15. Recall that FACTS enforces a limit of \(L\) complaints per user per epoch.↩︎

↓ PDF Version