Review articles
# Secure Multiparty Computation

*Distributed computing* considers the scenario where a number of distinct, yet connected, computing devices (or parties) wish to carry out a joint computation of some function. For example, these devices may be servers that hold a distributed database system, and the function to be computed may be a database update of some kind. The aim of *secure multiparty computation* is to enable parties to carry out such distributed computing tasks in a secure manner. Whereas distributed computing often deals with questions of computing under the threat of machine crashes and other inadvertent faults, secure multiparty computation is concerned with the possibility of deliberately malicious behavior by some adversarial entity (these have also been considered in the distributed literature where they are called Byzantine faults). That is, it is assumed that a protocol execution may come under "attack" by an external entity, or even by a subset of the participating parties. The aim of this attack may be to learn private information or cause the result of the computation to be incorrect. Thus, two important requirements on any secure computation protocols are *privacy* and *correctness*. The privacy requirement states that nothing should be learned beyond what is absolutely necessary; more exactly, parties should learn their output and nothing else. The correctness requirement states that each party should receive its correct output. Therefore, the adversary must not be able to cause the result of the computation to deviate from the function that the parties had set out to compute.

Secure multiparty computation can be used to solve a wide variety of problems, enabling the utilisation of data without compromising privacy. Consider, for example, the problem of comparing a person's DNA against a database of cancer patients' DNA, with the goal of finding if the person is in a high risk group for a certain type of cancer. Such a task clearly has important health and societal benefits. However, DNA information is highly sensitive, and should not be revealed to private organizations. This dilemma can be solved by running a secure multiparty computation that reveals only the category of cancer that the person's DNA is close to (or none). In this example, the privacy requirement ensures that only the category of cancer is revealed, and nothing else about anyone's DNA (neither the DNA of the person being compared nor the DNA of the patients in the database). Furthermore, the correctness requirement guarantees that a malicious party cannot change the result (for example, make the person think that they are at risk of a type of cancer, and therefore need screening).

In another example, consider a trading platform where parties provide offers and bids, and are matched whenever an offer is greater than a bid (with, for example, the price of the trade being some function of the offer and bid prices). In such a scenario, it can be beneficial from a game theoretic perspective to not reveal the parties' actual offers and bids (because this information can be used by others in order to artificially raise prices or provide bids that are lower than their utility). Privacy here guarantees that only the match between buyer and seller and the resulting price is revealed, and correctness would guarantee that the price revealed is the correct one according to the function (and, for example, not some lower value). It is interesting to note that in some cases privacy is more important (such as in the DNA example), whereas in others correctness is more important (such as in the trading example). In any case, MPC guarantees both of these properties, and more.

**A note on terminology.** In the literature, beyond secure multiparty computation (with acronym MPC, and sometimes SMPC), there are also references to secure function evaluation (SFE). These notions overlap significantly and are often used synonymously. In addition, special cases of MPC often have their own names. Two examples are private set intersection (PSI), which considers the secure computation of the intersection of private sets, and threshold cryptography, which considers the secure computation of digital signatures and decryption, where no single party holds the private key.

**The definitional paradigm.** As we have mentioned, the setting that we consider is one where an adversarial entity controls some subset of the parties and wishes to attack the protocol execution. The parties under the control of the adversary are called `corrupted`

, and follow the adversary's instructions. Secure protocols should withstand any adversarial attack (where the exact power of the adversary will be discussed later). In order to formally claim and prove that a protocol is secure, a precise definition of security for multiparty computation is required. A number of different definitions have been proposed and these definitions aim to ensure a number of important security properties that are general enough to capture most (if not all) multiparty computation tasks. We now describe the most central of these properties:

*Privacy:*No party should learn anything more than its prescribed output. In particular, the only information that should be learned about other parties' inputs is what can be derived from the output itself. For example, in an auction where the only bid revealed is that of the highest bidder, it is clearly possible to derive that all other bids were lower than the winning bid. However, nothing else should be revealed about the losing bids.*Correctness:*Each party is guaranteed that the output that it receives is correct. To continue with the example of an auction, this implies that the party with the highest bid is guaranteed to win, and no party such as the auctioneer can influence this.*Independence of Inputs:*Corrupted parties must choose their inputs independently of the honest parties' inputs. This property is crucial in a sealed auction, where bids are kept secret and parties must fix their bids independently of others. We note that independence of inputs is*not*implied by privacy. For example, it may be possible to generate a higher bid, without knowing the value of the original one. Such an attack can actually be carried out on some encryption schemes (that is, given an encryption of $100, it is possible to generate a valid encryption of $101, without knowing the original encrypted value).*Guaranteed output delivery:*Corrupted parties should not be able to prevent honest parties from receiving their output. In other words, the adversary should not be able to disrupt the computation by carrying out a "denial of service" attack.*Fairness:*Corrupted parties should receive their outputs if and only if the honest parties also receive their outputs. The scenario where a corrupted party obtains output and an honest party does not should not be allowed to occur. This property can be crucial, for example, in the case of contract signing. Specifically, it would be very problematic if the corrupted party received the signed contract and the honest party did not. Note that guaranteed output delivery implies fairness, but the converse is not necessarily true.

