Secure Multi-Party Computation

Research
Introduced by
Andrew Yao
Year
1982
Type
Cryptographic protocol family
Family
Privacy-preserving analysis

What does it do?

Secure Multi-Party Computation (SMPC) is a cryptographic paradigm in which several parties jointly compute a function of their private inputs while learning only the result.

Andrew Yao's 1982 paper formulated this problem for m parties holding integer inputs and described three ways to solve it using one-way functions, which are easy to evaluate but hard to invert. The approach has since been applied to collaborative analysis of sensitive data, for example in finance, healthcare and machine learning.

The intuition behind the method

Imagine two colleagues who each hold a private number and want to learn whether their combined total exceeds a threshold, without either revealing the number. SMPC works like a sealed room: both parties supply their data, a protocol performs the calculation, and only the agreed result comes out. Neither party sees the other's raw input. The guarantees depend on explicit assumptions: the adversary model (semi-honest parties follow the protocol but try to learn more; malicious parties may deviate), the corruption threshold (how many parties may collude before privacy is lost, which differs between honest-majority and dishonest-majority settings), and computational hardness assumptions such as the existence of one-way functions. Outside the stated model, the guarantees do not apply.

History

Andrew Yao's 1982 paper, 'Protocols for secure computations', posed the problem of computing a function of m parties' private integer inputs without unduly disclosing them, and described three solutions based on one-way functions. It also discussed how many bits must be exchanged and how to prevent cheating. The problem is often illustrated by Yao's 'Millionaires' Problem', in which two parties compare their wealth without revealing the amounts. Later work developed further constructions such as garbled circuits and oblivious transfer, along with efficiency improvements and software frameworks.

When to use it

Choose SMPC when several parties must compute a joint function over private inputs and none is willing to give its data to a trusted third party. Typical problems include private set intersection, joint statistics, secret voting, private database queries and oblivious negotiation. The protocols rely on computational assumptions such as the existence of one-way functions. Do not choose SMPC when a single party already holds the data, or when the communication needed for a large circuit is impractical, since the cost grows with circuit size and with the number of parties. If statistical disclosure of aggregate results is acceptable, Differential Privacy may be a lighter alternative.

Limitations and considerations

  • Communication cost: the number of interactive message rounds grows with circuit depth and with the number of parties
  • Computation cost: garbling and evaluating large circuits is much slower than computing the same function on plaintext data
  • Implementation difficulty: oblivious transfer and garbling must be implemented exactly, and small errors can break privacy
  • Collusion: privacy holds only up to the corruption threshold set by the security model; a coalition beyond that threshold can learn the inputs
  • Assumption dependence: guarantees hold only under the stated adversary model (semi-honest or malicious), corruption threshold (honest or dishonest majority) and computational hardness assumptions such as one-way functions
  • Malicious security is costly: protocols that withstand deviating parties add substantial overhead compared with semi-honest ones

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Input confidentiality: the protocol is designed so that parties learn the output but not each other's inputs, a goal the cited paper pursues using one-way functions
  • No trusted third party: the computation runs among the parties themselves, so no single intermediary has to hold the data
  • Broad function support: any function that can be expressed as a circuit can in principle be computed this way
  • Cheating prevention: the cited paper describes methods to prevent participants from cheating, and malicious-model extensions can detect deviations and abort, although these add substantial cost and do not guarantee output correctness in every setting

Applications

  • Secret voting, where votes are tallied without revealing individual ballots
  • Private querying of databases, where a query is answered without exposing its content to the database holder
  • Oblivious negotiation, where parties reach an agreement without revealing their reservation positions
  • Mental poker, in which players deal and play cards without a trusted dealer
  • Private set intersection, where parties learn which records they share without disclosing the rest of their sets

How it works

How it works

1

Each party splits its private input into shares. In the XOR-based example shown in the mechanics formula, the input is recovered by combining all shares with XOR. Privacy of such a split holds only against coalitions that hold fewer than all of the shares (or fewer than the threshold defined by the protocol). A single share does not by itself guarantee privacy in every protocol, so the security model and protocol assumptions must be checked.

Formula
\text{Each party } P_i \text{ holds private input } x_i. \text{ Shares are generated: } x_i = s_{i,1} \oplus s_{i,2} \oplus \cdots \oplus s_{i,n}
2

The function is written as a boolean circuit. In the garbled-circuit technique, which is commonly associated with Yao's name and used in two-party protocols, one party encrypts the gate tables of this circuit so that the other can evaluate it without seeing intermediate values. Note that the 1982 paper itself is described as giving three one-way-function solutions to the m-party problem; the specific gate-encryption formula shown here illustrates the later garbled-circuit technique and is not a reproduction of that paper's text.

Formula
\text{A boolean circuit } C \text{ computing } f(x_1, \ldots, x_n) \text{ is garbled: each gate } g \text{ is encrypted as } \{\text{Enc}_{k_a, k_b}(k_c)\}
3

To evaluate a garbled circuit, a party must obtain the labels that match its own inputs. In 1-out-of-2 oblivious transfer, a receiver obtains one of two messages according to its choice bit, while the sender does not learn which message was chosen. Oblivious transfer is a separate cryptographic primitive that garbled-circuit protocols use as a building block.

Formula
\text{Evaluating party obtains input labels via } 1\text{-out-of-}2 \text{ OT: } \binom{m_0, m_1}{b} \rightarrow m_b \text{ without revealing } b
4

Once the circuit has been evaluated, the output is recovered. The XOR combination of output shares in the mechanics formula is one protocol-specific example; in garbled-circuit protocols the output is typically obtained by decoding output wire labels. The reconstruction rule depends on the sharing and circuit construction used. The aim is that only the agreed output is revealed, not intermediate values or individual inputs. Protection against cheating is what lets the reconstructed output be trusted.

Formula
\text{Protocol-specific example (XOR sharing): } y = \bigoplus_{i=1}^{n} y_i. \text{ In garbled-circuit protocols the output is instead obtained by decoding output wire labels.}

Common pitfalls

  • Confusing security models: a protocol secure against semi-honest parties, which follow the protocol but record what they see, may be broken by malicious parties who deviate from it
  • Underestimating communication costs: network latency can dominate run time for deep circuits
  • Ignoring output leakage: a correctly computed result can still reveal information about the inputs, for example a comparison result that shows which input is larger
  • Assuming SMPC replaces access control: it protects inputs during computation but does not stop authorized parties from misusing the output

Frequently asked questions

Is SMPC the same as homomorphic encryption?

No. Homomorphic Encryption (HE) allows a single party to compute on encrypted data held by another, whereas SMPC involves multiple parties jointly computing on their respective private inputs. HE is often used as a building block within SMPC protocols, but the two address distinct threat models and use cases.

How many parties can SMPC support?

SMPC protocols are defined for any number of parties n. Two-party protocols (2PC) are a common special case and are generally simpler than general n-party protocols, whose communication cost grows with n. Threshold variants allow privacy to hold as long as the number of colluding parties stays below a defined corruption bound.

Can SMPC guarantee correctness if some parties behave maliciously?

Protocols can be extended to detect malicious behaviour, for example with zero-knowledge proofs or message-authentication codes, so that a deviation is detected and the computation aborted. This adds significant cost compared with the semi-honest (honest-but-curious) model, and detection is a different property from guaranteed correctness in every setting.

Related methods

Sources

  1. Yao, A. C. (1982). Protocols for secure computations. 23rd Annual Symposium on Foundations of Computer Science, 160–164.

    Open DOI reference