Multi-Query PRF Security via Hybrid Argument #
This file provides the standard q-fold hybrid argument for bounding the advantage of a q-query PRF adversary:
`Adv_q(F) ≤ q · Adv_1(F)`
Overview #
Given a PRF F : K → D → R, the q-query PRF game answers q queries.
The hybrid argument interpolates between real and ideal:
- Hybrid 0: All queries answered by
F(k, ·)(real) - Hybrid i: First i queries answered by random function, rest by
F(k, ·) - Hybrid q: All queries answered by random function (ideal)
Each adjacent pair of hybrids differs by exactly one query, and the
advantage of distinguishing them is bounded by the single-query PRF
advantage. The total advantage is then at most q · ε₁.
Key Theorems #
prf_multi_query_bound—Adv(hyb 0, hyb q) ≤ q · εviaadvantage_hybrid_uniformprf_multi_query_perfect— Zero advantage when each step is perfectly secureprf_multi_query_nested— Nested hybrid:Adv ≤ m · q · ε
References #
- [Bellare & Rogaway, Introduction to Modern Cryptography]
- [Rosulek, The Joy of Cryptography, Claim 6.1]
Abstract PRF Specification #
Single-Query PRF Games #
Single-query real PRF game: sample key, return F(k, x)
Equations
- CatCrypt.Crypto.MultiQueryPRF.prf_query_real F x = do let k ← CatCrypt.Core.SPComp.sample K CatCrypt.Core.SPComp.pure (F.eval k x)
Instances For
Single-query ideal PRF game: return random R
Instances For
Single-query PRF advantage for query x
Equations
Instances For
Multi-Query Hybrid Games #
The q-query hybrid game is parameterized by a natural number i.
We use an **abstract** hybrid sequence indexed by ℕ, where:
- G 0 = all-real game
- G q = all-ideal game
- G i differs from G (i+1) in exactly one query position
The concrete construction of these hybrids depends on the query model.
Here we provide the general-purpose bound that works for any such sequence.
Multi-query PRF security bound: the q-query advantage is at most q · ε.
Given a sequence of q hybrid games G where each adjacent pair
differs by at most ε, the total advantage is at most q · ε.
In the PRF setting:
G 0= real game (all queries answered by PRF)G q= ideal game (all queries answered randomly)- Each
G i → G (i+1)changes one query from real to random
Multi-query PRF with dependent step bounds: different queries may have different single-query advantages.
Perfect multi-query PRF: when all steps are perfectly indistinguishable, the multi-query advantage is 0.
Nested multi-query bound: for a two-level hybrid argument (e.g., multi-instance × multi-query), the total advantage is m · q · ε.