Luby–Rackoff: PRF to PRP and strong PRP (explicit reduction)
ProvedLubyRackoff.main_redcryptographyfeistelpseudorandom-permutation
Let be a keyed function family with finite and nonempty, , and . Write , and let be the hybrid reductions of Def_LubyRackoffReduction.
- For every distinguisher making at most forward queries, each makes at most oracle queries, and
- For every distinguisher making at most forward or inverse queries, each makes at most oracle queries, and
Keys are independent and uniform, the ideal oracle is a uniform permutation of , and averages over the reduction's seed.
This is the classical Luby–Rackoff theorem. A secure PRF gives a secure (strong) PRP through 3 (4) Feistel rounds, with a security loss of the round count plus the birthday term.
Formalization note. The reduction is fixed in the statement. Asserting only that some -query PRF distinguisher exists would be near-vacuous in this unbounded model, because such a may hard-code and reach advantage about .
Preamble
import Definitions.Def_LubyRackoffReduction
Formal statement
namespace LubyRackoff
/-- Luby–Rackoff from a PRF, with an explicit hybrid reduction. For any keyed family
`F : K → G → G` and any `q`-query distinguisher `D`, the hybrid reductions
`prpRed F 3 D i` (resp. `sprpRed F 4 D i`) make at most `q` oracle queries and
* `prpAdvF F 3 D ≤ ∑_{i<3} Adv_PRF(prpRed F 3 D i) + q(q-1)/N + q(q-1)/(2N²)`,
* `sprpAdvF F 4 D ≤ ∑_{i<4} Adv_PRF(sprpRed F 4 D i) + q(q-1)/N + q(q-1)/(2N²)`,
where the PRF advantages average over the reductions' seeds. -/
theorem main_red {G : Type} [AddCommGroup G] [Fintype G] [DecidableEq G]
{K : Type} [Fintype K] [Nonempty K] (F : K → G → G) (q : ℕ) :
(∀ D : Dist (G × G) (G × G), D.QueryBounded q →
(∀ i ω, (prpRed F 3 D i ω).QueryBounded q) ∧
prpAdvF F 3 D ≤ ∑ i : Fin 3, prfAdvR F (prpRed F 3 D i)
+ (q : ℝ) * (q - 1) / Fintype.card G
+ (q : ℝ) * (q - 1) / (2 * (Fintype.card G : ℝ) ^ 2)) ∧
(∀ D : Dist ((G × G) ⊕ (G × G)) (G × G), D.QueryBounded q →
(∀ i ω, (sprpRed F 4 D i ω).QueryBounded q) ∧
sprpAdvF F 4 D ≤ ∑ i : Fin 4, prfAdvR F (sprpRed F 4 D i)
+ (q : ℝ) * (q - 1) / Fintype.card G
+ (q : ℝ) * (q - 1) / (2 * (Fintype.card G : ℝ) ^ 2)) := by
sorry
end LubyRackoff
Source
Luby–Rackoff, SIAM J. Comput. 17(2) 1988, https://doi.org/10.1137/0217022