Three Feistel rounds give a PRP
ProvedLubyRackoff.three_roundcryptographyfeistelpseudorandom-permutation
For every distinguisher making at most forward queries,
where has independent uniform round functions, the ideal oracle is a uniform permutation of , and .
Preamble
import Definitions.Def_LubyRackoff
Formal statement
namespace LubyRackoff
/-- Luby–Rackoff: the 3-round Feistel network with independent uniform round functions
is a pseudorandom permutation. With `N = |G|`, every `q`-query distinguisher has
advantage at most `q(q-1)/N + q(q-1)/(2N²)`. -/
theorem three_round {G : Type} [AddCommGroup G] [Fintype G] [DecidableEq G]
(D : Dist (G × G) (G × G)) (q : ℕ) (hq : D.QueryBounded q) :
prpAdv 3 D ≤ (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