Two Feistel rounds are not a PRP
ProvedLubyRackoff.two_round_attackcryptographyfeistelpseudorandom-permutation
If , some distinguisher making at most forward queries satisfies
Preamble
import Definitions.Def_LubyRackoff
Formal statement
namespace LubyRackoff
/-- Two rounds do not suffice: some 2-query distinguisher tells the 2-round Feistel
network from a uniform permutation with advantage at least `1 - 2/N`. -/
theorem two_round_attack {G : Type} [AddCommGroup G] [Fintype G] [DecidableEq G]
[Nontrivial G] :
∃ D : Dist (G × G) (G × G), D.QueryBounded 2 ∧
1 - 2 / (Fintype.card G : ℝ) ≤ prpAdv 2 D := by
sorry
end LubyRackoff
Source
Luby–Rackoff, SIAM J. Comput. 17(2) 1988, https://doi.org/10.1137/0217022