We stress that this list does *not* constitute a definition of security, but rather a set of requirements that should hold for any secure protocol. Indeed, one possible approach to defining security is to just generate a list of separate requirements (as mentioned) and then say that a protocol is secure if all of these requirements are fulfilled. However, this approach is not satisfactory for the following reasons. First, it may be possible that an important requirement was missed. This is especially true because different applications have different requirements, and we would like a definition that is general enough to capture all applications. Second, the definition should be simple enough so that it is trivial to see that *all* possible adversarial attacks are prevented by the proposed definition.

The standard definition today^{5} therefore formalizes security in the following general way. As a mental experiment, consider an "ideal world" in which an external trusted (and incorruptible) party is willing to help the parties carry out their computation. In such a world, the parties can simply send their inputs to the trusted party, who then computes the desired function and passes each party its prescribed output. As the only action carried out by a party is that of sending its input to the trusted party, the only freedom given to the adversary is in choosing the corrupted parties' inputs. Notice that all of the described security properties (and more) hold in this ideal computation. For example, privacy holds because the only message ever received by a party is its output (and so it cannot learn any more than this). Likewise, correctness holds because the trusted party cannot be corrupted and so will always compute the function correctly.

Of course, in the "real world," there is no external party that can be trusted by all parties. Rather, the parties run some protocol among themselves without any help, and some of them are corrupted and colluding. Despite this, a secure protocol should emulate the so-called "ideal world." That is, a real protocol that is run by the parties (in a world where no trusted party exists) is said to be `secure`

, if no adversary can do more harm in a real execution that in an execution that takes place in the ideal world. This can be formulated by saying that for any adversary carrying out a successful attack in the real world, there exists an adversary that successfully carries out an attack with the same effect in the ideal world. However, successful adversarial attacks *cannot* be carried out in the ideal world. We therefore conclude that all adversarial attacks on protocol executions in the real world must also fail.

More formally, the security of a protocol is established by comparing the outcome of a real protocol execution to the outcome of an ideal computation. That is, for any adversary attacking a real protocol execution, there exists an adversary attacking an ideal execution (with a trusted party) such that the input/output distributions of the adversary and the participating parties in the real and ideal executions are essentially the same. Thus a real protocol execution "emulates" the ideal world. This formulation of security is called the `ideal/real simulation paradigm.`

In order to motivate the usefulness of this definition, we describe why all the properties described are implied. Privacy follows from the fact that the adversary's output is the same in the real and ideal executions. Because the adversary learns nothing beyond the corrupted party's outputs in an ideal execution, the same must be true for a real execution. Correctness follows from the fact that the honest parties' outputs are the same in the real and ideal executions, and from the fact that in an ideal execution, the honest parties all receive correct outputs as computed by the trusted party. Regarding independence of inputs, notice that in an ideal execution, all inputs are sent to the trusted party before any output is received. Therefore, the corrupted parties know nothing of the honest parties' inputs at the time that they send their inputs. In other words, the corrupted parties' inputs are chosen independently of the honest parties' inputs, as required. Finally, guaranteed output delivery and fairness hold in the ideal world because the trusted party always returns all outputs. The fact that it also holds in the real world again follows from the fact that the honest parties' outputs are the same in the real and ideal executions.

We remark that in some cases, the definition is relaxed to exclude fairness and guaranteed output delivery. The level of security achieved when these are excluded is called "security with abort," and the result is that the adversary may be able to obtain output, whereas the honest parties do not. There are two main reasons why this relaxation is used. First, in some cases, it is impossible to achieve fairness (for example, it is impossible to achieve fair coin tossing for two parties^{11}). Second, in some cases, more efficient protocols are known when fairness is not guaranteed. Thus, if the application does not require fairness (and in particular in cases where only one party receives output), this relaxation is helpful.

**Additional definitional parameter.** Adversarial power. The informal definition of security omits one very important issue: the power of the adversary that attacks a protocol execution. As we have mentioned, the adversary controls a subset of the participating parties in the protocol. However, we have not defined what power such an adversary has. We describe the two main parameters defining the adversary: its allowed adversarial behavior (that is, does the adversary just passively gather information or can it instruct the corrupted parties to act maliciously?) and its corruption strategy (that is, when or how parties come under the "control" of the adversary?):

The security of a protocol is established by comparing the outcome of a real protocol execution to the outcome of an ideal computation.

**Allowed adversarial behavior:**The most important parameter that must be to the actions that corrupted parties are allowed to take. There are three main types of adversaries:`Semi-honest adversaries`

: In the semi-honest adversarial model, even corrupted parties correctly follow the protocol specification. However, the adversary obtains the internal state of all the corrupted parties (such as the transcript of all the messages received) and attempts to use this to learn information that should remain private. This is a rather weak adversarial model, but a protocol with this level of security does guarantee that there is no inadvertent data leakage. In some cases, this is sufficient although in today's adversarial environment it is often insufficient. Semi-honest adversaries are also called "honest-but-curious" and "passive." (Sometimes,`fail-stop`

adversaries are also considered; these are essentially semi-honest adversaries who may also halt the protocol execution early.)`Malicious adversaries:`

In this adversarial model, the corrupted parties can`arbitrarily`

deviate from the protocol specification according to the adversary's instructions. In general, providing security in the presence of malicious adversaries is preferred, as it ensures that no adversarial attack can succeed. Malicious adversaries are also called "active."`Covert adversaries:`

