Definition
Secure multiparty computation (MPC) is a family of cryptographic protocols that let several parties, each holding a private input, compute an agreed function of all the inputs together, so that each party learns its own output and nothing beyond what its own input and output imply. The guarantee holds even when up to a stated number of parties are corrupted. A protocol counts as secure when it reveals no more than an ideal trusted party would: one that collects the inputs, computes the function and returns only the outputs.
The idea
Three hospitals want the total number of patients with a rare disease, but none wants to reveal its own count. Two companies want to know which customers they share without revealing the rest of their lists. Andrew Yao’s millionaires’ problem (1982) [357] asks two people to learn who is richer without either revealing a fortune. A trusted outsider who collects the inputs and announces only the result would solve each problem; MPC removes the need for that outsider.
The core idea is to compare the real protocol with that ideal world. In the ideal world, each party hands its input to an incorruptible calculator and receives only its output. A real protocol is secure if everything a corrupted party sees during it could have been produced by that party alone from its own input and output. Then the messages taught it nothing new. Tools such as secret sharing §5.44 make this possible: each input is split into random-looking shares, no party sees an input, yet arithmetic on the shares gives the arithmetic of the inputs.
The ideal world sets the limit as well as the goal. The output itself is information, and even the incorruptible calculator hands it out. MPC stops the protocol from leaking more than the output; it cannot stop the output from revealing inputs. Nor can the calculator check that a party’s input is true.
How it works
An MPC protocol is specified by four choices.
The function and the outputs. Fix and say which party receives which part of the result.
The adversary. A semi-honest adversary, also called honest-but-curious, controls parties that follow the protocol but study everything they see. A malicious adversary controls parties that may deviate in any way: send wrong values, stop early, choose inputs after seeing messages. The model also states how many of the parties may be corrupted, and whether they are chosen before the protocol starts or during it.
The technique. Three families are common.
Secret sharing: each input is split into shares, for example additive shares, random numbers whose sum modulo is the input, or the shares of threshold secret sharing. Additions are done locally on shares; multiplications need interaction, often using random multiplication triples prepared in advance. With an honest majority this can be secure against unlimited computing power: the BGW protocol of Ben-Or, Goldwasser and Wigderson (1988) [358] tolerates fewer than semi-honest or fewer than malicious parties.
Garbled circuits, introduced by Yao for two parties [359]: one party encrypts the function, written as a circuit of logic gates, and the other evaluates the encrypted circuit. The evaluator obtains the keys for its own input bits by oblivious transfer, a protocol in which a receiver gets one of two values from a sender without the sender learning which, and without the receiver learning the other value.
Homomorphic encryption, which allows computation on encrypted values without decrypting them.
The output step. The parties combine output shares, or the evaluator decrypts the output, so that each party receives exactly its part.
Without an honest majority, protocols rely on computational assumptions, and in general they cannot guarantee fairness, meaning that if any party receives the output then all do; Richard Cleve proved this limit in 1986 for coin tossing [360]. Such protocols promise security with abort instead: a cheating party may stop the others from receiving the output, but cannot change it or learn more.
Worked example
First, what the output alone reveals. Alice holds 5 and Bob holds 7, and both learn the sum 12. Alice computes , Bob’s input. A two-party sum reveals the other input even with the ideal calculator, so no protocol can make it private.
Now three parties sum their inputs with additive shares modulo 31: Alice holds 5, Bob 7 and Carol 6. Each splits its input into three shares that look random and sum to the input modulo 31, keeps one, and sends one to each other party.
Alice: 12, 27, 28, since .
Bob: 30, 9, 30, since .
Carol: 2, 19, 16, since .
Party 1 (Alice) receives the first shares and adds them: , and . Party 2 (Bob) adds the second shares: , and . Party 3 (Carol) adds the third shares: , and . They publish these partial sums: , and .
Each share a party receives is uniformly random on its own, so it says nothing about the input it came from; the Threshold secret sharing entry shows this counting argument. What remains is what the output implies. Alice knows the input 5 and the total 18, so Alice learns for Bob and Carol together, and nothing about the split. If Alice also knows from elsewhere that Carol holds 6, Alice learns Bob’s 7: auxiliary knowledge combines with the output. If Alice and Carol cooperate, they learn for Bob; again the ideal output alone implies this.
A malicious party breaks this protocol. If Carol publishes 13 instead of 12, the total becomes , and : a wrong result that no one detects. Protocols secure against malicious parties add checks, for example a message authentication code §5.7 on every share. A party can also choose its input to learn more. In a comparison that tells who holds the larger number and can be repeated, a party that changes its own claimed input each time learns one bit per run; 20 runs locate the other’s value among possibilities.
Stated precisely
Semi-honest security is defined by simulation. Let be the function, the inputs, and a set of at most corrupted parties, with inputs and outputs . Let be what those parties see in a run of the protocol: their inputs, their random choices and every message they receive. The protocol is secure if there is an efficient algorithm §14.1 , the simulator, such that for every and every such have the same distribution (perfect security), or distributions that no efficient algorithm can tell apart (computational security). Here is what the protocol actually gives all parties. Including the outputs in the comparison also requires the protocol to compute the right result.
Malicious security compares worlds instead of views: for every real adversary there is an ideal adversary, which may only choose inputs for the corrupted parties and talk to the trusted party, such that the outputs of the honest parties and of the adversary have the same joint distribution in both worlds, or indistinguishable ones. Variants state whether the adversary may abort after seeing its own output.
Because receives only and , whatever the corrupted parties can compute from the real run they could have computed from their inputs and outputs alone. That is the exact sense in which a party learns nothing beyond its input and output. The guarantee assumes that no more than parties are corrupted, that the adversary is of the stated kind, and, for computational security, the hardness assumptions behind the encryption or oblivious transfer used.
Limits and common mistakes
Output leakage is not a protocol flaw. The choice of function decides what the output reveals, and releasing an output is a deliberate declassification §1.43: a planned release of information derived from secret data. Adding random noise to outputs, as differential privacy does, is a separate technique for limiting what outputs reveal.
MPC does not check inputs. A party may lie about its input, and in the ideal world it may choose any input, including one designed to extract information, as the repeated comparison shows.
Corruption beyond the threshold, or a stronger adversary than the one modeled, voids the guarantee.
Semi-honest security says nothing about cheating. A protocol secure against semi-honest parties may give wrong results, or leak inputs, when a party deviates.
Fairness and completion are separate promises. Many protocols let a cheating party abort after learning its own output.
MPC costs far more than plain computation, mainly in messages and rounds of communication, and its implementations have side channels §1.29 like any other code.
Questions answered
What can a party still infer from its input and permitted function output?
A party can still infer everything that logically follows from its own input, its permitted output and whatever it already knew; a secure protocol guarantees only that it learns nothing more. Secure multiparty computation (MPC) is defined by comparison with an ideal trusted party that collects the inputs and returns only the outputs. That ideal party hands out the output too, so whatever the output implies is learned in both worlds.
Examples: in a two-party sum, Alice with input 5 and output 12 learns that Bob’s input is 7. In a three-party sum with output 18, Alice learns only that the other two inputs total 13; if Alice also knows one of them from elsewhere, Alice learns the other, and two parties who cooperate learn the third input. A party that may choose its own input, or run the computation repeatedly with different inputs, can learn more with each output, for example one bit per run of a comparison. Limiting this inference is a matter of choosing a less revealing function, restricting repeated runs or adding noise to the output, not of the protocol’s security.
Related entries: Threshold secret sharing (§5.44), Confidentiality (§1.8), Declassification (§1.43). Further reading: [102, 357, 358, 359, 360].