Feistel networks and the Luby–Rackoff theorem #
A Feistel round ([BS23], Section 4.5; [LR88]) turns an arbitrary function
f : G → G on an additive group G into a bijection feistelRoundEquiv f : G × G ≃ G × G mapping
(L, R) to (R, L + f R) with explicit inverse (L', R') ↦ (R' - f L', L') requiring no
invertibility of f. Composing a list of round functions yields the multi-round Feistel cipher
feistelNetwork, specialized to the three-round (feistel3) and four-round (feistel4) networks.
Over any group of exponent two (∀ x : G, -x = x, including BitString n), swapping the two
halves (Equiv.prodComm G G) conjugates feistelNetwork fs.reverse to the inverse cipher
(feistelNetwork fs).symm.
We prove the Luby–Rackoff theorem ([BS23], Section 4.5, Theorem 4.9; [LR88]):
- Information-theoretic core with Δ-universal Round 1: when the first round function is drawn
from an
ε-almost-Δ-universal family (IsDeltaUniversalHash seed₁ h₁ ε) and the second and third round functions are independent uniform random functions onG, any adaptive adversaryprogram : OracleComp (fun _ : G × G => G × G) Boolmaking at mostQqueries (IsQueryBounded program Q) distinguishes the three-round Feistel network from a uniform random function onG × Gwith advantage at most $$\binom{Q}{2} \cdot \varepsilon + \binom{Q}{2} \cdot \frac{1}{|G|}$$ (advantage_feistel3HashIdealGame_randomFunctionGame_le). - Classical three-round information-theoretic bound: a uniform random function on
Gis|G|⁻¹-Δ-universal (isDeltaUniversalHash_uniformOfFintype), so three independent uniform random round functions have distinguishing advantage against a uniform random function onG × Gat most $$\frac{2 \binom{Q}{2}}{|G|} = \frac{Q (Q - 1)}{|G|}$$ (advantage_feistel3RandomRoundsGame_randomFunctionGame_le). - PRP switching and the keyed three-round cipher: the PRP/PRF switching bound on
G × G(advantage_idealPermGame_randomFunctionGame_le) yields the pseudorandom-permutation bounds againstidealPermGame(advantage_feistel3HashIdealGame_idealPermGame_le,advantage_feistel3RandomRoundsGame_idealPermGame_le). For the cipherfeistel3Cipher Fwith three independent uniform keys of a finite round functionF : K → G → G, and anyQ-query adversaryAwith private coins in the finite PRF/PRP experiments ofCslib.Crypto.PRFandCslib.Crypto.PRP, $$\mathrm{PRPadv}[A] \le \sum_{j < 3} \mathrm{PRFadv}[B_j] + \frac{2 \binom{Q}{2}}{|G|} + \frac{\binom{Q}{2}}{|G|^2}$$ (prpAdvantage_feistel3Cipher_le, andprfAdvantage_feistel3Cipher_leagainst a random function). HereB_j = feistel3Reduction F j Ais one explicit randomized PRF adversary: thej-th hybrid reduction of the multi-key PRF hybrid (PRF.multiKeyReduction) applied to the stateless adapterfeistel3MultiKeyAdversary A. It samples its own keys for the rounds after roundj + 1, forwards roundj + 1to its PRF challenger, and lazily samples the rounds before it with a cache. This is the hybrid argument of [BS23], Exercise 4.26, which the proof of Theorem 4.9 uses for the three round keys. It makes at most3 * Qqueries (isQueryBounded_feistel3Reduction). Fixing the private coins ofAtransfers the random-round bounds to randomized adversaries (advantage_feistel3RandomRounds_prfIdealExperiment_le,advantage_feistel3RandomRounds_prpIdealExperiment_le). - Three-round chosen-ciphertext separation ([BS23], Section 4.1.3 and
Exercise 4.15(b)): with two forward
encryption queries and one inverse decryption query, the explicit distinguisher
feistel3CCAAttackaccepts any three-round Feistel network with probability1(eval_feistel3_feistel3CCAAttack). Whenl₀ = l₁, the third query asks to invert the first ciphertext, so every bidirectional permutation (feistelStrongOracle π) andidealStrongGamealso accept with probability1(eval_feistelStrongOracle_feistel3CCAAttack_self,idealStrongGame_feistel3CCAAttack_self,advantage_feistel3CCAAttack_self). Wheneverl₀ ≠ l₁, couplingidealStrongGamewith the forgetful bidirectional lazy sampler shows thatidealStrongGameacceptsfeistel3CCAAttack l₀ l₁ r₀with probability at most|G|⁻¹ + 4 * |G × G|⁻¹(idealStrongGame_feistel3CCAAttack_true_le), giving the quantitative nonnegligible chosen-ciphertext advantage lower bound1 - |G|⁻¹ - 4 * |G|⁻¹ ^ 2againstidealStrongGame(le_advantage_feistel3CCAAttack_idealStrongGame_of_ne). In addition, whenGhas three distinct elementsl₀, l₁, l₂(|G| ≥ 3), the transpositionEquiv.swap (l₀, (l₁ - l₀) + r₀) (l₂, r₀)is rejected deterministically (eval_feistelStrongOracle_swap_feistel3CCAAttack_eq_false,le_advantage_feistel3CCAAttack_idealStrongGame,advantage_feistel3CCAAttack_idealStrongGame_pos), and against the independent-table bidirectional benchmarkindependentTableStrongGame,feistel3CCAAttack l₀ l₁ r₀accepts with probability|G|⁻¹and has exact advantage1 - |G|⁻¹(eval_independentTableStrongGame_feistel3CCAAttack,advantage_feistel3CCAAttack_independentTable). - Four-round strong PRP Luby–Rackoff theorem ([LR88]; see [BS23],
Section 4.1.3 for strongly secure block ciphers): when all four round functions
f₁, f₂, f₃, f₄ : G → Gare independent uniform random functions, coupling the inner roundsf₂, f₃to the forgetful bidirectional lazy sampler onG × Gand bounding outer-round collisions forf₁(Round 1) and-f₄(Round 4 on the swapped cache) shows that anyQ-query adaptive chosen-ciphertext distinguisher has advantage againstidealStrongGameat most $$2 \binom{Q}{2} \cdot \frac{1}{|G|} + 2 \binom{Q}{2} \cdot \frac{1}{|G|^2}$$ (with the concrete constant coming from this proof;feistel4StrongRandomRoundsGame_apply_le,idealStrongGame_apply_le_feistel4StrongRandomRoundsGame,advantage_feistel4StrongRandomRoundsGame_idealStrongGame_le,advantage_feistel4StrongRandomRoundsGame_bitString_le). For the cipherfeistel4Cipher Fwith four independent uniform keys and anyQ-query chosen-ciphertext adversaryAwith private coins, the strong PRP advantage is at most the sum of the PRF advantages of the four explicit hybrid reductionsfeistel4StrongReduction F j Aplus this bound (strongAdvantage_feistel4Cipher_le). The bidirectional adapterfeistel4StrongMultiKeyAdversaryevaluates inverse queries with the round functions forwards, so each reduction again needs only forward PRF access.
Main definitions #
Cslib.Crypto.LubyRackoff.feistelRound,feistelInvRound,feistelRoundEquiv: single Feistel round and its bundled equivalence over[AddGroup G].Cslib.Crypto.LubyRackoff.feistelNetwork,feistel3,feistel4: multi-round, 3-round, and 4-round Feistel permutations.Cslib.Crypto.LubyRackoff.feistel3FixedGame,feistel3HashIdealGame,feistel3RandomRoundsGame,randomFunctionGame,idealPermGame: 3-round Feistel, ideal random-function, and ideal random-permutation games for coin-free programs.Cslib.Crypto.LubyRackoff.feistelStrongOracle,idealStrongGame,independentTableStrongGame,feistel4StrongRandomRoundsGame,feistel3CCAAttack: bidirectional (forward + inverse) oracle games and the 3-query CCA attack on 3-round Feistel.Cslib.Crypto.LubyRackoff.feistel3Cipher,feistel3ChannelQuery,feistel3MultiKeyAdversary,feistel3Reduction: the keyed three-round cipher, its three-channel adapter, and its hybrid PRF reductions.Cslib.Crypto.LubyRackoff.feistel4Cipher,feistel4StrongChannelQuery,feistel4StrongMultiKeyAdversary,feistel4StrongReduction: the keyed four-round cipher, its bidirectional four-channel adapter, and its hybrid PRF reductions.
Main results #
Cslib.Crypto.LubyRackoff.prodComm_trans_feistelNetwork_reverse_trans_prodComm: swap-reversal conjugation identity for Feistel decryption over groups of exponent two.Cslib.Probability.isDeltaUniversalHash_uniformOfFintype,Cslib.Probability.isDeltaUniversalHash_neg_uniformOfFintype: a uniform random function intoGand its negation are|G|⁻¹-Δ-universal.Cslib.Crypto.LubyRackoff.feistel3HashIdealGame_apply_le,Cslib.Crypto.LubyRackoff.randomFunctionGame_apply_le_feistel3HashIdealGame: two-sided probability comparisons for 3-round Luby–Rackoff with Δ-universal Round 1.Cslib.Crypto.LubyRackoff.advantage_feistel3HashIdealGame_randomFunctionGame_le,Cslib.Crypto.LubyRackoff.advantage_feistel3HashIdealGame_idealPermGame_le: 3-round Luby–Rackoff bounds with Δ-universal Round 1 againstrandomFunctionGameandidealPermGame.Cslib.Crypto.LubyRackoff.advantage_feistel3RandomRoundsGame_randomFunctionGame_le,Cslib.Crypto.LubyRackoff.advantage_feistel3RandomRoundsGame_idealPermGame_le: 3-round Luby–Rackoff bounds with three uniform random round functions.Cslib.Crypto.LubyRackoff.prfAdvantage_feistel3Cipher_le,Cslib.Crypto.LubyRackoff.prpAdvantage_feistel3Cipher_le: Boneh–Shoup Theorem 4.9 for the keyed three-round cipher, with the PRF advantages of explicit hybrid reductions.Cslib.Crypto.LubyRackoff.isQueryBounded_feistel3Reduction,Cslib.Crypto.LubyRackoff.isQueryBounded_feistel4StrongReduction: the reductions make at most three (four) queries per query of the adversary.Cslib.Crypto.LubyRackoff.advantage_feistel3RandomRounds_prfIdealExperiment_le,Cslib.Crypto.LubyRackoff.advantage_feistel3RandomRounds_prpIdealExperiment_le,Cslib.Crypto.LubyRackoff.advantage_feistel4StrongRandomRounds_strongIdealExperiment_le: the random-round bounds for adversaries with private coins.Cslib.Crypto.LubyRackoff.feistel4StrongRandomRoundsGame_apply_le,Cslib.Crypto.LubyRackoff.idealStrongGame_apply_le_feistel4StrongRandomRoundsGame,Cslib.Crypto.LubyRackoff.advantage_feistel4StrongRandomRoundsGame_idealStrongGame_le,Cslib.Crypto.LubyRackoff.advantage_feistel4StrongRandomRoundsGame_bitString_le: information-theoretic 4-round random-round collision bound.Cslib.Crypto.LubyRackoff.strongAdvantage_feistel4Cipher_le: the 4-round strong Luby–Rackoff theorem for the keyed cipher, with the PRF advantages of explicit hybrid reductions.Cslib.Crypto.LubyRackoff.eval_feistel3_feistel3CCAAttack,Cslib.Crypto.LubyRackoff.advantage_feistel3CCAAttack_self,Cslib.Crypto.LubyRackoff.idealStrongGame_feistel3CCAAttack_true_le,Cslib.Crypto.LubyRackoff.le_advantage_feistel3CCAAttack_idealStrongGame_of_ne,Cslib.Crypto.LubyRackoff.le_advantage_feistel3CCAAttack_idealStrongGame,Cslib.Crypto.LubyRackoff.advantage_feistel3CCAAttack_independentTable: the 3-query CCA distinguisher against 3-round Feistel.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Sections 4.1.3 and 4.5 (Theorem 4.9 and Exercise 4.15(b)), and Exercise 4.26 (parallel composition of PRFs).
- M. Luby, C. Rackoff, How to Construct Pseudorandom Permutations from Pseudorandom Functions.
Algebraic Feistel permutations #
Over any group of exponent two (∀ x : G, -x = x), swapping the two halves conjugates one
Feistel round to its inverse.
Over any group of exponent two (∀ x : G, -x = x), Feistel decryption is Feistel encryption
with the round functions in reverse order, conjugated by swapping the two halves.
Shared two-round coupling and collision infrastructure #
The 3-round Luby–Rackoff theorem #
The 3-round Feistel game with a fixed first round function f₁ and independent uniform random
second and third round functions f₂, f₃ : G → G.
The 3-round Feistel game where the first round function is drawn from a keyed hash family
(seed₁, h₁) and the second and third round functions are independent uniform random functions.
The 3-round Feistel game with three independent uniform random round functions
f₁, f₂, f₃ : G → G.
The ideal random-function game on G × G: sample a uniform table (G × G) → (G × G) and
answer every query from it.
The ideal random-permutation game on G × G: sample a uniform permutation
π ← PMF.uniformOfFintype (Equiv.Perm (G × G)) and answer every query via π p.
3-round Luby–Rackoff theorem in ℝ≥0∞ (with Δ-universal Round 1): for any adaptive
program making at most Q queries, feistel3HashIdealGame accepts with probability at most
randomFunctionGame plus Q.choose 2 * ε + Q.choose 2 * |G|⁻¹.
Reverse inequality for the 3-round Luby–Rackoff bound with Δ-universal Round 1:
randomFunctionGame accept probability is bounded by feistel3HashIdealGame plus the collision
term.
3-round Luby–Rackoff theorem with Δ-universal Round 1 ([BS23], Section 4.5.1;
[LR88]): when Round 1 is drawn from an ε-almost-Δ-universal hash family and Rounds 2
and 3 are independent uniform random functions on G, any Q-query adaptive adversary has
distinguishing advantage against a uniform random function on G × G at most
Q.choose 2 * ε.toReal + Q.choose 2 / |G|.
Classical 3-round Luby–Rackoff theorem ([BS23], Section 4.5, Theorem 4.9;
[LR88]):
three Feistel rounds with independent uniform random round functions on G are indistinguishable
from a uniform random function on G × G up to 2 * Q.choose 2 / |G| = Q * (Q - 1) / |G| for any
Q-query adaptive adversary.
PRP/PRF switching bound on G × G: for any Q-query adaptive adversary, idealPermGame
and randomFunctionGame have distinguishing advantage at most Q.choose 2 / |G| ^ 2.
3-round Luby–Rackoff PRP bound with Δ-universal Round 1: against a uniform random
permutation on G × G (idealPermGame), the distinguishing advantage of a Q-query adversary is
at most Q.choose 2 * ε.toReal + Q.choose 2 / |G| + Q.choose 2 / |G| ^ 2.
Classical 3-round Luby–Rackoff PRP bound: three Feistel rounds with independent uniform
random round functions on G are indistinguishable from a uniform random permutation on G × G
(idealPermGame) up to 2 * Q.choose 2 / |G| + Q.choose 2 / |G| ^ 2.
Concrete instantiation of the 3-round Luby–Rackoff theorem on BitString n (block size 2n):
the information-theoretic collision error is at most 2 * Q.choose 2 / 2 ^ n.
Chosen-ciphertext separation for 3 rounds and the 4-round random-rounds game #
Ideal bidirectional random-permutation game on G × G: sample a uniform permutation
π ← PMF.uniformOfFintype (Equiv.Perm (G × G)) and answer forward and inverse queries via
feistelStrongOracle π.
Bidirectional independent-table game on Bool × (G × G) → G × G, where forward and inverse
queries are answered by two independent uniform random functions.
The 3-query chosen-ciphertext distinguisher against 3-round Feistel ([BS23], Exercise 4.15(b)):
- Query encryption at
(l₀, r₀)to obtain(v₀, w₀). - Query encryption at
(l₁, r₀)to obtain(v₁, w₁). - Query decryption at
(v₀, (l₁ - l₀) + w₀)to obtain(l₂, r₂). - Accept iff
-v₀ + r₂ = -v₁ + r₀.
feistel3CCAAttack makes at most 3 oracle queries.
Every 3-round Feistel network feistel3 f₁ f₂ f₃ is accepted with probability 1 by
feistel3CCAAttack ([BS23], Exercise 4.15(b)), for any round functions f₁, f₂, f₃
and any l₀, l₁, r₀ : G.
When l₀ = l₁, the third query of feistel3CCAAttack l₀ l₀ r₀ asks to invert the first
ciphertext, so every bidirectional permutation π : G × G ≃ G × G is accepted with probability
1.
At l₀ = l₁, the permutation-ideal game idealStrongGame accepts feistel3CCAAttack l₀ l₀ r₀
with probability 1.
At l₀ = l₁, feistel3CCAAttack l₀ l₀ r₀ has zero advantage between any 3-round Feistel
network and the true bidirectional random-permutation game idealStrongGame.
When l₀, l₁, l₂ : G are pairwise distinct (|G| ≥ 3), the transposition
Equiv.swap (l₀, (l₁ - l₀) + r₀) (l₂, r₀) fixes (l₀, r₀) and (l₁, r₀) while mapping
(l₀, (l₁ - l₀) + r₀) to (l₂, r₀), so feistel3CCAAttack l₀ l₁ r₀ rejects it with probability
1.
When l₀, l₁, l₂ : G are pairwise distinct, idealStrongGame (feistel3CCAAttack l₀ l₁ r₀)
rejects (false) with probability at least |Equiv.Perm (G × G)|⁻¹.
When l₀, l₁, l₂ : G are pairwise distinct (|G| ≥ 3), feistel3CCAAttack l₀ l₁ r₀
distinguishes any 3-round Feistel network from the true bidirectional random-permutation game
idealStrongGame with advantage at least |Equiv.Perm (G × G)|⁻¹.
When l₀, l₁, l₂ : G are pairwise distinct (|G| ≥ 3), feistel3CCAAttack l₀ l₁ r₀ has
strictly positive distinguishing advantage against the true bidirectional random-permutation game
idealStrongGame.
Against the independent-table game independentTableStrongGame, feistel3CCAAttack l₀ l₁ r₀
accepts with probability |G|⁻¹.
The 3-query CCA attack feistel3CCAAttack distinguishes any 3-round Feistel network from
the independent-table game independentTableStrongGame with exact advantage 1 - |G|⁻¹.
When l₀ ≠ l₁, the true bidirectional random-permutation game idealStrongGame accepts
feistel3CCAAttack l₀ l₁ r₀ with probability at most |G|⁻¹ + 4 * |G × G|⁻¹.
Quantitative nonnegligible CCA advantage lower bound against idealStrongGame
([BS23], Section 4.1.3 and Exercise 4.15(b)): whenever l₀ ≠ l₁, the 3-query
chosen-ciphertext distinguisher feistel3CCAAttack l₀ l₁ r₀ distinguishes any 3-round Feistel
network feistel3 f₁ f₂ f₃ from a uniform random permutation on G × G (idealStrongGame) with
advantage at least 1 - |G|⁻¹ - 4 * |G|⁻¹ ^ 2.
4-round Feistel strong (bidirectional) game with four independent uniform random round
functions f₁, f₂, f₃, f₄ : G → G.
4-round bidirectional random-round collision analysis and strong PRP Luby–Rackoff theorem #
4-round strong Luby–Rackoff theorem in ℝ≥0∞ (one-sided): for any adaptive
bidirectional program making at most Q forward or inverse queries,
feistel4StrongRandomRoundsGame accepts with probability at most idealStrongGame plus
2 * Q.choose 2 * |G|⁻¹ + 2 * Q.choose 2 * |G × G|⁻¹.
Reverse 4-round strong Luby–Rackoff inequality in ℝ≥0∞: for any adaptive bidirectional
program making at most Q forward or inverse queries, idealStrongGame accepts with probability
at most feistel4StrongRandomRoundsGame plus
2 * Q.choose 2 * |G|⁻¹ + 2 * Q.choose 2 * |G × G|⁻¹.
4-round strong Luby–Rackoff theorem with random round functions ([LR88]; see
[BS23], Section 4.1.3 for strongly secure block ciphers; the concrete constant comes
from this proof): when all four round functions f₁, f₂, f₃, f₄ : G → G are
independent uniform random functions, any Q-query adaptive chosen-ciphertext distinguisher has
distinguishing advantage against a uniform random permutation on G × G (idealStrongGame) at
most 2 * Q.choose 2 * |G|⁻¹ + 2 * Q.choose 2 * (|G|⁻¹) ^ 2.
Concrete instantiation of the 4-round strong Luby–Rackoff theorem on BitString n
(block size 2n): the information-theoretic chosen-ciphertext collision error is at most
2 * Q.choose 2 / 2 ^ n + 2 * Q.choose 2 / (2 ^ n) ^ 2.
Keyed ciphers from a pseudorandom function #
The keyed ciphers use the finite PRF and PRP experiments of Cslib.Crypto.PRF and
Cslib.Crypto.PRP, whose adversaries have private coins. An adapter answers each block query of
the cipher by querying three (or four) PRF channels, one per round, and keeps no state. The
j-th hybrid reduction PRF.multiKeyReduction F j of the multi-key PRF hybrid then turns the
adapter into a single PRF adversary: it samples its own keys for the later rounds, forwards
round j + 1 to its PRF challenger, and lazily samples the earlier rounds with a cache. This is
the hybrid argument of [BS23], Exercise 4.26, which the proof of Theorem 4.9 uses for
the three round keys.
The three-round Luby–Rackoff cipher with three independent keys of a round function
F : K → G → G, one per round.
Answer one block query (l, r) of the three-round cipher through three PRF channels, channel
i providing round i + 1.
Run a chosen-plaintext adversary of the three-round cipher against three PRF channels,
answering each block query with feistel3ChannelQuery.
The adapter makes three channel queries per block query.
The j-th hybrid PRF reduction for the three-round cipher: the multi-key reduction of the
adapter. It samples keys for rounds after j + 1, forwards round j + 1 to its PRF challenger
and lazily samples the rounds before it.
Each hybrid reduction makes at most three queries per query of the adversary.
The adapter's channel queries compute the three-round network.
With keyed channels, the adapter plays the real chosen-plaintext experiment of the three-round cipher.
With random channels, the adapter runs the adversary against the three-round Feistel network of three independent uniform random functions.
Three random rounds against a random function, for adversaries with private coins
([BS23], proof of Theorem 4.9): with independent uniform random round functions, a
Q-query adversary distinguishes the three-round Feistel network from a uniform function on
G × G with advantage at most 2 * Q.choose 2 / |G|.
Three random rounds against a random permutation, for adversaries with private coins
([BS23], proof of Theorem 4.9): with independent uniform random round functions, a
Q-query adversary distinguishes the three-round Feistel network from a uniform permutation of
G × G with advantage at most 2 * Q.choose 2 / |G| + Q.choose 2 / |G| ^ 2.
The Luby–Rackoff theorem, concrete PRF form ([BS23], Theorem 4.9;
[LR88]): against a Q-query adaptive chosen-plaintext adversary A with private
coins, the PRF advantage of the three-round cipher built from three independent uniform keys of
F is at most the PRF advantages of the three explicit hybrid reductions
feistel3Reduction F j A plus 2 * Q.choose 2 / |G|. This is a concrete bound for one finite
instance in the standard model; running time is not modeled. The asymptotic theorem for
oracle-PPT adversaries is Cslib.Crypto.PseudorandomFunction.prp_lubyRackoffCipher.
The Luby–Rackoff theorem, concrete form ([BS23], Theorem 4.9; [LR88]):
against a Q-query adaptive chosen-plaintext adversary A with private coins, the PRP advantage
of the three-round cipher built from three independent uniform keys of F is at most the PRF
advantages of the three explicit hybrid reductions feistel3Reduction F j A plus
2 * Q.choose 2 / |G| + Q.choose 2 / |G| ^ 2. Each reduction makes at most 3 * Q queries
(isQueryBounded_feistel3Reduction). The PRF part deviates from Theorem 4.9, which has 3
times the advantage of one reduction that picks the hybrid at random: by the triangle inequality
the sum of the three hybrid advantages is at least that quantity, so this bound follows from the
book's form and may be weaker.
This is a concrete bound for one finite instance in the standard model; running time is not
modeled. The asymptotic theorem for oracle-PPT adversaries is
Cslib.Crypto.PseudorandomFunction.prp_lubyRackoffCipher.
The four-round Luby–Rackoff cipher with four independent keys of a round function
F : K → G → G, one per round.
Answer one forward or inverse block query of the four-round cipher through four PRF channels,
channel i providing round i + 1. Inversion evaluates the round functions forwards, in reverse
order.
Run a chosen-ciphertext adversary of the four-round cipher against four PRF channels,
answering each forward or inverse block query with feistel4StrongChannelQuery.
The adapter makes four channel queries per block query.
The j-th hybrid PRF reduction for the four-round cipher: the multi-key reduction of the
bidirectional adapter.
Each hybrid reduction makes at most four queries per query of the adversary.
The adapter's channel queries compute the four-round network in both directions.
With keyed channels, the adapter plays the real chosen-ciphertext experiment of the four-round cipher.
With random channels, the adapter runs the adversary against the four-round Feistel network of four independent uniform random functions, in both directions.
Four random rounds against a random permutation, in both directions, for adversaries with
private coins ([LR88]): with independent uniform random round functions, a Q-query
chosen-ciphertext adversary distinguishes the four-round Feistel network from a uniform
permutation of G × G with advantage at most 2 * Q.choose 2 / |G| + 2 * Q.choose 2 / |G| ^ 2.
The constant comes from this proof.
Four-round strong Luby–Rackoff theorem, concrete form ([LR88]; strongly secure
block ciphers as in [BS23], Section 4.1.3): against a Q-query adaptive
chosen-ciphertext adversary A with private coins, the strong PRP advantage of the four-round
cipher built from four independent uniform keys of F is at most the PRF advantages of the four
explicit hybrid reductions feistel4StrongReduction F j A plus
2 * Q.choose 2 / |G| + 2 * Q.choose 2 / |G| ^ 2. Each reduction makes at most 4 * Q queries
(isQueryBounded_feistel4StrongReduction). The constant comes from this proof. This is a
concrete bound for one finite instance in the standard model; running time is not modeled. The
asymptotic theorem for oracle-PPT adversaries is
Cslib.Crypto.PseudorandomFunction.strongPRP_lubyRackoff4Cipher.