Pseudorandom generator from a word-level pseudorandom function #
Evaluating a word-level keyed family family at ℓ n distinct inLen n-bit points
x n : Fin (ℓ n) ↪ BitString (inLen n) and concatenating the resulting outLen n-bit outputs
gives prgFromPRF family ℓ inLen x of length ℓ n * outLen n ([BS23], §4.4.4,
Theorem 4.8, p. 138).
The word reduction prgFromPRFReduction ℓ inLen outLen x A wraps PRF.prgReduction, so
certifying it via isOraclePPT_prgFromPRFReduction also certifies PRF.prgReduction. Theorem
PseudorandomFunctionOver.toPRG uses PseudorandomFunctionOver rather than the fixed-width
PseudorandomFunction (inLen = outLen = id), which cannot expand at seed length 0.
Main definitions #
Cslib.Crypto.prgFromPRF: word generator obtained by evaluatingfamilyatx.Cslib.Crypto.prgFromPRFReduction: word PRF distinguisher wrappingPRF.prgReduction.
Main results #
Cslib.Crypto.computableInPolyTime_prgFromPRF:prgFromPRFis deterministic polynomial time.Cslib.Crypto.isOraclePPT_prgFromPRFReduction:prgFromPRFReductionis uniform strict oracle PPT.Cslib.Crypto.advantage_prgFromPRF_eq: PRG advantage ofAequals PRF advantage ofprgFromPRFReduction.Cslib.Crypto.indistinguishable_prgFromPRF: computational indistinguishability without strict expansion.Cslib.Crypto.PseudorandomFunctionOver.toPRG: Boneh–Shoup Theorem 4.8 as aPseudorandomGenerator.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, §4.4.4 (Theorem 4.8, p. 138).
Evaluate family on a seed at the ℓ seed.length distinct inLen seed.length-bit domain
points x seed.length 0, ..., x seed.length (ℓ seed.length - 1) and concatenate the replies
([BS23], §4.4.4, p. 138).
On a seed of length n, prgFromPRF outputs ℓ n * outLen n bits whenever family
produces outLen n-bit replies on valid inLen n-bit queries.
prgFromPRF is deterministic polynomial time when family and the point list are.
Word-level PRF reduction wrapping the finite reduction PRF.prgReduction: queries the word
oracle at x n 0, ..., x n (ℓ n - 1), truncating/padding each reply to outLen n bits via
BitString.ofList (outLen n), concatenates the replies, and passes them to A n.
Efficiency of the word PRF-to-PRG reduction. For every uniform strict PPT distinguisher A,
prgFromPRFReduction is uniform strict oracle PPT whenever the query list and output widths are
deterministic polynomial time.
Against a keyed family whose answers to inLen n-bit queries under n-bit keys have
outLen n bits, the word PRG real experiment equals the word PRF real experiment of
prgFromPRFReduction.
The uniform-word PRG ideal experiment equals the word PRF ideal experiment of
prgFromPRFReduction.
Concrete word-level advantage identity ([BS23], Theorem 4.8, p. 138): for any
keyed family whose answers to inLen n-bit queries under n-bit keys have outLen n bits and any
word distinguisher A, the PRG distinguishing advantage against prgFromPRF family ℓ inLen x
equals the PRF distinguishing advantage of prgFromPRFReduction ℓ inLen outLen x A.
The generated distribution prgFromPRF is computationally indistinguishable from uniform words
of length ℓ n * outLen n whenever family is a PseudorandomFunctionOver inLen outLen and
both the distinct query list and output width are deterministic polynomial time.
Pseudorandom generator from a pseudorandom function ([BS23], §4.4.4,
Theorem 4.8, p. 138): evaluating a PseudorandomFunctionOver inLen outLen at ℓ n efficiently
computable distinct inLen n-bit inputs yields a PseudorandomGenerator of output length
ℓ n * outLen n, whenever ∀ n, n < ℓ n * outLen n.