Optimizing Authenticated Garbling for Faster Secure Two-Party Computation

Jonathan Katz, Samuel Ranellucci, Mike Rosulek, Xiao Wang

TL;DR

This paper presents significant optimizations to a state-of-the-art protocol for secure two-party computation (2PC). By cleverly adapting existing techniques and introducing new ones, they achieve substantial improvements in communication and computation, making secure computation much more practical.

What Problem Does This Paper Address?

Secure two-party computation (2PC) allows two parties to jointly compute a function on their private inputs without revealing those inputs to each other. While significant progress has been made, especially in the "malicious" setting (where parties can deviate from the protocol), efficiency remains a major hurdle. The WRK protocol (Wang et al., CCS 2017) was a leading protocol for malicious 2PC, offering excellent efficiency. However, there was still room for improvement, particularly in reducing communication overhead and computational costs, making it even more practical for real-world applications. This paper aims to bridge that gap by optimizing the WRK protocol.

Methods

The authors introduce several key optimizations to the WRK protocol, focusing on two main areas: authenticated garbling (the core of the online phase) and preprocessing (specifically, AND triple generation).

  • Authenticated Garbling Optimizations:
    • Half-Gate Compatibility: They adapt the "half-gate" optimization (originally for semi-honest 2PC) to the WRK protocol's authenticated garbling. This technique reduces the number of garbled rows needed per gate.
  • Information-Theoretic MAC Reduction: They devise a method to avoid sending an information-theoretic MAC for each garbled row, further cutting down communication.
  • Row-Reduction Techniques: They leverage row-reduction techniques, commonly used in garbled circuits, to reduce communication per gate. This involves a clever "shifting" of the garbling process to handle the unknown masks.
  • "Authentication Almost for Free": They propose a batch authentication approach, where the evaluator first computes the circuit without authentication and then performs a single, efficient authentication step at the end. This adds an extra round but drastically reduces communication for authentication.
  • Preprocessing Optimizations (AND Triple Generation):
    • Improved Leaky AND Protocol: They introduce a new, more efficient protocol for generating "leaky-AND triples," which are crucial for the preprocessing phase. This reduces hash calls and communication.
  • New Function-Dependent Preprocessing: They propose a more efficient function-dependent preprocessing protocol, particularly suited for scenarios where the circuit structure is known beforehand.

Datasets

Not discussed in the paper.

Key Insights and Ideas

  • Bridging Semi-Honest and Malicious Efficiency: A surprising outcome is that their optimized online phase achieves communication complexity comparable to state-of-the-art semi-honest secure computation protocols, while still providing malicious security. This is a significant step towards making malicious security as efficient as semi-honest security.
  • "Shifting" for Authenticated Garbling: The core idea for adapting row-reduction to authenticated garbling involves conceptually "shifting" the garbling process by a shared value. This allows them to leverage the efficiency gains of row reduction without needing to know the secret masks.
  • Batch Authentication: The "authentication almost for free" technique is a clever way to decouple the computation from its authentication, leading to significant communication savings.
  • Reusing Techniques Across Security Models: The paper demonstrates how techniques developed for semi-honest 2PC (like half-gates) can be adapted and extended to the more challenging malicious setting, yielding substantial improvements.

Key Results

The paper presents two versions of their optimized protocol, achieving significant speedups over the WRK protocol:

  • Communication Improvements:
    • Up to a 2.6x improvement in communication for the authenticated garbling part.
  • A 1.5x improvement in communication for the AND triple generation step.
  • Overall, their protocol offers substantial communication savings, with one version achieving the best total communication complexity among comparable protocols. For example, compared to [NST17], they achieve the same function-dependent and online phase communication but improve total communication by over 6x.
  • Computational Improvements:
    • A 2x improvement in computation for the AND triple generation step.
  • The overall computational complexity is reduced by 2-2.5x compared to the WRK protocol, largely due to the improved preprocessing.

Limitations and Future Work

  • Multi-Party Extension Challenges: The authors acknowledge that extending their techniques to the multi-party setting presents significant challenges. Specifically, adapting half-gate optimizations to multi-party garbling is difficult because it requires garblers to control the "payload" (output wire label) of garbled gates, which is not straightforward when multiple garblers are involved and their subkeys are encoded in the payload. They suggest this might require additional rounds proportional to the circuit depth.
  • Function-Dependent Phase Rounds: One version of their protocol requires a number of rounds proportional to the circuit depth in the function-dependent phase. While this is acceptable for some applications, future work could aim to reduce this further.
  • Further Optimization: The paper suggests that further improvements might be possible, particularly in the multi-party setting.

Summary updated

BibTeX
@article{katz2018optimizing,
  author = {Jonathan Katz and Samuel Ranellucci and Mike Rosulek and Xiao Wang},
  title = {{Optimizing Authenticated Garbling for Faster Secure Two-Party Computation}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2018},
  url = {https://openreview.net/forum?id=gvgQ6-sqa-a},
}

Loading related content...

Figure