IKNP oblivious-transfer extension #
The protocol of Ishai, Kilian, Nissim and Petrank [IshaiKilianNissimPetrank2003, Section 3,
Figure 1], which implements m transfers of values in L from κ base transfers of m-bit
strings and a correlation-robust family H : Fin m → BitString κ → L
(Cslib.Crypto.CorrelationRobust). Party 0, the sender, holds pairs X : Fin m → Bool → L;
party 1, the receiver, holds choice bits r : Fin m → Bool. The functionality is the ideal
batched transfer batchOTFunctionality m L, which gives fun j => X j (r j) to the receiver and
nothing to the sender.
- The receiver samples a uniform
m × κmatrixT, with rowstⱼand columnstⁱ. The parties make one call tobatchOTSpec κ (BitString m)with the roles reversed (iknpRoleReversal): the receiver offers the pair(tⁱ, tⁱ + r)for eachi, and the sender chooses with a uniforms : BitString κ. The sender learns the matrix with rowsqⱼ = tⱼ + rⱼ s. - The sender sends
X j b + H j (qⱼ + b s)for eachjandb(iknpMasked). - The receiver outputs
Y j (r j) - H j tⱼ; its mask isH j tⱼbecauseqⱼ + rⱼ s = tⱼ(iknp_mask_input).
The paper's values are bit strings, L = BitString ℓ, where subtraction is addition; here L is
any finite additive commutative group.
- Correctness (
iknp_output_of_mem_support): in every run the receiver outputsfun j => X j (r j), for everyH. - Privacy against the sender (
idealJoint_iknp_sender): the columnstⁱ + sᵢ rthat the sender receives are uniform whateversandrare, so the simulatoriknpSenderSim, which samples them afresh, makes the ideal and real joint distributions equal. - The receiver's advantage identity (
semiHonestAdvantage_iknp_receiver), a step for everyH: the entries the receiver did not choose are masked byH j (tⱼ + s), withsuniform and hidden from it, and the receiver knowstⱼ. That is the correlation-robustness experiment, so the advantage of every distinguisherDagainst the simulatoriknpReceiverSimequals the correlation-robustness advantage of the explicit reductioniknpReduction H x D.
These statements are per instance and are not themselves security theorems: they are stated on
the joint distribution of the corrupted party's view and both outputs, one simulator per corrupted
party, with a concrete advantage in place of computational indistinguishability. The security
theorem, semi-honest security of the protocol family against either party under correlation
robustness, is Cslib.Crypto.CorrelationRobust.iknpSemiHonestSecure.
Scope: the base transfers are the ideal oracle, and no composition theorem replaces them by a
protocol. The statements are for a single instance (H, inputs and distinguisher fixed), with no
security parameter, and running time is not tracked. Only semi-honest security is covered, not the
malicious variant of the paper. CslibFrontier/Crypto/Protocols/MPC/IKNP/Family.lean runs the
protocol as a family of bit-transfer extensions, with PPT simulators and a PPT reduction, and
proves it semi-honest secure from the asymptotic correlation-robustness assumption
(Cslib.Crypto.CorrelationRobust.iknpSemiHonestSecure).
Main definitions #
Cslib.Crypto.Protocols.MPC.iknpProtocol: the protocol, with scheduleiknpSchedule.Cslib.Crypto.Protocols.MPC.iknpSenderSim,Cslib.Crypto.Protocols.MPC.iknpReceiverSim: the simulators.Cslib.Crypto.Protocols.MPC.iknpReduction: the reduction to correlation robustness.
Main results #
Cslib.Crypto.Protocols.MPC.iknp_output_of_mem_support: correctness.Cslib.Crypto.Protocols.MPC.idealJoint_iknp_sender,Cslib.Crypto.Protocols.MPC.semiHonestAdvantage_iknp_sender: perfect privacy against the sender.Cslib.Crypto.Protocols.MPC.realJoint_iknp_receiver_bind,Cslib.Crypto.Protocols.MPC.idealJoint_iknp_receiver_bind: against the receiver, the real and the ideal joint distribution, tested byD, are the correlation-robustness games ofiknpReduction H x D.Cslib.Crypto.Protocols.MPC.semiHonestAdvantage_iknp_receiver: against the receiver, every distinguisher's advantage equals the correlation-robustness advantage ofiknpReduction H x D, for everyH.
References #
- Y. Ishai, J. Kilian, K. Nissim, E. Petrank, Extending Oblivious Transfers Efficiently, Section 3.
- O. Goldreich, Foundations of Cryptography, Volume 2: Basic Applications, Section 7.2.2.1 (Definition 7.2.1, pp. 620–622).
The coins: the sender's base choice string s and the receiver's matrix T, by rows.
The parties of the base transfers, with the roles reversed: the extension's receiver
(party 1) is the base sender (slot 0), and the extension's sender (party 0) is the base
receiver (slot 1).
The schedule: κ base transfers of m-bit strings with the roles reversed, then the
sender's message of masked pairs.
The rows of the matrix whose columns are Q (the transpose, Function.swap Q).
The sender's message: the pair X j masked by H j qⱼ and H j (qⱼ + s), where qⱼ is
the j-th row of the matrix received from the base transfers.
The base-transfer queries: the receiver offers the columns (tⁱ, tⁱ + r) and the sender
chooses with s.
The sender's message from its input, its coins and the columns it received.
The IKNP protocol in the hybrid model with κ base transfers of m-bit strings.
Runs of the protocol #
The key identity: the j-th row of the matrix the sender receives is tⱼ shifted by
s exactly when rⱼ holds, so the sender's two masks are H j tⱼ on the receiver's choice and
H j (tⱼ + s) on the other entry.
Correctness: in every run the receiver outputs fun j => X j (r j) and the sender
outputs nothing.
Privacy against the sender #
The simulator for a corrupted sender: a fresh base choice string and uniform columns.
The real joint distribution for a corrupted sender: its choice string and the columns it
receives, with T uniform.
Perfect privacy against the sender: the ideal joint distribution with iknpSenderSim
equals the real one, because the columns tⁱ + sᵢ r are uniform whatever s and r are.
A corrupted sender has advantage zero against every distinguisher.
Privacy against the receiver #
The simulator for a corrupted receiver with choice bits r and output z: a uniform matrix
T, the chosen entries z j + H j tⱼ, and uniform values in place of the other entries.
The correlation-robustness distinguisher that a distinguisher D on the receiver's joint
view and outputs induces, for the inputs x: given inputs t and values w, it masks the
chosen entries with H j tⱼ and the other entries with w j, and runs D.
The real joint distribution for a corrupted receiver.
The real joint distribution for a corrupted receiver, tested by D, is the real
correlation-robustness game of iknpReduction H x D: the unchosen entries are masked by
H j (tⱼ + s).
The ideal joint distribution for a corrupted receiver with iknpReceiverSim, tested by D,
is the ideal correlation-robustness game of iknpReduction H x D: the simulator's uniform
unchosen entries are uniform masks shifted by the sender's unchosen values.
A step of the receiver's case of [IKNP03], §5, at one instance, not the
security theorem: every distinguisher's advantage between the ideal joint distribution with
iknpReceiverSim and the real one equals the correlation-robustness advantage of the reduction
iknpReduction against H. The asymptotic theorem, with PPT simulators and a PPT reduction, is
Cslib.Crypto.CorrelationRobust.iknpSemiHonestSecure.