Modular reduction of finite pseudorandom generators #
Reduction of a finite-type PRG.Generator Seed (Fin N) modulo m, giving Generator.modNat, and
the concrete advantage inequality of Boneh–Shoup Example 3.3 (Generator.advantage_modNat_le) for
every adversary. Example 3.3 itself, that the residues are computationally indistinguishable from
uniform when the generator is secure and m / N is negligible, is
Cslib.Crypto.ComputationallyIndistinguishable.map_modWord and
Cslib.Crypto.PseudorandomGenerator.indistinguishable_map_modWord, whose reduction is certified
PPT (Cslib.Crypto.isPPT_modDistinguisher).
Main definitions #
Cslib.Crypto.PRG.Generator.modNat: compose aFin N-valued generator with reduction modulom.
Main results #
Cslib.Crypto.PRG.Generator.advantage_modNat_le:Distadv[A, P₀, P₁] ≤ PRGadv[B, G] + m / N.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Section 3.11 (Example 3.3, pp. 86–87).
Example 3.3 for a generator on finite types ([BS23], p. 87):
Distadv[A, P₀, P₁] ≤ PRGadv[B, G] + m / N, where P₀ is the output of G reduced modulo m,
P₁ is uniform on ZMod m, and B reduces its challenge modulo m and runs A. Nothing is
assumed about G or A, and N need not be a power of two.