Faster Two-Party Computation Secure Against Malicious Adversaries in the Single-Execution Setting

Xiao Wang, Alex J. Malozemoff, Jonathan Katz

TL;DR

This paper introduces a new protocol for malicious-secure two-party computation (2PC) that is significantly faster than previous methods in the "single-execution" setting (where no pre-computation or batching is allowed). By reducing the number of expensive public-key operations from being proportional to the input size to a small constant, the authors achieved an AES evaluation in just 65ms—a 22x speedup over the prior state-of-the-art.

What Problem Does This Paper Address?

Secure Two-Party Computation (2PC) allows two people to compute a function on their private data without revealing the data itself. While "semi-honest" protocols (which assume parties follow the rules but try to learn extra info) are very fast, "malicious-secure" protocols (which protect against parties who actively cheat) have historically been much slower.

Researchers usually speed up malicious 2PC using amortization (doing many computations at once) or pre-processing (doing heavy lifting before the inputs are known). However, these don't help in the "single-execution" setting—the most basic scenario where you just want to run one computation, right now, with no prior setup. In this setting, the bottleneck is often the "cut-and-choose" paradigm, which requires generating many copies of a circuit to catch cheaters, leading to a massive number of slow public-key operations.

Methods

The authors build upon the cut-and-choose paradigm and the input-recovery technique. In traditional input-recovery, if the evaluator (Party 2) catches the garbler (Party 1) cheating, they can recover Party 1's input and finish the computation themselves.

The paper introduces three key technical innovations:

  1. Symmetric-Key Efficiency: They replaced the majority of public-key operations (like ElGamal encryptions) with symmetric-key operations (like PRFs). This shifts the complexity of public-key ops from $O(\rho \cdot n)$ (where $n$ is input size and $\rho$ is a security parameter) to just $O(\rho)$.
  2. Relaxed Input Consistency: They observed that Party 1 doesn't need to be forced to use the same input across all evaluation circuits. It is sufficient to ensure the input used in the recovery phase matches the input used in at least one evaluation circuit. This insight dramatically simplifies the protocol.
  3. Optimized XOR-trees: To prevent "selective-failure" attacks, 2PC protocols use XOR-trees or $\rho$-probe matrices. For large inputs, the number of XOR operations actually becomes a bottleneck. The authors introduced a "chunking" technique that breaks inputs into small pieces, reducing this overhead by over 1000x for large inputs.

Datasets

The protocol was evaluated using standard cryptographic benchmark circuits rather than traditional "datasets":

  • AES-128: The gold standard for 2PC benchmarking.
  • SHA-1 and SHA-256: Common hashing functions.
  • Integer Addition (ADD): A basic arithmetic circuit.
  • Large-scale examples: Sorting 1024/4096 integers and 1024-bit modular exponentiation to test scalability.

Key Insights and Ideas

  • Public Key is the Enemy: In high-performance MPC, public-key cryptography is orders of magnitude slower than symmetric-key (AES-NI) operations. Any move from the former to the latter is a massive win.
  • The "At Least One" Principle: You don't need to prove global consistency to prevent cheating. If a cheater is caught in the recovery phase, the fact that they might have used different inputs in other circuits doesn't help them learn anything new.
  • Pipelining is Essential: By "synchronizing" the garbler and evaluator so that checks happen while the next circuit is being garbled, the authors can evaluate circuits with billions of gates without running out of memory.

Key Results

The performance gains are substantial across various network environments (Localhost, LAN, and WAN):

  • AES Speed: On a LAN, the protocol completes an AES evaluation in 65 ms. For comparison, the previous best non-amortized work took 1,442 ms.
  • Scalability: Because the number of public-key operations is now independent of input/output length, the protocol performs even better relative to peers as the function grows.
  • Massive Circuits: Using pipelining, they successfully evaluated a circuit with 4.3 billion gates (modular exponentiation), a feat impossible for many "offline/online" protocols that require storing the entire garbled circuit in memory or on disk.

Limitations and Future Work

  • Communication Bottleneck: While the authors solved the computational bottleneck (public-key ops), the protocol still requires sending $\rho$ (typically 40) garbled circuits. In bandwidth-constrained environments (like WAN), communication remains the primary limiting factor.
  • Standard Model vs. Random Oracle: While this protocol can be based on the decisional Diffie-Hellman assumption in the standard model, the authors note that further optimizations might be possible if one assumes the Random Oracle Model.
  • Subsequent Improvements: The authors mention in the paper that an extended version of their work explores reducing the communication required for "check circuits," further refining the efficiency.

Summary updated

BibTeX
@article{wang2016faster,
  author = {Xiao Wang and Alex J. Malozemoff and Jonathan Katz},
  title = {{Faster Two-Party Computation Secure Against Malicious Adversaries in the Single-Execution Setting}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2016},
  url = {https://openreview.net/forum?id=fUZhMOpeSb},
}
Figure