Batched oblivious transfer from sequential single transfers #
batchOTFunctionality k M transfers k values of a type M in one invocation. This module
realizes it from k sequential invocations of the single 1-out-of-2 transfer otFunctionality M,
and bounds the semi-honest advantage against the protocol obtained by substituting a protocol for
the single transfer.
seqBatchOT k M runs in the hybrid model whose oracle is the single transfer (otSpec M, with the
ideal world otWorld M). It has k oracle rounds and no messages: in round j the sender submits
the pair (x j false, x j true) of its two values for transfer j and the receiver submits its
j-th choice bit; the receiver outputs the k answers and the sender outputs (). In the hybrid
model every party's view is determined by its input and output, so seqBatchOT k M is perfectly
private for every coalition, with the simulator seqBatchOTSim that replays the outputs as the
oracle answers (perfectSemiHonestPrivate_seqBatchOT).
Substituting a protocol Sub for the single transfer (Protocol.compose) gives a protocol for
batchOTFunctionality k M in the model of Sub. semiHonestAdvantage_seqBatchOT_compose_le bounds
its semi-honest advantage, for the composed simulator composeSim, by
Composition.replacementBound: the sum over the k transfers of the expected semi-honest advantage
of that transfer's distinguisher Composition.roundDistinguisher against Sub, where the
expectation is over the real executions of the earlier transfers. When every test has advantage at
most ε against Sub, the bound is k * ε (semiHonestAdvantage_seqBatchOT_compose_le_mul).
Scope #
These are concrete, per-instance statements in the style of
CslibFrontier/Crypto/Protocols/MPC/Composition/Hybrid.lean, and original library infrastructure;
no cited theorem is claimed. In particular:
- No efficiency of the composed protocol, of its simulator or of the round distinguishers is
proved, and no asymptotic statement (
ProtocolFamily.SemiHonestSecure) is derived. - The hypothesis of
semiHonestAdvantage_seqBatchOT_compose_le_mulranges over all tests, so that theorem is a statement about statistically secure single transfers. For a computationally secure single transfer, such as the DDH transferddhOTProbProtocol, the bound to use issemiHonestAdvantage_seqBatchOT_compose_le, applied to the explicit round distinguishers. - The value type
Mis arbitrary and the single transfer carries values of the same typeM.M := List BoolgivesbatchOTSpec k (List Bool)from a single transfer of words; the DDH transfer carries group elements, and a transfer of words from a transfer of group elements is not provided here. - The IKNP extension (
CslibFrontier/Crypto/Protocols/MPC/IKNP.lean) takesbatchOTSpec κ (BitString m)as its base-transfer oracle;seqBatchOT κ (BitString m)realizes that oracle from single transfers ofm-bit strings. No statement about that composition is proved here.
Main definitions #
Cslib.Crypto.Protocols.MPC.otSpec,Cslib.Crypto.Protocols.MPC.otWorld: the single transfer as an oracle, with the input and output types ofotFunctionality.Cslib.Crypto.Protocols.MPC.seqOTSteps:ksequential transfer rounds from a given state.Cslib.Crypto.Protocols.MPC.seqBatchOT,Cslib.Crypto.Protocols.MPC.seqBatchOTSim: the batched transfer protocol in the single-transfer hybrid model and its simulators.Cslib.Crypto.Protocols.MPC.composeSeqBatchOTRoundEnv: the environment of one transfer of one call, for an outer protocol whose batched transfers are run byseqBatchOT.
Main results #
Cslib.Crypto.Protocols.MPC.evalWith_seqBatchOT: the execution ofseqBatchOT k Mis deterministic, with the outputs ofbatchOTAnswer.Cslib.Crypto.Protocols.MPC.perfectSemiHonestPrivate_seqBatchOT: perfect semi-honest privacy in the single-transfer hybrid model, for every coalition.Cslib.Crypto.Protocols.MPC.semiHonestAdvantage_seqBatchOT_compose_le,Cslib.Crypto.Protocols.MPC.semiHonestAdvantage_seqBatchOT_compose_le_mul: the bounds on the semi-honest advantage after substituting a protocol for the single transfer.Cslib.Crypto.Protocols.MPC.semiHonestAdvantage_seqBatchOT_compose_le_sum_roundGame: the bound by the sum over thektransfers of the advantage of one environment per transfer, which runs the earlier transfers itself.Cslib.Crypto.Protocols.MPC.semiHonestAdvantage_compose_seqBatchOT_compose_le_sum_roundGame: the same for an outer protocol that calls the batched transfer, such as Yao's protocol: the advantage of the outer protocol with the ideal batched transfer plus one environment per transfer, which also runs the outer protocol up to its call.
The single transfer as an oracle #
One 1-out-of-2 oblivious transfer of a value in M as a two-party oracle: slot 0 (sender)
submits a pair of values and receives Unit; slot 1 (receiver) submits a choice bit and receives
the chosen value. Its query and answer parts are the input and output types OTIn M and OTOut M
of otFunctionality M, so that a protocol for otFunctionality M can be substituted for this
oracle by Protocol.compose as it stands; batchOTSpec 1 M is the same transfer with the values
and the bit indexed by Fin 1.
The ideal memoryless world of otSpec M: the functionality otFunctionality M.
Sequential transfer rounds #
k sequential single transfers from the states State: in round j party s submits
query j s of its initial state, and at the end party s outputs output s of its initial state
and of its k answers, in the order of the rounds.
The transcript that party i receives along seqBatchOTSchedule k M when its answer in round
j is ans j.
In the ideal world otWorld M the rounds of seqOTSteps are deterministic: party i receives
in round j its part of otOutputs on the queries of round j.
The output of party i after seqOTSteps, on the transcript in which its answers are ans,
is output i of its state and ans.
The batched transfer protocol #
The query of party s in transfer j of the batched transfer: the sender submits the pair
(x j false, x j true) of its two values for transfer j, and the receiver its j-th choice
bit. As in otOutputs, the choice bit true selects the second value of the pair.
The answers to party s in the k single transfers, read off its answer from
batchOTSpec k M; the inverse of batchOTAnswerOfRounds.
The answers of the k single transfers on the queries batchOTQueryAt are the parts of the
batched answer batchOTAnswer.
Batched oblivious transfer from k sequential single transfers, in the hybrid model whose
oracle is the single transfer otSpec M. In round j the sender submits its two values for
transfer j and the receiver its j-th choice bit (batchOTQueryAt); the receiver outputs its
k answers and the sender outputs (). The protocol uses no coins and sends no messages.
The simulators of seqBatchOT k M: each corrupted party's view consists of its input, the
empty coins and, as its answer in transfer j, the j-th part of its output.
The execution of seqBatchOT k M is deterministic and correct. In the ideal world of the
single transfer, on the inputs x every party outputs its part of batchOTAnswer x, and its view
consists of its input and, as its answer in transfer j, the j-th part of its output.
seqBatchOT k M is perfectly semi-honest private in the single-transfer hybrid model: for
every coalition, the simulator seqBatchOTSim k M on the coalition's inputs and outputs of
batchOTFunctionality k M has the joint distribution of the coalition's views and all outputs in
the execution with the ideal single transfer otWorld M.
Substituting a protocol for the single transfer #
The batched transfer over a substituted single transfer. For every protocol Sub for the
single transfer in a world W₂ and simulators S₂ of Sub, the semi-honest advantage of D
against (seqBatchOT k M).compose fun _ => Sub, for batchOTFunctionality k M with the composed
simulator, is at most Composition.replacementBound: the sum over the k transfers of the expected
semi-honest advantage of that transfer's distinguisher Composition.roundDistinguisher against
Sub, for otFunctionality M with the simulator S₂, on that transfer's queries. The expectation
is over the real executions of Sub in the earlier transfers.
Nothing is assumed about Sub, S₂ or D, and no efficiency of the round distinguishers is
claimed.
k sequential transfers have k oracle rounds.
The batched transfer over a substituted single transfer, with one environment per
transfer. For every protocol Sub for the single transfer in a world W₂ and simulators S₂ of
Sub, the semi-honest advantage of D against (seqBatchOT k M).compose fun _ => Sub, for
batchOTFunctionality k M with the composed simulator, is at most the sum over the transfers
j < k of the advantage of the environment composeRoundEnv of hop j between the ideal game of
transfer j, for otFunctionality M with the simulator S₂, and its real game with Sub. The
environment runs the transfers before j with Sub itself and its guessing stage simulates the
transfers after j with S₂, so each summand is the absolute difference of two acceptance
probabilities of one environment; in semiHonestAdvantage_seqBatchOT_compose_le the absolute value
is inside the expectation over the earlier transfers.
Nothing is assumed about Sub, S₂ or D, and no efficiency of the environments is claimed.
The environment of transfer j of call i, for an outer protocol P that calls the
batched transfer batchOTSpec k M, with every call run by seqBatchOT k M over a protocol Sub
for the single transfer. It samples the coins of P, runs P up to its call i with the earlier
calls run by seqBatchOT k M over Sub (composeRoundEnv of P), then runs the transfers before
j of call i with Sub and stops at transfer j (composeRoundEnv of seqBatchOT k M on the
challenged call). The guessing stage simulates the later transfers with S₂ and the later calls
with seqBatchOTSim k M and S₂, and runs D.
An outer protocol over the batched transfer run by sequential single transfers, with one
environment per transfer. Let P be any protocol that calls the batched transfer
batchOTSpec k M, such as Yao's protocol, with every call run by seqBatchOT k M over a protocol
Sub for the single transfer in a world W₂. The semi-honest advantage of D against the
composed protocol, with the simulator composed from S₁, seqBatchOTSim k M and simulators S₂
of Sub, is at most the advantage of composeDistinguisher against P with the ideal batched
transfer, plus the sum over the calls i of P and the transfers j < k of the advantage of the
environment composeSeqBatchOTRoundEnv of transfer j of call i between the ideal game of that
transfer, for otFunctionality M with S₂, and its real game with Sub. Every summand is the
absolute difference of two acceptance probabilities of one environment, which samples the coins of
P and runs the earlier calls and transfers itself.
Nothing is assumed about P, Sub, the simulators or D, and no efficiency of the environments
is claimed.
When every test has semi-honest advantage at most ε against Sub for the coalition I, the
hybrid bound of k sequential transfers is at most k * ε.
The batched transfer over a statistically secure single transfer. If every test has
semi-honest advantage at most ε against Sub, for otFunctionality M with the simulator S₂ I
of the coalition I, on every pair of inputs, then every test has advantage at most k * ε
against (seqBatchOT k M).compose fun _ => Sub, for batchOTFunctionality k M with the composed
simulator. The hypothesis ranges over all tests, so it holds with a small ε only for a
statistically secure Sub.