Oblivious transfer
Oblivious Transfer (OT) is a two-party protocol between a sender and a receiver . In the basic 1-out-of-2 variant, the sender holds two messages and the receiver holds a choice bit; at the end, the receiver learns the chosen message while the sender learns nothing about the choice, and the receiver learns nothing about the unchosen message.
Syntax
A 1-out-of-2 OT is a pair with message space , , following the two-party protocol syntax:
- is a randomized algorithm generating public parameters,
- and are stateful interactive algorithms with:
- input: a pair of messages
- input: a choice bit
- output:
- output: an element of
We write
Properties
Correctness
An OT is -correct if for all and ,
where and When we say is perfectly correct.
Sender Privacy
The receiver should not learn the unchosen message . The adversary commits to a choice bit and two sender input pairs that agree on the chosen value (); after observing the honest receiver’s view, it tries to determine which pair the sender used.
\begin{algorithm}
\algname{Game}
\caption{$\Game^{\text{s-priv}}_{\OT,\calA}(\secpar)$}
\begin{algorithmic}
\State $\pp \gets \Setup(1^\secpar)$
\State $(c, x_0, x_1, x_0', x_1', \stA) \gets \calA(1^\secpar, \pp)$
\Comment{Admissible: $x_c = x_c'$}
\State $(x_0^{(0)}, x_1^{(0)}) := (x_0, x_1)$; $(x_0^{(1)}, x_1^{(1)}) := (x_0', x_1')$
\State $b \getsr \bits$
\State Run $\langle S(\pp, x_0^{(b)}, x_1^{(b)}), R(\pp, c) \rangle$; let $\View_R$ denote R's view
\State $b' \gets \calA(\View_R, \stA)$
\Return $[b' = b]$
\end{algorithmic}
\end{algorithm}
An OT has sender-private (or message hiding) if for all efficient admissible ,
is negligible. Because , correctness gives the receiver the output in both worlds, up to the correctness error; any distinguishing advantage must come from the rest of the view.
Receiver Privacy
The sender should not learn the receiver’s choice bit . The adversary commits to sender inputs ; after observing the honest sender’s view, it tries to determine which bit the receiver chose.
\begin{algorithm}
\algname{Game}
\caption{$\Game^{\text{r-priv}}_{\OT,\calA}(\secpar)$}
\begin{algorithmic}
\State $\pp \gets \Setup(1^\secpar)$
\State $(x_0, x_1, \stA) \gets \calA(1^\secpar, \pp)$
\State $c \getsr \bits$
\State Run $\langle S(\pp, x_0, x_1), R(\pp, c) \rangle$; let $\View_S$ denote S's view
\State $c' \gets \calA(\View_S, \stA)$
\Return $[c' = c]$
\end{algorithmic}
\end{algorithm}
An OT has receiver-private (or choice-hiding) if for all efficient ,
is negligible.
Ideal OT functionality
The ideal 1-out-of-2 OT functionality receives from and from , sends to and sends nothing to . In the OT-hybrid model the parties of a protocol may call between any two of them, any number of times, as a trusted subroutine.
Malicious Security
The sender- and receiver-privacy definitions are semi-honest: both parties follow the protocol honestly, and security holds against a party that tries to learn extra information from its view. An OT has malicious security if it is -correct and for every efficient corrupting one of and and deviating from the protocol arbitrarily there is an efficient simulator such that, for all and , the output of together with the honest party’s output in a real execution is computationally indistinguishable from the output of together with the honest party’s output in an ideal execution. There the honest party hands its input to , hands it an input of its choice for the corrupted party, returns to for the resulting and , and also produces — Gol04. The semi-honest games do not carry over by letting deviate: in the sender-privacy game a malicious receiver can announce and run on , so the simulator must extract the choice bit a malicious receiver effectively uses — standard. As for MPC, the case with no corrupted party is covered by correctness, not by the simulation game, which would then ask that the transcript be simulatable without either input — standard.
As an object, OT denotes a -correct protocol, with , and PPT, that has sender privacy and receiver privacy.
Variations
Rabin OT
In Rabin OT, introduced by Rab81, the sender transmits a bit that the receiver obtains with probability , without the sender learning whether it did. A Rabin OT is a protocol with , in which has input and output , and has no input and output ; we write .
Correctness. For each , with and , both and are negligible, and is the same for and .
Receiver privacy. The sender does not learn whether the receiver obtained :
\begin{algorithm}
\algname{Game}
\caption{$\Game^{\text{rabin-r-priv}}_{\OT,\calA}(\secpar)$}
\begin{algorithmic}
\State $\pp \gets \Setup(1^\secpar)$
\State $(x, \stA) \gets \calA(1^\secpar, \pp)$
\State Run $\langle S(\pp, x), R(\pp) \rangle \to (\bot, y)$; let $\View_S$ denote S's view
\State $b := [y = \bot]$
\State $b' \gets \calA(\View_S, \stA)$
\Return $[b' = b]$
\end{algorithmic}
\end{algorithm}
A Rabin OT has receiver privacy if for all efficient , is negligible. Given correctness, is within negligible distance of a uniform bit, so this is equivalent to being negligible — standard.
Sender privacy. A receiver that obtained learns nothing about :
\begin{algorithm}
\algname{Game}
\caption{$\Game^{\text{rabin-s-priv}}_{\OT,\calA}(\secpar)$}
\begin{algorithmic}
\State $\pp \gets \Setup(1^\secpar)$; $x \getsr \bits$
\State Run $\langle S(\pp, x), R(\pp) \rangle \to (\bot, y)$; let $\View_R$ denote R's view
\If{$y = \bot$}
\State $x' \gets \calA(\View_R)$
\Else
\State $x' \getsr \bits$
\Comment{only executions with $y = \bot$ count}
\EndIf
\Return $[x' = x]$
\end{algorithmic}
\end{algorithm}
A Rabin OT has sender privacy if for all efficient , is negligible. Since does not depend on , the advantage equals — standard.
As an object, Rabin OT denotes a protocol, with , and PPT, that has correctness, receiver privacy and sender privacy. Rabin OT and 1-out-of-2 OT on bits are equivalent (Rabin OT ⇔ OT) — Cre87.
-out-of- OT
A generalization where the sender holds messages and the receiver chooses a set of size , learning while the sender learns nothing about .
Single-server SPIR is 1-out-of- OT with total communication at most for a polynomial and a constant , so it implies 1-out-of- OT — folklore; the converse is not known (SPIR ⇒ OT).
OT Extension
An OT extension is a protocol that, on input , runs a 1-out-of-2 OT protocol, the base OTs, at most times, for a polynomial fixed independently of , and that for every polynomial is a -correct protocol for 1-out-of-2 transfers with semi-honest sender and receiver privacy for the vector of transfers. These are the sender-privacy and receiver-privacy games for message vectors and in and a choice vector , the -th transfer delivering . In the sender game commits to and to two pairs of message vectors with for every ; in the receiver game commits to and to two choice vectors , the protocol runs on for a uniform bit , and guesses . As an object, OT extension denotes such a protocol.
The point of OT extension is the cost of the computation outside the base OTs, which each result states. Bea96 uses base transfers and a one-way function, through its code (OT + OWF ⇒ OT extension (Beaver)); in the random-oracle model, IKNP03 use base transfers, for the security parameter , and a constant number of hash evaluations per extended transfer (OT ⇒ OT extension (IKNP)).
Random OT
In a random OT the parties have no inputs. For message space , with a polynomial, a random OT is a protocol with and : the sender outputs and the receiver outputs and .
Correctness. With , the joint output is within negligible statistical distance of for independent uniform and .
Sender privacy. The unchosen string is pseudorandom given the receiver’s view:
\begin{algorithm}
\algname{Game}
\caption{$\Game^{\text{rot-s-priv}}_{\OT,\calA}(\secpar)$}
\begin{algorithmic}
\State $\pp \gets \Setup(1^\secpar)$; $b \getsr \bits$
\State Run $\langle S(\pp), R(\pp) \rangle \to ((x_0, x_1), (c, z))$; let $\View_R$ denote R's view
\State $w_0 := x_{1-c}$; $w_1 \getsr \bits^\ell$
\State $b' \gets \calA(\View_R, w_b)$
\Return $[b' = b]$
\end{algorithmic}
\end{algorithm}
A random OT has sender privacy if for all efficient , is negligible.
Receiver privacy. The choice bit is pseudorandom given the sender’s view:
\begin{algorithm}
\algname{Game}
\caption{$\Game^{\text{rot-r-priv}}_{\OT,\calA}(\secpar)$}
\begin{algorithmic}
\State $\pp \gets \Setup(1^\secpar)$; $b \getsr \bits$
\State Run $\langle S(\pp), R(\pp) \rangle \to ((x_0, x_1), (c, z))$; let $\View_S$ denote S's view
\State $\beta_0 := c$; $\beta_1 \getsr \bits$
\State $b' \gets \calA(\View_S, \beta_b)$
\Return $[b' = b]$
\end{algorithmic}
\end{algorithm}
A random OT has receiver privacy if for all efficient , is negligible.
As an object, random OT denotes a protocol, with , and PPT, that has correctness, sender privacy and receiver privacy. Random OT can be converted to standard OT with one message from each party, the receiver’s first (Random OT ⇒ OT) — Bea95.
Two-round OT
A two-round OT is a -correct OT with sender privacy and receiver privacy whose interaction is one message each way: the receiver computes and sends , the sender replies with , and the receiver outputs . is as in the syntax above, so a common reference string is allowed. Two-round OT is necessary and sufficient for two-round MPC secure against semi-honest adversaries corrupting any number of parties (Two-round OT ⇒ Two-round semi-honest MPC (Garg–Srinivasan, Benhamouda–Lin), Two-round semi-honest MPC ⇒ Two-round OT) — BL18, GS18.
UC-secure OT
The UC version of receives from and from , tells that an output is pending, and delivers to as a private delayed output when instructs it to; receives nothing — Can01. It differs from the ideal OT functionality only in the delayed delivery. An OT protocol is UC-secure if, in the common reference string model with as the reference string, it UC-realizes the UC version of against a malicious adversary that statically corrupts at most one party — Can01 — and is non-trivial: if neither party is corrupted and every message is delivered, outputs except with negligible probability — CLOS02. Non-triviality excludes the protocol that never sends a message, which UC-realizes the UC version of with a simulator that never instructs delivery — standard. UC security implies stand-alone malicious security (UC-secure OT ⇒ Malicious OT), and by the composition theorem a UC-secure protocol can replace the UC version of in any protocol in its hybrid model — Can01. A UC-secure protocol also has sender and receiver privacy with the same reference string, since a UC environment can choose the inputs after learning the reference string through the adversary (UC-secure OT ⇒ OT) — folklore.
Two-round UC-secure OT
A two-round UC-secure OT is a UC-secure OT protocol whose interaction is one message from the receiver followed by one message from the sender, as in two-round OT. The dual-mode protocols of PVW08, from DDH, QR or LWE (DDH ⇒ Two-round UC-secure OT (PVW), QR ⇒ Two-round UC-secure OT (PVW), LWE ⇒ Two-round UC-secure OT (PVW)), and the protocol of DGHMW20, from CDH (CDH ⇒ Two-round UC-secure OT (DGHMW)), are two-round UC-secure OT protocols. Two-round malicious OT in the common reference string model gives two-round MPC secure with abort against a malicious adversary corrupting any number of parties (Two-round UC OT ⇒ Two-round MPC in the CRS model (Garg–Srinivasan)) — GS18.
Malicious security with expected polynomial-time simulation
Malicious security with a simulator that need only run in expected polynomial time, with and the distinguisher efficient as before. Malicious security implies it by the identity map (malicious OT ⇒ malicious OT with expected-time simulation) — folklore; the converse is not an identity, as for MPC with expected polynomial-time simulation.
Four-round OT
A four-round OT is a -correct OT protocol with malicious security with expected polynomial-time simulation in the plain model, outputting , whose interaction is four messages sent alternately by the receiver and the sender, the receiver first, and whose simulator is black-box: an oracle algorithm , running in expected polynomial time, such that for every efficient corrupting either party the simulator , which runs only as an oracle and may rewind it, meets the definition. It has malicious security with expected polynomial-time simulation, by the identity map (four-round OT ⇒ malicious OT with expected-time simulation) — folklore. Four-round OT gives four-round MPC against a malicious adversary corrupting any number of parties (four-round OT ⇒ four-round MPC) — CCG+20.
Other results
Participates in
Builds on Oblivious transfer
- Four-round OT ⇒ Four-round MPC (Choudhuri–Ciampi–Goyal–Jain–Ostrovsky) (via Four-round OT)
- Four-round OT ⇒ Malicious OT with expected-time simulation (via Four-round OT)
- GC + OT ⇒ Semi-honest 2PC (Yao)
- Ideal OT + PRG ⇒ UC MPC (IPS) (via Ideal OT functionality)
- Ideal OT ⇒ COM (Kilian) (via Ideal OT functionality)
- Ideal OT ⇒ 2PC (Kilian) (via Ideal OT functionality)
- Malicious OT ⇒ Malicious OT with expected-time simulation (via Malicious Security)
- Malicious OT ⇒ 2PC by cut-and-choose (Lindell–Pinkas) (via Malicious Security)
- OT + OWF ⇒ OT extension (Beaver)
- OT Extension ⇒ MPC with preprocessing (SPDZ, etc.) (via OT Extension)
- Malicious OT ⇒ COM (Kilian) (via Malicious Security)
- OT ⇒ KE
- Semi-honest OT ⇒ Malicious OT (Haitner)
- Semi-honest OT ⇒ MPC (HIKLP)
- OT ⇒ Optimally fair coin flipping (Moran–Naor–Segev)
- OT ⇒ OT extension (IKNP)
- Semi-honest OT ⇒ Semi-honest MPC (GMW)
- Rabin OT ⇔ OT (via Rabin OT)
- Random OT ⇒ OT (via Random OT)
- Two-round OT ⇒ OT (via Two-round OT)
- Two-round OT ⇒ Two-round semi-honest MPC (Garg–Srinivasan, Benhamouda–Lin) (via Two-round OT)
- Two-round UC OT ⇒ Two-round MPC in the CRS model (Garg–Srinivasan) (via Two-round UC-secure OT)
- Two-round UC-secure OT ⇒ Two-round OT (via Two-round UC-secure OT)
- Two-round UC-secure OT ⇒ UC-secure OT (via Two-round UC-secure OT)
- UC-secure OT ⇒ Malicious OT (via UC-secure OT)
- UC-secure OT ⇒ OT (via UC-secure OT)
Produces Oblivious transfer
- CDH ⇒ Two-round UC-secure OT (DGHMW) (via Two-round UC-secure OT)
- cPIR with total communication below n ⇒ OT
- DDH ⇒ Two-round UC-secure OT (PVW) (via Two-round UC-secure OT)
- Enhanced trapdoor permutations ⇒ OT
- Four-round OT ⇒ Malicious OT with expected-time simulation (via Malicious security with expected polynomial-time simulation)
- Lossy TDF ⇒ OT
- LWE ⇒ Two-round UC-secure OT (PVW) (via Two-round UC-secure OT)
- Malicious OT ⇒ Malicious OT with expected-time simulation (via Malicious security with expected polynomial-time simulation)
- OPE ⇒ OT
- OPRF ⇒ OT
- OT + OWF ⇒ OT extension (Beaver) (via OT Extension)
- Semi-honest OT ⇒ Malicious OT (Haitner) (via Malicious Security)
- OT ⇒ OT extension (IKNP) (via OT Extension)
- PSI ⇒ OT
- QR ⇒ Two-round UC-secure OT (PVW) (via Two-round UC-secure OT)
- Rabin OT ⇔ OT
- Random OT ⇒ OT
- Subexponential LPN ⇒ OT
- Subset sum at the LPS10 parameters ⇒ OT
- Symmetric private information retrieval (Single-server) ⇒ OT
- 2PC ⇒ Malicious OT (via Malicious Security)
- Semi-honest 2PC ⇒ OT
- Two-round OT ⇒ OT
- Two-round semi-honest MPC ⇒ Two-round OT (via Two-round OT)
- Two-round UC-secure OT ⇒ Two-round OT (via Two-round OT)
- Two-round UC-secure OT ⇒ UC-secure OT (via UC-secure OT)
- UC-secure OT ⇒ Malicious OT (via Malicious Security)
- UC-secure OT ⇒ OT
Barriers
- No fully-black-box reduction from OT to PKE
- No fully-black-box reduction from OT to TDP
- No relativizing reduction from OWF to OT
- No fully-black-box reduction from PKE to OT
- No fully-black-box reduction from two-round OT to two-round semi-honest MPC (via Two-round OT) — circumvented by Two-round OT ⇒ Two-round semi-honest MPC (Garg–Srinivasan, Benhamouda–Lin)