Stand-alone semi-honest security of fair-coin DDH oblivious transfer with PPT simulators #
CslibFrontier/Crypto/Protocols/MPC/DDHOT/Family.lean defines ddhOTProbFamily
(ddhOTProbProtocol), the three-message DDH oblivious transfer protocol over a
PrimeOrderGroupFamily F whose honest parties draw raw fair-coin bit strings via
sampleExpBits n d (Remark 23.5, p. 1059) and retain those unreduced bit strings in
PartyView.coins, together with the machine encoding ddhOTEncoding and the certified DDH
reduction ddhOTReceiverToDDHDistinguisher.
This module gives uniform strict-PPT simulator families for all four static coalitions
I : Finset (Fin 2) that likewise generate only raw fair-coin bit strings via sampleExpBits n d,
and proves stand-alone ProtocolFamily.SemiHonestSecure of ddhOTProbFamily under F.DDH setup
(DDH.ddhOTProbFamily_semiHonestSecure) as a step toward [BS23], Section 23.5.7.2,
Theorem 23.7 (p. 1058; #5829, #5293):
I = ∅(no corrupted parties):SimulatorFamily.emptyreproduces the real joint distribution with zero advantage;I = {0}(corrupted sender):ddhOTSenderSimProbdraws the sender's five raw bit strings fromsampleDDHOTSenderBitCoins n d(matching the real sender's coin law with zero loss) and one receiver bit string fromsampleExpBits n d, achieving unconditional statistical security with advantage at most2 / 2 ^ nagainst every environment, efficient or not (advantage_ddhOTProbSenderGame_le,ddhOTProbFamily_semiHonestSecure_sender);I = {1}(corrupted receiver):ddhOTReceiverSimProbdraws the receiver's raw bit string fromsampleExpBits n d(matching the real receiver's coin law with zero loss) and five sender/mask bit strings fromsampleExpBits n d, within5 / 2 ^ nofddhOTReceiverSimOf(advantage_bind_ddhOTReceiverSimProb_le), so every environment's advantage is at most the DDH advantage ofddhOTReceiverToDDHDistinguisher Zplus14 / 2 ^ n(advantage_ddhOTProbReceiverGame_le);I = Finset.univ(both parties corrupted):ddhOTFullSimProbrunsddhOTProbProtocol's raw bit-string coin draws on both parties' inputs, reproducing the real joint distribution with zero advantage.
Remaining gap to [BS23], Theorem 23.7 #
DDH.ddhOTProbFamily_semiHonestSecure is a stand-alone semi-honest step toward [BS23],
Section 23.5.7.2, Theorem 23.7 (p. 1058), not the cited result (#5829, #5293):
- Execution model (
ProtocolFamily.SemiHonestSecurevs. Section 23.5.6 & Definition 23.5, pp. 1043–1044, 1054–1056):SemiHonestSecureis a two-stage stand-alone game in which a uniform strict-PPT environment chooses all inputs after seeing(1ⁿ, d)fromsetup nand distinguishes the corrupted coalition's final(PartyView, outputs)tuple, rather than exchanging interactive report and control messages during protocol execution to implementF_otin the restricted UC framework of Section 23.5.6. In addition,IsPPTOnbounds running time on every execution rather than with overwhelming probability (Section 23.5.2.2, p. 1043). - Protocol variant (
ddhOTProbProtocolvs. Figure 23.17, p. 1057): as documented inDDHOT.lean, the sender derivesu = a • gfrom a sampled exponent bit string (knowinga, whereas Figure 23.17 samplesdfromG), encrypts each branchiwith independent coins(rᵢ, sᵢ)rather than a single shared exponentβ, and performs the checkw₀ + w₁ = uof Section 23.5.7.3, Remark 23.6 (p. 1061), sending zeros when violated.
Both parties and simulators draw raw fair-coin bit strings (sampleExpBits n d), and
PartyView.coins retains those unreduced bit strings verbatim, discharging the coin-representation
requirement of Section 23.5.7.2 ("Further assumptions about randomness", p. 1059) and
[Lin17], Section 4.2, Definition 4.1 (p. 7; up to the uniform post-setup input-choice
conventions of ProtocolFamily.SemiHonestSecure documented in
CslibFrontier/Crypto/Protocols/MPC/Asymptotic.lean).
Main definitions #
Cslib.Crypto.PrimeOrderGroupFamily.ddhOTSenderSimProb,Cslib.Crypto.PrimeOrderGroupFamily.ddhOTReceiverSimProb: the simulator families for{0}and{1}that draw raw fair-coin bit strings viasampleExpBits.
Main results #
Cslib.Crypto.PrimeOrderGroupFamily.isPPT_ddhOTSenderSimProb,Cslib.Crypto.PrimeOrderGroupFamily.isPPT_ddhOTReceiverSimProb: the simulator families are uniform strict PPT forddhOTEncoding.Cslib.Crypto.PrimeOrderGroupFamily.advantage_bind_ddhOTReceiverSimProb_le: on every input,ddhOTReceiverSimProbis within statistical distance5 / 2 ^ nofddhOTReceiverSimOf.Cslib.Crypto.PrimeOrderGroupFamily.advantage_ddhOTProbSenderGame_le,Cslib.Crypto.PrimeOrderGroupFamily.ddhOTProbFamily_semiHonestSecure_sender: against a corrupted sender, every environment (efficient or not) has advantage at most2 / 2 ^ n, giving unconditional stand-alone semi-honest security ofddhOTProbFamilyat{0}(step toward Theorem 23.7).Cslib.Crypto.PrimeOrderGroupFamily.advantage_ddhOTProbReceiverGame_le: against a corrupted receiver, every environment has advantage at most the DDH advantage ofddhOTReceiverToDDHDistinguisher Zplus14 / 2 ^ n.Cslib.Crypto.PrimeOrderGroupFamily.DDH.ddhOTProbFamily_semiHonestSecure: underF.DDH setup,ddhOTProbFamilysatisfies stand-aloneProtocolFamily.SemiHonestSecurefor every static coalitionI : Finset (Fin 2)(step toward [BS23], Theorem 23.7; #5829, #5293).
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Section 23.5 (Section 23.5.2.2, p. 1043; Definition 23.5, p. 1044; Section 23.5.6, pp. 1054–1056; Figure 23.17, p. 1057; Theorem 23.7, p. 1058; Remark 23.5, p. 1059; Remark 23.6, p. 1061).
- Y. Lindell, How To Simulate It – A Tutorial on the Simulation Proof Technique, ECCC TR17-112, Section 2 (p. 3) and Section 4.2 (Definition 4.1, p. 7).
The simulator families #
Simulator family for a corrupted sender ({0}) in ddhOTProbFamily: draws the sender's five
raw fair-coin bit strings via sampleDDHOTSenderBitCoins n d (recording them unreduced in
PartyView.coins, with the exact same law as the real sender) and one bit string bBits via
sampleExpBits n d for the simulated Round 2 message.
Simulator family for a corrupted receiver ({1}) in ddhOTProbFamily: draws six raw fair-coin
bit strings via sampleExpBits n d, recording bBits unreduced in the receiver's
PartyView.coins (with the exact same law as the real receiver) and using the remaining five bit
strings for ddhOTReceiverSimWithCoinsOf.
Statistical closeness to ddhOTReceiverSimOf #
On every input, ddhOTReceiverSimProb and ddhOTReceiverSimOf (which shares the receiver's
exact sampleExpBits n d draw bBits and draws the five sender/mask exponents uniformly) are
within statistical distance 5 / 2 ^ n.
Efficiency of the simulator families #
ddhOTSenderSimProb is uniform strict PPT for ddhOTEncoding.
ddhOTReceiverSimProb is uniform strict PPT for ddhOTEncoding.
Empty and full coalitions #
Security #
Concrete statistical sender security of ddhOTProbFamily: against a corrupted sender
({0}), every environment Z—with no running-time bound and no computational assumption—has
advantage at most 2 / 2 ^ n between the fair-coin real game and the ideal game with
ddhOTSenderSimProb (1 / 2 ^ n from the honest receiver's sampleExpBits draw plus 1 / 2 ^ n
from the simulator's bBits draw, while the sender's five raw bit strings are drawn from the exact
same law in both games).
Step toward the corrupted-sender case of [BS23], Section 23.5.7.2, Theorem 23.7
(pp. 1058, 1060), not the cited result: this proves two-stage stand-alone
ProtocolFamily.SemiHonestSecure at {0} for the checked per-branch-coin variant
ddhOTProbFamily rather than Section 23.5.6 interactive emulation of F_ot for Figure 23.17
(#5829, #5293). F.ddhOTProbFamily is semi-honest secure against a corrupted sender ({0}) for
every setup law setup, with no hardness assumption (advantage_ddhOTProbSenderGame_le,
≤ 2 / 2 ^ n).
Concrete receiver reduction bound for ddhOTProbFamily: against a corrupted receiver
({1}), every environment Z has advantage between the fair-coin real game and the ideal game
with ddhOTReceiverSimProb at most the DDH advantage of ddhOTReceiverToDDHDistinguisher Z plus
14 / 2 ^ n (9 / 2 ^ n from advantage_ddhOTReceiverGame_le plus 5 / 2 ^ n from
advantage_bind_ddhOTReceiverSimProb_le, with zero loss on the receiver's raw coin bit string).
Step toward [BS23], Section 23.5.7.2, Theorem 23.7 (p. 1058), not the cited result:
this proves two-stage stand-alone ProtocolFamily.SemiHonestSecure for the checked
per-branch-coin variant ddhOTProbFamily rather than execution indistinguishability against
interactive report/control environments implementing F_ot in the restricted framework of
Section 23.5.6 (pp. 1054–1056) for Figure 23.17 (#5829, #5293).
Under F.DDH setup, F.ddhOTProbFamily—whose parties draw raw fair-coin bit strings via
sampleExpBits and record those unreduced bit strings in PartyView.coins, as in Remark 23.5
(p. 1059) and [Lin17], Section 4.2, Definition 4.1 (p. 7)—satisfies
ProtocolFamily.SemiHonestSecure across every static coalition I : Finset (Fin 2) with
certified uniform strict-PPT simulators and DDH reduction:
I = ∅(no corruption): exact simulation (SimulatorFamily.empty, advantage0);I = {0}(corrupted sender): unconditional statistical simulation (ddhOTSenderSimProb, advantage≤ 2 / 2 ^ n);I = {1}(corrupted receiver): computational simulation (ddhOTReceiverSimProb) via the certified reductionddhOTReceiverToDDHDistinguisher(advantage≤ ddhAdv + 14 / 2 ^ n);I = Finset.univ(full corruption): exact simulation (ddhOTFullSimProb, advantage0).