Formalising Oblivious Transfer in the Semi-Honest and Malicious Model in CryptHOL

David Butler, David Aspinall, Adrià Gascón

Abstract

This paper presents a rigorous formalization of Oblivious Transfer (OT)—a cornerstone of Multi-Party Computation (MPC)—using the CryptHOL framework in Isabelle/HOL. By bridging the gap between "paper proofs" and machine-checked verification, the authors provide a modular library for proving the security of MPC protocols in both semi-honest and malicious adversary models.

Introduction: The Crisis of Rigor in Cryptography

In modern cryptography, proofs of security are increasingly complex, often stretching dozens of pages with subtle probabilistic reasoning that is prone to human error. This "crisis of rigor" is particularly problematic for Multi-Party Computation (MPC), where multiple parties compute a function over private inputs. As MPC moves toward real-world deployment in auctions and private statistics, the need for absolute certainty in its underlying building blocks—like Oblivious Transfer (OT)—becomes critical. The authors aim to replace intuitive reasoning with formal, computer-verified proofs that guarantee a protocol behaves exactly as intended, even in the presence of malicious actors.

Methodology

The authors utilize CryptHOL, a framework embedded in the Isabelle/HOL theorem prover, which allows cryptographic protocols to be written as probabilistic programs. Key methodological highlights include:

  • Simulation-Based Security: The authors formalize the "ideal vs. real" world paradigm, proving that an adversary in the real protocol learns no more than they would in an "ideal" world with a perfectly trusted third party.
  • Modularity via Locales: Using Isabelle’s "locales," they built abstract theories. For example, proving that any protocol based on Extended Trapdoor Permutations (ETP) is secure allowed them to instantiate the proof for RSA with minimal extra effort.
  • Hybrid Modeling: Complex protocols were verified by assuming the security of sub-components, such as proving 1-out-of-4 OT ($OT^1_4$) by assuming a secure 1-out-of-2 OT ($OT^1_2$) exists.
Dependency graph of formalized components for semi-honest and malicious adversary models.

Key Insights and Ideas

  • The Power of Abstraction: By proving security for an abstract ETP first, the authors demonstrated that formalization can be modular. If a new function is proven to be an ETP, the security of the resulting OT protocol follows automatically.
  • Formalizing the "Obvious": The authors noted that "obvious" steps in paper proofs (like showing the RSA function is a permutation) are often the most tedious to formalize but are essential for revealing hidden assumptions.
  • Malicious vs. Semi-Honest Complexity: The paper highlights the significant jump in complexity when moving to the malicious model. Formalizing the "ideal model" for malicious actors requires a sophisticated type system for simulators to account for early aborts and input substitution.
  • Cross-Tool Validation: The definitions used are shown to be equivalent to those in other tools like EasyCrypt, moving toward a unified standard for formal verification.

Key Results

  • Verified Building Blocks: The authors successfully formalized and verified $OT^1_2$ (from ETPs), $OT^1_4$ (from $OT^1_2$), and the fundamental gates (AND/XOR) of the GMW protocol.
  • RSA Instantiation: They provided a complete, machine-checked proof that the RSA-based OT protocol is secure in the asymptotic setting.
  • Malicious Security: They formalized a complex $OT^1_2$ protocol based on the Decisional Diffie-Hellman (DDH) assumption and Zero-Knowledge Proofs, proving it secure against fully corrupt parties.
  • Reductionist Proofs: All security proofs provide concrete bounds: if an adversary can break the protocol, they can also break the underlying hard mathematical problem (like factoring or DDH).

Limitations and Future Work

While the gates for the GMW protocol were formalized in the semi-honest model, doing so for the malicious model remains a "major proof effort" for future work. Additionally, the library requires a more general formalization of Zero-Knowledge protocols and needs to scale from two-party to $n$-party computation. Finally, while CryptHOL proves security, it currently lacks a built-in mechanism to formally prove that simulators run in polynomial time, though they are designed to be efficient.

Summary updated

BibTeX
@inproceedings{butler2020formalising,
  author = {David Butler and David Aspinall and Adrià Gascón},
  title = {{Formalising Oblivious Transfer in the Semi-Honest and Malicious Model in CryptHOL}},
  booktitle = {CPP},
  year = {2020},
  doi = {10.1145/3372885.3373815},
}
Figure