Approximate exponent sampling bounds for one and several draws #
Cslib.Crypto.PrimeOrderGroupFamily.sampleExp samples an exponent modulo F.order d within
statistical distance 1 / 2 ^ n of exact uniform on ZMod (F.order d). By CloseTo.piFin,
replacing m independent sampleExp n d draws by as many independent exact uniform draws
changes Game.advantage by at most m / 2 ^ n. The two- and three-draw forms state this for
nested binds, the shape their clients use.
Main results #
Cslib.Crypto.PrimeOrderGroupFamily.closeTo_uniform_sampleExp,Cslib.Crypto.PrimeOrderGroupFamily.closeTo_map_uniform_sampleExp:sampleExp n dmoduloqis within statistical distance1 / 2 ^ nof uniform onZMod q.Cslib.Crypto.PrimeOrderGroupFamily.advantage_bind_sampleExp_pair_le: replacing two independentsampleExp n ddraws by two independent uniform draws onZMod (F.order d)changesGame.advantageby at most2 / 2 ^ n.Cslib.Crypto.PrimeOrderGroupFamily.advantage_bind_sampleExp_triple_le: the same for three draws, with loss at most3 / 2 ^ n.Cslib.Crypto.PrimeOrderGroupFamily.advantage_bind_iid_sampleExp_le: the same formdraws, as a tuplePMF.iid, with loss at mostm / 2 ^ n.
An exponent sampled by sampleExp n d is within statistical distance 1 / 2 ^ n of uniform on
ZMod q.
Post-processing the modular cast of sampleExp n d by f is within ℝ≥0∞-distance
1 / 2 ^ n of f applied to a uniform scalar in ZMod q.
Replacing two independent sampleExp n d draws by two independent exact uniform draws on
ZMod (F.order d) changes Game.advantage by at most 2 / 2 ^ n.
Replacing three independent sampleExp n d draws by three independent exact uniform draws on
ZMod (F.order d) changes Game.advantage by at most 3 / 2 ^ n.
Replacing m independent sampleExp n d draws by m independent exact uniform draws on
ZMod (F.order d) changes Game.advantage by at most m / 2 ^ n.