Deterministic tests of generators #
The experiments of Attack Game 3.1 [BS23] against a deterministic test are densities:
a test accepts the output of a generator on a uniform seed with probability the density of the
seeds whose output it accepts (Cslib.Crypto.PRG.Generator.toReal_realExperiment_pure), and a
uniform string with the density of the strings it accepts
(Cslib.Crypto.PRG.Generator.toReal_idealExperiment_pure). On bit strings the advantage is the
difference of the two counts, scaled by the numbers of seeds and strings
(Cslib.Crypto.PRG.Generator.advantage_pure_eq).
Main results #
Cslib.Crypto.PRG.Generator.toReal_realExperiment_pure,Cslib.Crypto.PRG.Generator.toReal_idealExperiment_pure: the experiments of a deterministic test are densities.Cslib.Crypto.PRG.Generator.toReal_realExperiment_sub_toReal_idealExperiment_not: a test that accepts no output of the generator gives its negation the advantage of its density.Cslib.Crypto.PRG.Generator.advantage_pure_eq: the advantage of a deterministic test on bit strings as a difference of counts.
References #
A deterministic test accepts the output of a generator on a uniform seed with probability the density of the seeds on which it accepts.
A deterministic test accepts a uniform string with probability the density of the strings it accepts.
Dense tests that avoid a generator. If a deterministic test accepts no output of G, its
negation accepts outputs of G with probability exceeding that of uniform strings by exactly the
density of the strings the test accepts.