Length-preserving PRF ⇒ CPA-secure SKE
Statement
A length-preserving PRF , with domain and range for a polynomially bounded computable from in polynomial time, yields a CPA-secure SKE scheme via randomized counter mode: for , with a fresh per encryption and counters taken modulo , reading the domain as ; recomputes the pad from — BDJR97, who analyse it as their stateless XOR scheme, and its stateful variant, with concrete bounds in terms of the PRF advantage and the number of blocks encrypted. Since recomputes the pad, the scheme is perfectly correct, and its message space has two distinct messages of each block length — standard.
Sketch
One hybrid per world replaces by a uniformly random function; each pad block is then a fresh one-time pad unless the counter windows of two encryptions overlap, a birthday event over of probability for encryptions.
Notes
- Efficiency: an -block message costs PRF calls to encrypt or decrypt, and the ciphertext is one block, the nonce , longer than the message — standard.
- For one-block messages the scheme is . Shifting the nonce gives the form , whose ciphertexts are the images of these under the key-independent bijection ; applying the bijection or its inverse to ciphertexts turns a CPA or CCA adversary against either scheme into one against the other with the same advantage — standard.
- The scheme is not CCA-secure: XORing into the second component of a ciphertext of gives a ciphertext of (No fixed-construction reduction from length-preserving PRF to CCA-secure SKE (randomized CTR)); in general, CPA security does not imply CCA security (No fixed-construction reduction from CPA-secure SKE to CCA-secure SKE) — folklore.