Ideal batched 1-out-of-2 oblivious transfer #
The two-party ideal oracle for k parallel 1-out-of-2 oblivious transfers of values in a type
L. The sender (slot 0) submits two values for each of the k transfers, as a function
Fin k → Bool → L, and receives nothing. The receiver (slot 1) submits a choice bit for each
transfer and receives the chosen values. This is Goldreich's 1-out-of-k transfer
(Section 7.3.2, Eq. 7.20, p. 640) for k = 2 over values in L rather than bits, invoked k
times in one round; the library's ot14Spec is the 1-out-of-4 transfer of bits.
Main definitions #
Cslib.Crypto.Protocols.MPC.batchOTSpec,Cslib.Crypto.Protocols.MPC.batchOTAnswer,Cslib.Crypto.Protocols.MPC.batchOTWorld: the oracle specification, its answer and its ideal world.Cslib.Crypto.Protocols.MPC.batchOTFunctionality: the same transfer as a two-party functionality, for protocols that realize it.
References #
- O. Goldreich, Foundations of Cryptography, Volume 2: Basic Applications, Section 7.3.2 (Eq. 7.20, p. 640).
k parallel 1-out-of-2 oblivious transfers of values in L: slot 0 (sender) submits two
values per transfer and receives Unit; slot 1 (receiver) submits one choice bit per transfer
and receives the chosen values.
The answer of batchOTSpec k L on query q: () to the sender and the values
q 0 j (q 1 j) to the receiver.
The ideal memoryless world of batchOTSpec k L.
batchOTSpec k L as a two-party functionality: the inputs are the query parts of the two
slots and the outputs are their answer parts.