^{1}This type of adversary may behave maliciously in an attempt to break the protocol. However, the security guarantee provided is that if it does attempt such an attack, then it will be detected with some specified probability that can be tuned to the application. We stress that unlike in the malicious model, if the adversary is not detected, then it may successfully cheat (for example, learn an honest party's input). This model is suited to settings where some real-world penalty can be associated with an adversary being detected, and the adversary's expectation is to lose overall if it attempts an attack.

**Corruption strategy:**The corruption strategy deals with the question of when and how parties are corrupted. There are three main models:`Static corruption model:`

In this model, the set of parties controlled by the adversary is fixed before the protocol begins. Honest parties remain honest throughout and corrupted parties remain corrupted.`Adaptive corruption model:`

Rather than having a fixed set of corrupted parties, adaptive adversaries are given the capability of corrupting parties during the computation. The choice of who to corrupt, and when, can be arbitrarily decided by the adversary and may depend on its view of the execution (for this reason it is called adaptive). This strategy models the threat of an external "hacker" breaking into a machine during an execution, or a party which is honest initially and later changes its behavior. We note that in this model, once a party is corrupted, it remains corrupted from that point on.`Proactive security model:`

^{7,30}This model considers the possibility that parties are corrupted for a certain period of time only. Thus, honest parties may become corrupted throughout the computation (such as in the adaptive adversarial model), but corrupted parties may also become honest. The proactive model makes sense in cases where the threat is an external adversary who may breach networks and break into services and devices, and secure computations are ongoing. When breaches are discovered, the systems are cleaned and the adversary loses control of some of the machines, making the parties honest again. The security guarantee is that the adversary can only learn what it derived from the local state of the machines that it corrupted, although they were corrupted. Such an adversary is sometimes called mobile.

In reality, a secure multiparty computation protocol is not run in isolation; rather, it is part of a system.

There is no "right" model when considering this information. Rather, the specific definition used and adversary considered depend on the application and the threats being dealt with.

**Modular sequential and concurrent composition.** In reality, a secure multiparty computation protocol is not run in isolation; rather, it is part of a system. Canetti^{5} proved that if you run an MPC protocol as part of a larger system, then it still behaves in the same way as if an incorruptible trusted party carried out the computation for the parties. This powerful theorem is called `modular composition`

, and it enables larger protocols to be constructed in a modular way using secure subprotocols, as well as analysing a larger system that uses MPC for some of the computations.

One important question in this context is whether or not the MPC protocol itself runs at the same time as other protocols. In the setting of *sequential composition*, the MPC protocol can run as a subprotocol of another protocol with arbitrary other messages being sent before and after the MPC protocol. However, the MPC protocol itself must be run without any other messages being sent in parallel. This is called the stand-alone setting and is the setting considered by the basic definition of security of Canetti.^{5} The sequential modular composition theorem of Canetti^{5} states that in this setting, the MPC protocol indeed behaves like a computation carried out by a trusted third party.

In some (many) cases, MPC protocols are run at the same time as other instances of itself, other MPC protocols, and other insecure protocols. In these cases, a protocol proven secure under the aforementioned standalone definition of security may not actually remain secure. A number of definitions were proposed to deal with this setting, the most popular of these is that of universal composability.^{6} Any protocol proven secure according to this definition is guaranteed to behave like an ideal execution, irrespective of what other protocols run concurrently to it. As such, this is the gold standard of MPC definitions. However, it does come at a price (both of efficiency and of assumptions required on the system setup).

**Important definitional implications. The ideal model and using MPC in practice.** The ideal/real paradigm for defining security actually has some very important implications for the use of MPC in practice. Specifically, in order to *use* an MPC protocol, all a practitioner needs to do is to consider the security of their system when an incorruptible trusted party carries out the computation for which MPC is used. If the system is secure in this case, then it will remain secure even when the real MPC protocols are used (under the appropriate composition case). This means that noncryptographers need not understand anything about *how* MPC protocols work, or even how security is defined. The ideal model provides a clean and easy to understand abstraction that can be utilized by those constructing systems.

**Any inputs are allowed.** Although the ideal model paradigm provides a simple abstraction, as described there is a subtle point that is sometime misunderstood. An MPC protocol behaves like an ideal execution; as such, the security obtained is analogous to that of an ideal execution. However, in an ideal execution, adversarial parties may input any values that they wish, and indeed there is no generic way of preventing this. Thus, if two people wish to see who earns a higher salary (without revealing any more than this one bit of information), then nothing stops one of them from inputting the maximum possible value as their salary (and then behaving honestly in the MPC protocol itself), with the result being that the output is that they earn more. Thus, if the security of an application depends on the party's using *correct inputs*, then mechanisms must be used to enforce this. For example, it is possible to require signed inputs and have the signature be verified as part of the MPC computation. Depending on the specific protocol, this can add significant cost.

**MPC secures the process, but not the output.** Another subtlety that is often misunderstood is that MPC secures the process, meaning that nothing is revealed by the computation itself. However, this does not mean that the output of the function being computed does not reveal sensitive information. For an extreme example, consider two people computing the average of their salaries. It is indeed true that nothing but the average will be output, but given a person's own salary and the average of both salaries, they can derive the exact salary of the other person. Thus, just using MPC does not mean that all privacy concerns are solved. Rather, MPC secures the computing process, and the question of what functions should and should not be computed due to privacy concerns still needs to be addressed. In some cases, such as threshold cryptography, this question is not an issue (because the output of cryptographic functions does not reveal the key, assuming that it is secure). However, in other cases, it may be less clear.

The definition of security seems to be very restrictive in that no adversarial success is tolerated, and the protocol should behave as if a trusted third party is carrying out the computation. Thus, one may wonder whether it is even possible to obtain secure protocols under this definition, and if yes, for which distributed computing tasks. Perhaps surprisingly, powerful feasibility results have been established, demonstrating that in fact, *any* distributed computing task (function) can be securely computed, in the presence of malicious adversaries. We now briefly state the most central of these results. Let *n* denotes the number of participating parties and let *t* denotes a bound on the number of parties that may be corrupted (where the identity of the corrupted parties is unknown):

- For
*t < n/*3 (that is, when less than a third of the parties can be corrupted), secure multiparty protocols with fairness and guaranteed output delivery can be achieved for any function with computational security assuming a synchronous point-to-point network with authenticated channels,^{18}and with information-theoretic security assuming the channels are also private.^{3, 9} - For
*t < n/*2 (that is, in the case of a guaranteed honest majority), secure multiparty protocols with fairness and guaranteed output delivery can be achieved for any function with computational and information-theoretic security, assuming that the parties also have access to a broadcast channel.^{18, 33} - For
*t ≥ n/*2 (that is, when the number of corrupted parties is not limited), secure multiparty protocols (without fairness or guaranteed output delivery) can be achieved.^{18, 37}

In the setting of concurrent composition described earlier, it has also been shown that any function can be securely computed.^{6, 8}

In summary, secure multiparty protocols exist for any distributed computing task. This fact is what provides its huge potential—whatever needs to be computed can be computed securely! We stress, however, that the aforementioned feasibility results are *theoretical*, meaning that they demonstrate that this is possible in principle. They do not consider the practical efficiency costs incurred; these will be mentioned here later.

We conclude this section with a caveat. The feasibility results are proven in specific models, and under cryptographic hardness and/or setting assumptions. It is beyond the scope of this review to describe these details, but it is important to be aware that they need to be considered.

Over the past three decades, many different techniques have been developed for constructing MPC protocols with different properties, and for different settings. It is way beyond the scope of this article to even mention all of the techniques, and we highly recommend reading^{15} for an extremely well-written and friendly introduction to MPC, such as a survey of the major techniques. Nevertheless, we will provide a few simple examples of how MPC protocols are constructed, in order to illustrate how it can work.

**Shamir secret sharing.** MPC protocols for an honest majority typically utilize secret sharing as a basic tool. We will therefore begin by briefly describing Shamir's secret sharing scheme.^{34}

A secret sharing scheme solves the problem of a dealer who wishes to share a secret *s* among *n* parties, so that any subset of *t* + 1 or more of the parties can reconstruct the secret, yet no subset of *t* or fewer parties can learn anything about the secret. A scheme that fulfills these requirements is called a (*t* + 1)-`out-of-`

.*n*-threshold secret-sharing scheme

Shamir's secret sharing scheme utilizes the fact that for any for *t* + 1 points on the two dimensional plane (*x*_{1}, *y*_{1}), …, (*x*_{t + 1}, *y*_{t + 1}) with unique *x _{i}*, there exists a unique polynomial

Given this, in order to share a secret *s*, the dealer chooses a random polynomial *q*(*x*) of degree at most *t* under the constraint that *q*(0) = *s*. (Concretely, the dealer sets *a*_{0} = *s* and chooses random coefficients *a*_{1}, …, *a _{t}* ∈ Z

**Honest-majority MPC with secret sharing.** The first step in most protocols for *general* MPC (that is, protocols that can be used to compute any function) is to represent the function being computed as a Boolean or arithmetic circuit. In the case of honest-majority MPC based on secret sharing, the arithmetic circuit (comprised of multiplication and addition gates) is over a finite field Z_{p} with *p* > *n*. We remark that arithmetic circuits are Turing complete, and so any function can be represented in this form. The parties participating in the MPC protocol are all provided in this circuit, and we assume they can all communicate securely with each other. The protocol for semi-honest adversaries (see here for what is needed for the case of malicious adversaries) consists of the following phases:

**Input sharing:**In this phase, each party shares its input with the other parties, using Shamir's secret sharing. That is, for each input wire to the circuit, the party whose input is associated with that wire plays the dealer in Shamir's secret sharing to share the value to all parties. The secret sharing used is (*t*+ 1)-out-of-*n*, with (thus, the degree of the polynomial is*t*). This provides security against any minority of corrupted parties, because no such minority can learn anything about the shared values. Following this step, the parties hold secret shares of the values on each input wire.**Circuit evaluation:**In this phase, the parties evaluate the circuit one gate at a time, from the input gates to the output gates. The evaluation maintains the invariant that for every gate for which the parties hold (*t*+ 1)-out-of-*n*sharings of the values on the two input wires, the result of the computation is a (*t*+ 1)-out-of-*n*secret sharing of the value on the output wire of the gate.

*Computing addition gates:*According to the invariant, each party holds a secret sharing of the values on the input wires to the gate; we denote these polynomials by*a*(*x*) and*b*(*x*) and this means that the*i*th party holds the values*a*(*i*) and*b*(*i*). The output wire of this gate should be a (*t*+ 1)-out-of-*n*secret sharing of the value*a*(0) +*b*(0). This is easily computed by the*i*th party locally setting its share on the output wire to be*a*(*i*) +*b*(*i*). Observe that by defining the polynomial*c*(*x*) =*a*(*x*) +*b*(*x*), this means that the*i*th party holds*c*(*i*). Furthermore,*c*(*x*) is a degree-*t*polynomial such that*c*(0) =*a*(0) +*b*(0). Thus, the parties hold a valid (*t*+ 1)-out-of-*n*secret sharing of the value*a*(0) +*b*(0), as required. Observe that no communication is needed in order to compute addition gates.*Computing multiplication gates:*Once again, denote the polynomials on the input wires to the gate by*a*(*x*) and*b*(*x*). As for an addition gate, the*i*th party can locally multiply its shares to define*c*(*i*) =*a*(*i*) ·*b*(*i*). By the properties of polynomial multiplication, this defines a polynomial*c*(*x*) such that*c*(0) =*a*(0) ·*b*(0). Thus,*c*(*x*) is a sharing of the correct value (the product of the values on the input wires). However,*c*(*x*) is of degree-2*t*, and thus, this is a (2*t*+ 1)-out-of-*n*secret sharing and not a (*t*+ 1)-out-of-*n*secret sharing. In order to complete the computation of the multiplication gate, it is therefore necessary for the parties to carry out a*degree reduction*step, to securely reduce the degree of the polynomial shared among the parties from 2*t*to*t*, without changing its value at 0. Before proceeding to describe this, observe that as*t*<*n*/2, the shares held by the*n*parties do fully determine the polynomial*c*(*x*) of degree 2*t*+ 1.

In order to compute the degree reduction step, we use an idea from Damgård and Nielsen^{12} (we describe the basic idea here although Damgård and Nielsen^{12} have a far more efficient way of realizing it than what we describe here). Assume that the parties all hold two independent secret sharings of an unknown random value *r*, the first sharing via a polynomial of degree-2*t* denoted *R*_{2t}(*x*), and the second sharing via a polynomial of degree-*t* denoted *R _{t}*(

Over the past three decades, many different techniques have been developed for constructing MPC protocols with different properties, and for different settings.

Observe that *c'*(*x*) is of degree *t* as *R _{t}*(

It remains to show how the parties generate two independent secret sharings of an unknown random value *r* via polynomials of degree 2*t* and *t*. This can be achieved by the *i*th party, for all *i* = 1, …, *n*, playing the dealer and sharing a random value *r _{i}* via a degree-2

**Output reconstruction:**Once the parties have obtained shares on the output wires, they can obtain the outputs by simply sending their shares to each other and reconstructing the outputs via interpolation. Observe that it is also possible for different parties to obtain different outputs, if desired. In this case, the parties send the shares for reconstruction only to the relevant parties who are supposed to obtain the output on a given wire.

This protocol is secure for *semi-honest adversaries* as long as less than *n*/2 parties are corrupted. This is because the only values seen by the parties during the computation are secret shares (that reveal nothing about the values they hide), and opened *d*(0) values that reveal nothing about the actual values on the wires due to the independent random sharings used each time. Note that in order to achieve security in the presence of *malicious adversaries* who may deviate from the protocol specification, it is necessary to utilize different methods to prevent cheating. See Beerliová-Trubíniová and Hirt^{4}, Chida et al.,^{10} and Furukawa and Lindell^{16} for a few examples of how to efficiently achieve security in the presence of malicious adversaries.

**Private set intersection.** Earlier we described an approach to *general* secure computation that can be used to securely compute any function. In many cases, these general approaches turn out to actually be the most efficient (especially when considering malicious adversaries). However, in some cases, the specific structure of the function being solved enables us to find faster, tailored solutions. In this and the next section, we present two examples of such functions.

In a private set intersection protocol, two parties with private sets of values wish to find the intersection of the sets, without revealing anything but the elements in the intersection. In some cases, some function of the intersection is desired, such as its size only. There has been a lot of work on this problem, with security for both semi-honest and malicious adversaries, and with different efficiency goals (few rounds, low communication, low computation, etc.). In this section, we describe the idea behind the protocol of Kolesnikov et al.;^{23} the actual protocol of Kolesnikov et al.^{23} is far more complex, but we present the conceptually simple idea underlying their construction.

The aim of threshold cryptography is to enable a set of parties to carry out cryptographic operations, without any single party holding the secret key.

A pseudorandom function *F* is a keyed function with the property that outputs of the function on known inputs look completely random. Thus, for any given list of elements *x*_{1}, …, *x _{n}*, the series of values

Now, consider two parties with respective sets of private elements; denote them *x*_{1}, …, *x _{n}* and

- The first party chooses a key
*k*for a pseudorandom function. - The two parties run
*n*oblivious pseudorandom function evaluations: in the*i*th execution, the first party inputs*k*and the second party inputs*y*. As a result, the second party learns_{i}*F*(_{k}*y*_{1}), …,*F*(_{k}*y*), whereas the first party learns nothing about_{n}*y*_{1}, …,*y*._{n} - The first party locally computes
*F*(_{k}*x*_{1}), …,*F*(_{k}*x*) and sends the list to the second party. It can compute this because it knows_{n}*k*. - The second party computes the intersection between the lists
*F*(_{k}*y*_{1}), …,*F*(_{k}*y*) and_{n}*F*(_{k}*x*_{1}), …,*F*(_{k}*x*), and outputs all values_{n}*y*for which_{j}*F*(_{k}*y*) is in the intersection. (The party knows these values because it knows the association between_{j}*y*and_{j}*F*(_{k}*y*).)_{j}

The protocol reveals nothing but the intersection because the first party learns nothing about *y*_{1}, …, *y _{n}* from the oblivious pseudorandom function evaluations, and the second party learns nothing about values of

The most efficient private set intersection protocols today use advanced hashing techniques and can process millions of items in a few seconds.^{23,31,32}

**Threshold cryptography.** The aim of threshold cryptography is to enable a set of parties to carry out cryptographic operations, without any single party holding the secret key. This can be used to ensure multiple signatories on a transaction, or alternatively to protect secret keys from being stolen by spreading key shares out on different devices (so that the attacker has to breach all devices in order to learn the key). We demonstrate a very simple protocol for two-party RSA, but warn that for more parties (and other schemes), it is much more complex.

RSA is a public-key scheme with public-key (*e*, *N*) and private-key (*d*, *N*). The basic RSA function is *y* = *x ^{e}* mod

In addition, observe that given the output *x* and its share *d*_{1} of the private exponent, the first party can compute *x*_{2} = *y/y*^{d}_{1} mod *N* (this is correct because *x*_{2}=*y*^{d2}=*y*^{d1+d2-d1} = *y/y*^{d1} mod *N*). This means that the first party does not learn anything more than the output from the protocol, as it can generate the messages that it receives in the protocol by itself from its own input and the output.

We stress that full-blown threshold cryptography supports quorum approvals involving many parties (for example, requiring (*t* + 1)-out-of-*n* parties to sign, and maintaining security for any subset of *t* corrupted parties). This needs additional tools, but can also be done very efficiently; see Shoup^{35} and references within. Recently, there has been a lot of interest in threshold ECDSA due to its applications to protecting cryptocurrencies.^{14,17,26,27}

**Dishonest-majority MPC.** Previously, we described a general protocol for MPC that is secure as long as an adversary cannot corrupt more than a minority of the parties. In the case of a dishonest majority, including the important special case of two parties (with one corrupted), completely different approaches are needed. There has been a very large body of work in this direction, from the initial protocols of Beaver et al.^{2}, Goldreich et al.^{18}, and Yao^{37} that focused on feasibility, and including a lot of recent work focused on achieving concrete efficiency. There is so much work in this direction that any attempt to describe it here will do it a grave injustice. We therefore refer the reader to Evans et al.^{15} for a description of the main approaches, including the GMW oblivious transfer approach,^{18,21} garbled circuits,^{2,37} cut-and-choose,^{28} SPDZ,^{13} TinyOT,^{29} MPC in the head,^{22} and more. (We stress that for each of these approaches, there have been many follow-up works, achieving increasingly better efficiency.)

**Efficient and practical MPC.** The first 20 years of MPC research focused primarily on feasibility: how to define and prove security for multiple adversarial and network models, under what cryptographic and setup assumptions it is possible to achieve MPC, and more. The following decade saw a large body of research around making MPC more and more efficient. The first steps of this process were purely algorithmic and focused on reducing the overhead of the cryptographic primitives. Following this, other issues were considered that had significant impact: the memory and communication, utilisation of hardware instructions such as AES-NI, and more. In addition, as most general protocols require the circuit representation of the function being computed, and circuits are hard to manually construct, special purpose MPC compilers from code to circuits were also constructed. These compilers are tailored to be sensitive to the special properties of MPC. For example, in many protocols XOR gates are computed almost for free,^{24} in contrast to AND/OR gates that cost. These compilers therefore minimize the number of AND gates, even at the expense of considerably more XOR gates. In addition, the computational cost of some protocols is dominated by the circuit size, whereas in others, it is dominated by the circuit depth. Thus, some compilers aim to generate the smallest circuit possible, whereas others aim to generate a circuit with the lowest depth. See Hastings et al.^{19} for a survey on general-purpose compilers for MPC and their usability. The combination of these advancements led to performance improvements of many orders of magnitude in just a few years, paving the way for MPC to be fast enough to be used in practice for a wide variety of problems. See Evans et al.^{15} (Chapter 4) for a description of a few of the most significant of these advancements.

There are many great theoretical examples of where MPC can be helpful. It can be used to compare no-fly lists in a privacy-preserving manner, to enable private DNA comparisons for medical and other purposes, to gather statistics without revealing anything but the aggregate results, and much more. Up until very recently, these theoretical examples of usage were almost all we had to say about the potential benefits of MPC. However, the situation today is very different. MPC is now being used in multiple real-world use cases, and usage is growing fast.

We will conclude this article with some examples of MPC applications that have been actually deployed.

**Boston wage gap.**^{25} The Boston Women's Workforce Council used MPC in 2017 in order to compute statistics on the compensation of 166,705 employees across 114 companies, comprising roughly 16% of the Greater Boston area workforce. The use of MPC was crucial because companies would not provide their raw data due to privacy concerns. The results showed that the gender gap in the Boston area is even larger than previously estimated by the U.S. Bureau of Labor Statistics. This is a powerful example demonstrating that MPC can be used for social good.

**Advertising conversion.**^{20} In order to compute accurate conversion rates from advertisements to actual purchases, Google computes the *size* of the intersection between the list of people shown an advertisement to the list of people actually purchasing the advertised goods. When the goods are not purchased online and so the purchase connection to the shown advertisement cannot be tracked, Google and the company paying for the advertisement have to share their respective lists in order to compute the intersection size. In order to compute this without revealing anything but the size of the intersection, Google utilizes a protocol for privacy-preserving set intersection. The protocol used by Google is described in Ion et al.^{20} Although this protocol is far from the most efficient known today, it is simple and meets their computational requirements.

**MPC for cryptographic key protection.**^{38} As described in earlier, threshold cryptography provides the ability to carry out cryptographic operations (such as decryption and signing) without the private key being held in any single place. A number of companies are using threshold cryptography as an alternative to legacy hardware for protecting cryptographic keys. In this application, MPC is not run between different parties holding private information. Rather, a single organization uses MPC to generate keys and compute cryptographic operations, without the key ever being in a single place where it can be stolen. By placing the key shares in different environments, it is very hard for an adversary to steal all shares and obtain the key. In this setting, the proactive model described earlier is the most suitable. Another use of MPC in this context is for protecting the signing keys used for protecting cryptocurrencies and other digital assets. Here, the ability to define general quorums enables the cryptographic enforcement of strict policies for approving financial transactions, or to share keys between custody providers and clients.

**Government collaboration.**^{39} Different governmental departments hold information about citizens, and significant benefit can be obtained by correlating that information. However, the privacy risks involved in pooling private information can prevent governments from doing this. For example, in 2000, Canada scrapped a program to pool citizen information, under criticism that they were building a "big brother database." Utilising MPC, Estonia collected encrypted income tax records and higher education records to analyze if students who work during their degree are more likely to fail than those focusing solely on their studies. By using MPC, the government was guaranteed that all data protection and tax secrecy regulations were followed without losing data utility.

**Privacy-preserving analytics.**^{40} Machine learning usage is increasing rapidly in many domains. MPC can be used to run machine learning models on data without revealing the model (which contains precious intellectual property) to the data owner, and without revealing the data to the model owner. In addition, statistical analyses can be carried out between organizations for the purpose of anti-money laundering, risk score calculations, and more.

Secure multiparty computation is a fantastic example of success in the long game of research.^{36} For the first 20 years of MPC research, no applications were in sight, and it was questionable whether or not MPC would ever be used. In the past decade, the state of MPC usability has undergone a radical transformation. In this time, MPC has not only become fast enough to be used in practice, but it has received industry recognition and has made the transition to a technology that is deployed in practice. MPC still requires great expertise to deploy, and additional research breakthroughs are needed to make secure computation practical on large data sets and for complex problems, and to make it easy to use for nonexperts. The progress from the past few years, and the large amount of applied research now being generated, paints a positive future for MPC in practice. Together with this, deep theoretical work in MPC continues, ensuring that applied MPC solutions stand on strong scientific foundations.

**Figure. Watch the author discuss this work in the exclusive Communications video. https://cacm.acm.org/videos/secure-multiparty-computation**

1. Aumann, Y., Lindell, Y. Security against covert adversaries: Efficient protocols for realistic adversaries. *J. Cryptol. 23*, 2 (2010), 281–343 (extended abstract at *TCC 2007*).

2. Beaver, D., Micali, S., Rogaway, P. The round complexity of secure protocols. In *22 ^{nd} STOC* (1990), 503–513.

3. Ben-Or, M., Goldwasser, S., Wigderson, A. Completeness theorems for non-cryptographic fault-tolerant distributed computation. In *20 ^{th} STOC* (1988), 1–10.

4. Beerliová-Trubíniová, Z., Hirt, M. Perfectly-secure MPC with linear communication complexity. In *TCC 2008* (2008), Springer (LNCS 4948), 213–230.

5. Canetti, R. Security and composition of multiparty cryptographic protocols. *J. Cryptol. 13*, 1 (2000), 143–202.

6. Canetti, R. Universally composable security: A new paradigm for cryptographic protocols. In the *42 ^{nd} FOCS* (2001), 136–145.

7. Canetti, R., Herzberg, A. Maintaining security in the presences of transient faults. In *CRYPTO'94* (1994), Springer-Verlag (LNCS 839), 425–438.

8. Canetti, R., Lindell, Y., Ostrovsky, R., Sahai, A. Universally composable two-party and multi-party computation. In the *34 ^{th} STOC* (2002), 494–503. http://eprint.iacr.org/2002/140.

9. Chaum, D., Crépeau, C., Damgård, I. Multi-party unconditionally secure protocols. In the *20 ^{th} STOC* (1988), 11–19.

10. Chida, K., Genkin, K., Hamada, K., Ikarashi, D., Kikuchi, R., Lindell, Y., Nof, A. Fast large-scale honest-majority MPC for malicious adversaries. In *CRYPTO 2018* (2018), Springer (LNCS 10993), 34–64.

11. Cleve, R. Limits on the security of coin flips when half the processors are faulty. In the *18 ^{th} STOC* (1986), 364–369.

12. Damgård, I., Nielsen, J. Scalable and unconditionally secure multiparty computation. In *CRYPTO 2007* (2007), Springer (LNCS 4622), 572–590.

13. Damgård, I., Pastro, V., Smart, N.P., Zakarias, S. Multiparty computation from somewhat homomorphic encryption. In *CRYPTO 2012* (2012), Springer (LNCS 7417), 643–662.

14. Doerner, J., Kondi, Y., Lee, E., Shelat, A. Threshold ECDSA from ECDSA assumptions: The multiparty case. In *IEEE Symposium on Security and Privacy 2019* (2019), 1051–1066.

15. Evans, D., Kolesnikov, V., Rosulek, M. *A Pragmatic Introduction to Secure Multi-Party Computation*. NOW Publishers, 2018.

16. Furukawa, J., Lindell, Y. Two-thirds honest-majority MPC for malicious adversaries at almost the cost of semi-honest. In the *26 ^{th} ACM CCS* (2019), 1557–1571.

17. Gennaro, R., Goldfeder, S. Fast multiparty threshold ECDSA with fast trustless setup. In the *25 ^{th} ACM CCS 2018* (2018), 1179–1194.

18. Goldreich, O., Micali, S., Wigderson, A. How to play any mental game – A completeness theorem for protocols with honest majority. In the *19 ^{th} STOC* (1987), O. Goldreich, ed. Volume 2 of

19. Hastings, M., Hemenway, B., Noble, D., Zdancewic, S. SoK: General purpose compilers for secure multi-party computation. In *IEEE Symposium on Security and Privacy 2019* (2019), 1220–1237.

20. Ion, M., Kreuter, B., Nergiz, E., Patel, S., Saxena, S., Seth, K., Shanahan, D., Yung, M. Private intersection-sum protocol with applications to attributing aggregate Ad conversions. *IACR Cryptology ePrint Archive*, Report 2017 (2017), 738.

21. Ishai, Y., Kilian, J., Nissim, K., Petrank, E. Extending oblivious transfers efficiently. In *CRYPTO 2003* (2003), Springer (LNCS 2729), 145–161.

22. Ishai, Y., Prabhakaran, M., Sahai, A. Founding cryptography on oblivious transfer – Efficiently. In *CRYPTO 2008* (2008), Springer (LNCS 5157), 572–591.

23. Kolesnikov, V., Kumaresan, R., Rosulek, M., Trieu, N. Efficient batched oblivious PRF with applications to private set intersection. In the *23 ^{rd} ACM CCS* (2016), 818–829.

24. Kolesnikov, V., Schneider, T. Improved garbled circuit: Free XOR gates and applications. In *ICALP 2008* (2008), Springer (LNCS 5126), 486–498.

25. Lapets, A., Jansen, F., Albab, K.D., Issa, R., Qin, L., Varia, M., Bestavros, A. Accessible privacy-preserving web-based data analysis for assessing and addressing economic inequalities. In *COMPASS 2018* (2018), 48:1–48:5.

26. Lindell, Y. Fast secure two-party ECDSA signing. In *CRYPTO 2017* (2017), Springer (LNCS 10402), 613–644.

27. Lindell, Y., Nof, A. Fast secure multiparty ECDSA with practical distributed key generation and applications to cryptocurrency custody. In the *25 ^{th} ACM CCS* (2018), 1837–1854.

28. Lindell, Y., Pinkas, B. An efficient protocol for secure two-party computation in the presence of malicious adversaries. In *EUROCRYPT* (2007), Springer, 52–78.

29. Nielsen, J.B., Nordholt, P.S., Orlandi, C., Burra, S.S. A new approach to practical active-secure two-party computation. In *CRYPTO 2012* (2012), Springer (LNCS 7417), 681–700.

30. Ostrovsky, R., Yung, M. How to withstand mobile virus attacks. In *10 ^{th} PODC* (1991), 51–59.

31. Pinkas, B., Rosulek, M., Trieu, N., Yanai, A. SpOT-light: Lightweight private set intersection from sparse OT extension. In *CRYPTO 2019* (2019), Springer (LNCS 11694), 401–431.

32. Pinkas, B., Schneider, T., Zohner, M. Scalable private set intersection based on OT extension. *ACM T. Privacy Sec. 21*, 2:7 (2018), 1–35.

33. Rabin, T., Ben-Or, M. Verifiable secret sharing and multi-party protocols with honest majority. In the *21 ^{st} STOC* (1989), 73–85.

34. Shamir, A. How to share a secret. *CACM 22*, 11 (1979), 612–613.

35. Shoup, V. Practical threshold signatures. In *EUROCRYPT 2000* (2000), Springer (LNCS 1807), 207–220.

36. Vardi, M. The long game of research. *CACM 62*, 9 (2019), 7.

37. Yao, A. How to generate and exchange secrets. In *27 ^{th} FOCS* (1986), 162–167.

38. Unbound Tech. (www.unboundtech.com), Sepior (sepior.com), and Curv (www.curv.co).

39. Sharemind, https://sharemind.cyber.ee.

40. Duality, https://duality.cloud.

**©2021 ACM 0001-0782/21/1**

Permission to make digital or hard copies of part or all of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and full citation on the first page. Copyright for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, to republish, to post on servers, or to redistribute to lists, requires prior specific permission and/or fee. Request permission to publish from permissions@acm.org or fax (212) 869-0481.

The Digital Library is published by the Association for Computing Machinery. Copyright © 2021 ACM, Inc.

No entries found