The dummy adversary #
The dummy adversary UC.dummyAdversary forwards every query of the environment to the network
port and every reply back. It suffices to simulate the dummy adversary: a simulator S_D for it
yields, for every adversary A, the black-box simulator UC.compSim S_D A that runs A on top of
S_D. The reason is an exact identity of executions: running A with environment Z is running
the dummy adversary with the environment UC.absorbAdversary C A Z that runs A internally
(UC.exec_eq_exec_dummy), and likewise running UC.compSim S_D A with Z is running S_D with
the absorbed environment (UC.exec_compSim). Both identities are equations of programs, by
associativity of linking (Cslib.Crypto.Protocols.UC.Machine.link_comp).
With call budgets, absorbing an adversary with budget pA into an environment with budget pZ
gives an environment with budget UC.absorbPoly pZ pA = pA + 1 + pZ * (pA + 2), and the black-box
simulator has budget pA * (pD + 1) + pD, which is bounded by
UC.compSimPoly pD = X * (pD + 1) + pD at κ + pA κ. Hence concrete emulation of the dummy
adversary (UC.EmulatesDummyWithin) implies
concrete emulation (UC.EmulatesDummyWithin.emulatesWithin) with the error evaluated at the
absorbed environment budget, and conversely (UC.EmulatesWithin.emulatesDummyWithin). Black-box
emulation (UC.EmulatesBlackBoxWithin), with one simulator S_D used as UC.compSim S_D A for
every adversary, sits between the two. With negligible error, simulating the dummy adversary
(UC.EmulatesDummy) is equivalent to emulation (UC.emulates_iff_emulatesDummy).
Budgets count calls (Cslib.Crypto.Protocols.UC.Machine.IsBounded); they bound interaction, not
running time.
Main definitions #
Cslib.Crypto.Protocols.UC.dummyAdversary: the forwarding adversary.Cslib.Crypto.Protocols.UC.compSim: an adversary run on top of a simulator for the dummy adversary.Cslib.Crypto.Protocols.UC.absorbAdversary: an environment running an adversary internally.Cslib.Crypto.Protocols.UC.absorbPoly: the budget of an absorbed environment.Cslib.Crypto.Protocols.UC.compSimPoly: the simulator overhead of a black-box simulator.Cslib.Crypto.Protocols.UC.EmulatesDummyWithin,Cslib.Crypto.Protocols.UC.EmulatesBlackBoxWithin: emulation of the dummy adversary, and black-box emulation.Cslib.Crypto.Protocols.UC.EmulatesDummy: simulation of the dummy adversary with negligible error.
Main results #
Cslib.Crypto.Protocols.UC.exec_dummyAdversary,Cslib.Crypto.Protocols.UC.exec_eq_exec_dummy,Cslib.Crypto.Protocols.UC.exec_compSim,Cslib.Crypto.Protocols.UC.advantage_compSim: running the dummy adversary and absorbing an adversary into the environment.Cslib.Crypto.Protocols.UC.compSim_polyBounded,Cslib.Crypto.Protocols.UC.absorbAdversary_polyBounded,Cslib.Crypto.Protocols.UC.eval_absorbPoly,Cslib.Crypto.Protocols.UC.eval_absorbPoly_mono,Cslib.Crypto.Protocols.UC.eval_compSimPoly,Cslib.Crypto.Protocols.UC.eval_compSimPoly_mono: budgets.Cslib.Crypto.Protocols.UC.emulates_iff_emulatesDummy: completeness of the dummy adversary with negligible error.Cslib.Crypto.Protocols.UC.EmulatesDummyWithin.emulatesWithin,Cslib.Crypto.Protocols.UC.EmulatesWithin.emulatesDummyWithin,Cslib.Crypto.Protocols.UC.EmulatesDummyWithin.emulatesBlackBoxWithin,Cslib.Crypto.Protocols.UC.EmulatesBlackBoxWithin.emulatesWithin,Cslib.Crypto.Protocols.UC.EmulatesBlackBoxWithin.emulatesDummyWithin: completeness of the dummy adversary and black-box simulation.
References #
- R. Canetti, Universally Composable Security, Section 4.3: emulation with respect to the dummy adversary, and black-box simulation. Here corruptions are static and polynomial time is replaced by polynomial call budgets.
Dummy adversary, black-box simulators and absorbed environments #
The dummy adversary forwards the environment's queries to the network port.
The environment that runs the adversary A internally, for the corrupted parties C, and
talks to the network through the dummy adversary.
Running the UC execution with dummyAdversary is running the environment directly against
corruptRouter C (π κ C).
Running an adversary is running the dummy adversary with the adversary absorbed into the environment.
Running the black-box simulator is running the dummy-adversary simulator with the adversary absorbed into the environment.
Absorbing the dummy adversary leaves the environment unchanged.
The advantage against an adversary and its black-box simulator is the advantage against the dummy adversary and the core simulator, for the absorbed environment.
The black-box simulator for the dummy adversary is the core simulator.
Budgets #
The budget pA + 1 + pZ * (pA + 2) of an environment with budget pZ that absorbs an
adversary with budget pA.
The absorbed budget is monotone in both budgets.
Library infrastructure (no cited result): the call-budget overhead X * (pD + 1) + pD of the
black-box simulator compSim S_D A on a core simulator with budget pD, as a polynomial in
κ + pA κ.
Library infrastructure (no cited result): the black-box simulator overhead is monotone in the core budget.
The dummy adversary makes one call per activation.
The black-box simulator of an adversary with budget pA on a core simulator with budget pD
has budget pA * (pD + 1) + pD.
The black-box simulator's budget is bounded by compSimPoly pD at κ + pA κ.
Absorbing an adversary with budget pA into an environment with budget pZ gives an
environment with budget absorbPoly pZ pA.
Emulation of the dummy adversary and black-box emulation #
Concrete emulation of the dummy adversary: a simulator with budget pD such that every
environment with budget pZ distinguishes π with the dummy adversary from φ with the
simulator with advantage at most ε pZ κ, whatever the corrupted parties.
Source. This is UC emulation with respect to the dummy adversary of [Can20a] (Cryptology
ePrint Archive 2000/067, revision of February 11, 2020), Definition 10, p. 44, whose Claim 11 on
the same page shows it equivalent to UC emulation (here emulates_iff_emulatesDummy), stated with
an explicit simulator budget pD and error ε as in Definition 15, p. 51. It differs from the
source as EmulatesWithin does: call budgets in place of running time, with otherwise unbounded
computation (the statistical setting of Section 4.4, p. 50); static corruptions; no identity bound
on environments; a fixed set of n parties; and a bound at every κ and for every auxiliary
input. Like EmulatesWithin, it is novel to this library: it is not source-identical, and no
implication to or from the source's notion is established here. It is equivalent to
EmulatesWithin up to budgets and errors
(EmulatesDummyWithin.emulatesWithin, EmulatesWithin.emulatesDummyWithin), as Claim 11 is for
the source's notions, so it is plausible for the same reasons; not_emulatesDummyWithin_fcom
gives plain commitment schemes that fail it.
Concrete black-box emulation: one simulator S_D with budget pD such that, for every
adversary A with budget pA, the black-box simulator compSim S_D A has advantage at most
ε pA pZ κ against every environment with budget pZ.
Source. This is UC emulation with black-box simulation of [Can20a] (Cryptology ePrint
Archive 2000/067, revision of February 11, 2020), Definition 12, p. 48: one black-box simulator
S such that, for every adversary A, the composite adversary S^A, whose main program S runs
A as a subroutine, simulates A. Its Claim 13, p. 49, shows it equivalent to UC emulation. It is
stated with an explicit budget pD and error ε, as in Definition 15, p. 51, and differs from the
source as EmulatesWithin does: call budgets in place of running time, with otherwise unbounded
computation (the statistical setting of Section 4.4, p. 50); static corruptions; no identity bound
on environments; a fixed set of n parties; and a bound at every κ and for every auxiliary
input. Like EmulatesWithin, it is novel to this library: it is not source-identical, and no
implication to or from the source's notion is established here. It is equivalent to
EmulatesDummyWithin up to budgets and errors
(EmulatesDummyWithin.emulatesBlackBoxWithin, EmulatesBlackBoxWithin.emulatesDummyWithin), as
Claim 13 is for the source's notions, and implies EmulatesWithin
(EmulatesBlackBoxWithin.emulatesWithin), so it is plausible for the same reasons.
Simulating the dummy adversary gives black-box simulation of every adversary, with the error evaluated at the absorbed environment's budget.
Black-box emulation is emulation, with the black-box simulator's budget.
Completeness of the dummy adversary: simulating it gives emulation, with simulator overhead
compSimPoly pD and the error evaluated at the absorbed environment's budget.
Emulation gives a simulator for the dummy adversary, whose budget is bounded by g at
κ + 1.
Black-box emulation gives emulation of the dummy adversary with the same core simulator.
Negligible error #
Simulation of the dummy adversary with negligible error: a simulator with a polynomial budget such that, for each polynomial environment budget, one negligible function bounds the advantage of every such environment, for all corrupted parties and auxiliary inputs.
Completeness of the dummy adversary: UC emulation with negligible error is equivalent to simulating the dummy adversary with negligible error.