IKNP oblivious-transfer extension as a protocol family #
CslibFrontier/Crypto/Protocols/MPC/IKNP.lean defines iknpProtocol H for one hash family H
and proves its privacy at one instance. This module runs it as the protocol family
iknpFamily hash m (Cslib.Crypto.Protocols.MPC.ProtocolFamily): at the security parameter n,
n base transfers of (m n)-bit strings, the hybrid batchOTSpec n (BitString (m n)), extend to
m n transfers of bits, with the hash CorrelationRobust.atLevel hash n (m n), which hashes the
bits of a row with the word function hash. There are no public parameters. iknpEncoding
writes inputs, outputs and views as bit words (IKNPSenderViewWords, IKNPReceiverViewWords).
CorrelationRobust.iknpSemiHonestSecure proves that the family is semi-honest secure against a
corrupted sender and against a corrupted receiver (ProtocolFamily.SemiHonestSecure), assuming
only that hash is correlation robust (Cslib.Crypto.CorrelationRobust) and that m is
polynomially bounded.
Proof. Against the sender, the simulator iknpSenderSim is perfect
(idealJoint_iknp_sender), and it is PPT (isPPT_iknpSenderSim): it draws n bits for the
choice string and n words of m n bits for the columns. Against the receiver, the reduction
iknpReceiverToCR Z turns an environment Z into a correlation-robustness distinguisher: it runs
Z.choose, then the per-instance reduction iknpReduction. The real game is the real
correlation-robustness game of the reduction at level n with m n queries, and the ideal game
with iknpReceiverSim is its ideal game, with no loss (realGame_iknp_receiver_eq,
idealGame_iknp_receiver_eq). isPPT_iknpReceiverToCR proves the reduction PPT whenever Z is,
and isPPT_iknpReceiverSim proves the receiver's simulator PPT; both use the assumption's
polyTime.
Comparison with [IKNP03] #
CorrelationRobust.iknpSemiHonestSecure formalizes the two Claims of §3.1 for Fig. 1 (p. 152),
with the random oracle replaced by a correlation robust hash as §5 describes (p. 157):
- the sender Claim (p. 153, the protocol "is perfectly secure with respect to an arbitrary
sender"), in its semi-honest case: the p. 153 simulator for the honest sender is
iknpSenderSim; - the receiver Claim (p. 154, a semi-honest receiver). Its random-oracle bound, Lemma 1 (p. 154), is replaced by §5's argument that the masks of the unchosen entries are jointly pseudorandom given the receiver's view; here that argument is an exact game equality.
Theorems 2 (p. 147) and 3 (p. 157) are not formalized. They concern oblivious transfer in the
source's default sense, secure against malicious parties (p. 146): the fully secure variant of
§4 (p. 154), modified for correlation robustness in Theorem 3, composed with the reduction of
OT^k_m to OT^k_k with a pseudorandom generator (§2.2, p. 151, and Appendix B). The
formalized statement differs from the two Claims as follows.
- Protocol and parameters. Fig. 1 with
ℓ = 1, bit transfers, andh(u)in place of the random oracle'sH(j, u), which is how §5 (p. 157, footnote 10) instantiates it with a correlation robusth. There arek = nbase transfers andm nextended ones, for any polynomially boundedm, the "polynomially many" of §5. - Hybrid model. The base transfers are the ideal primitive
OT^k_mof Fig. 1,ktransfers ofm-bit strings (batchOTSpec), in the hybrid model of §2.1 (pp. 149–150). No composition theorem replaces them by a protocol. - Corruption. One static party at a time, semi-honest. The source's definition (Appendix A, p. 160) is the stand-alone one against a non-adaptive adversary, as here.
- Environments. Uniform strict PPT environments that choose the inputs, the uniform variant
of
ProtocolFamily.SemiHonestSecure; its module documentation lists the differences of the notion. - Assumption.
CorrelationRobust hashadmits fewer distinguishers than Definition 1 (§5, p. 157), which implies it for a hash computed in polynomial time.
Main definitions #
Cslib.Crypto.Protocols.MPC.IKNPSenderViewWords,Cslib.Crypto.Protocols.MPC.IKNPReceiverViewWords, their encodings, andCslib.Crypto.Protocols.MPC.iknpSenderViewWords,Cslib.Crypto.Protocols.MPC.iknpReceiverViewWords: a party's view as words.Cslib.Crypto.Protocols.MPC.iknpFamily: IKNP bit-transfer extension as a protocol family.Cslib.Crypto.Protocols.MPC.iknpEncoding: its encoding for machines.Cslib.Crypto.Protocols.MPC.iknpReceiverToCR: the reduction to correlation robustness.
Main results #
Cslib.Crypto.Protocols.MPC.isPPT_iknpSenderSim,Cslib.Crypto.Protocols.MPC.isPPT_iknpReceiverSim: the simulator families are PPT.Cslib.Crypto.Protocols.MPC.realGame_iknp_receiver_eq,Cslib.Crypto.Protocols.MPC.idealGame_iknp_receiver_eq: against a corrupted receiver, the games are the correlation-robustness games of the reduction.Cslib.Crypto.Protocols.MPC.isPPT_iknpReceiverToCR: the reduction is PPT.Cslib.Crypto.CorrelationRobust.iknpSemiHonestSecure: semi-honest security against either party under correlation robustness.
References #
- Y. Ishai, J. Kilian, K. Nissim, E. Petrank, Extending Oblivious Transfers Efficiently, §1.1–1.2 (pp. 146–147), §2 (pp. 149–151), Fig. 1 and §3.1 (pp. 152–154), §4 (p. 154), §5 (Definition 1, p. 157) and Appendix A (p. 160).
Views as words #
The words of a corrupted sender's view in iknpProtocol with bit values: the first and the
second entries of its pairs, its base choice string s, and the columns of the matrix it received
from the base transfers.
The bits
x_{j,0}.The bits
x_{j,1}.The base choice string
s.The columns
qⁱreceived from the base transfers.
The encoding of a sender's view words: each field in turn, all but the last framed.
The words of a corrupted receiver's view in iknpProtocol with bit values: its choice bits
r, the rows tⱼ of its matrix, and the first and the second entries of the masked pairs it
received.
The choice bits
r.The rows
tⱼof the receiver's matrix.The masked bits
y_{j,0}.The masked bits
y_{j,1}.
The encoding of a receiver's view words: each field in turn, all but the last framed.
The view words of the two parties of iknpProtocol: IKNPSenderViewWords for the sender
(party 0) and IKNPReceiverViewWords for the receiver (party 1).
The words of a sender's view: its pairs as two bit words, its choice string, and the received columns as bit words.
The words of a receiver's view: its choice bits, the rows of its matrix, and the masked pairs as two bit words.
The words determine a sender's view.
The words determine a receiver's view.
The protocol family and its encoding #
IKNP bit-transfer extension as a protocol family: at the security parameter n,
iknpProtocol with the hash CorrelationRobust.atLevel hash n (m n) extends n base transfers
of (m n)-bit strings (the batchOTSpec n (BitString (m n)) hybrid) to m n transfers of bits.
There are no public parameters.
The words of a party's input: the sender's pairs as two bit words, the receiver's choice bits as one.
The words of a party's output: nothing for the sender, the received bits for the receiver.
The encoding of iknpFamily hash m for machines. There are no public parameters
(encUnit). The sender's input X is the pair of bit words (x_{j,0})ⱼ and (x_{j,1})ⱼ
(encPair encBits encBits), and the receiver's input is the word of its choice bits. The
sender's output () is the empty word, and the receiver's output is the word of its bits. The
views are their view words (iknpSenderViewWords, iknpReceiverViewWords), encoded by
encIKNPSenderViewWords and encIKNPReceiverViewWords.
Efficiency of the simulator families #
The simulator family iknpSenderSim for a corrupted sender is PPT for iknpEncoding: it
draws n bits for s and n words of m n bits for the columns.
The simulator family iknpReceiverSim for a corrupted receiver is PPT for iknpEncoding
when the hash is computed in polynomial time: it draws m n words of n bits for the rows and
m n bits for the unchosen entries, and hashes the rows.
Corrupted receiver: the reduction to correlation robustness #
The correlation-robustness distinguisher built from an environment Z that corrupts the
receiver: at level k, given the inputs t and the bits w, run Z.choose, then
iknpReduction with Z.guess, which writes t as the receiver's matrix and masks the chosen
entries with hash tⱼ and the unchosen ones with wⱼ.
The real game against a corrupted receiver is the real correlation-robustness game of the reduction.
The ideal game against a corrupted receiver with iknpReceiverSim is the ideal
correlation-robustness game of the reduction.
Corrupted receiver: efficiency of the reduction #
iknpReceiverToCR Z is uniform strict PPT whenever Z is and the hash is computed in
polynomial time.
Semi-honest security of IKNP oblivious-transfer extension: if hash is correlation
robust and the number m n of extended transfers is polynomially bounded, then
iknpFamily hash m is semi-honest secure against a corrupted sender ({0}) and against a
corrupted receiver ({1}), for the encoding iknpEncoding (ProtocolFamily.SemiHonestSecure).
These are the two Claims of [IKNP03] §3.1 for Fig. 1, the sender's
(p. 153) in its semi-honest case and the receiver's (p. 154), with the random oracle replaced by a
correlation robust hash as §5 describes (p. 157): n ideal base transfers of (m n)-bit strings
(the source's OT^k_m hybrid), and bit transfers with one hash at every position. Theorems 2 and
3 of the source, which concern the fully secure variant of §4 composed with the reduction of
OT^k_m to OT^k_k, are not formalized. Environments are uniform and choose the inputs, and
corruption is static and of one party (module documentation). The simulators are
iknpSenderSim, perfect, and iknpReceiverSim, certified by isPPT_iknpSenderSim and
isPPT_iknpReceiverSim; the reduction is certified by isPPT_iknpReceiverToCR.