The birthday bound for three rounds is tight
ProvedLubyRackoff.birthday_attackcryptographyfeistelpseudorandom-permutation
If and , some distinguisher making at most forward queries satisfies
Preamble
import Definitions.Def_LubyRackoff
Formal statement
namespace LubyRackoff
/-- The `q²/N` bound for three rounds is tight up to a constant: if `N ≥ 8` and
`q(q-1) ≤ N`, some `q`-query distinguisher has advantage at least `q(q-1)/(4N)`. -/
theorem birthday_attack {G : Type} [AddCommGroup G] [Fintype G] [DecidableEq G] (q : ℕ)
(hN : 8 ≤ Fintype.card G) (hq : q * (q - 1) ≤ Fintype.card G) :
∃ D : Dist (G × G) (G × G), D.QueryBounded q ∧
(q : ℝ) * (q - 1) / (4 * Fintype.card G) ≤ prpAdv 3 D := by
sorry
end LubyRackoff
Source
Luby–Rackoff, SIAM J. Comput. 17(2) 1988, https://doi.org/10.1137/0217022