PRG ⇒ One-time SKE for messages longer than the key
Statement
A PRG with yields a one-time-secure SKE scheme for messages longer than the key: outputs , , and . The scheme is perfectly correct and has key length , and for every one-time adversary there is a PRG distinguisher that runs once, with
— folklore.
Sketch
On input , samples , answers the query of with , and outputs , its guess that , iff outputs . For this is the one-time game, which wins with probability ; for uniform the answer is uniform whatever is, so wins with probability . Hence wins with probability , and .
Notes
- is deterministic, so the scheme is not CPA-secure: two encryptions of one message under one key coincide — standard. CPA-secure SKE follows from a PRG through PRG ⇒ Compression-function PRF (GGM), Compression-function PRF ⇒ Length-preserving PRF and Length-preserving PRF ⇒ CPA-secure SKE.
- With keys of bits and all messages of bits, no perfectly correct scheme is perfectly secret (Shannon’s bound) — standard.