Documentation

CslibFrontier.Crypto.Primitives.UHF.Cascade

Cascade as a multi-query universal hash #

Appending one fresh block to each candidate hash input gives a prefix-free batch and preserves every collision. The cascade reduction then compares that batch against the base PRF. The loss is the query budget times the extended block cap, plus the ideal birthday term.

Main results #

The single-pair cascade case of [BS23], v0.6, Corollary 7.5 (printed p. 260), via Theorem 7.3 (printed pp. 258–259). A secure base PRF maps whole bit blocks to n-bit keys. The hash domain consists of polynomial-time recognizable aligned words up to a unary polynomial-time block cap. Eventual positive block width gives an alphabet with at least two symbols. The certified reduction uses the cascade on the domain extended by one block.

theorem Cslib.Crypto.PseudorandomFunctionOver.isMultiQueryUHF_cascade {width hops : ℕ → ℕ} {valid : ℕ → List Bool → Bool} {family : List Bool → List Bool → List Bool} (hF : PseudorandomFunctionOver width id family) (hIn : Turing.MultiTapeTM.ComputableInPolyTime width Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encUnary) (hHops : Turing.MultiTapeTM.ComputableInPolyTime hops Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encUnary) (hValid : Turing.MultiTapeTM.ComputableInPolyTime (fun (p : ℕ × List Bool) => valid p.1 p.2) (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encBool) (hAligned : ∀ (n : ℕ) (word : List Bool), valid n word = true → width n ∣ word.length) (hBlocks : ∀ (n : ℕ) (word : List Bool), valid n word = true → word.length ≤ hops n * width n) (hAlphabet : Negligible fun (n : ℕ) => (2 ^ width n)⁻¹) :
UHF.IsMultiQueryUHF Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encBits pure (fun (x d : ℕ) => valid d) fun (x d : ℕ) (key : BitString d) => cascadeFamily width family (List.ofFn key)

Multi-query cascade universality via the large-alphabet route to [BS23], v0.6, Corollary 7.5 (printed p. 260). The hash domain contains aligned words of at most hops n blocks. The uniform reduction uses the internally defined PRF domain with one extra block. The reciprocal of the block alphabet size is negligible, so the block width is eventually positive. Keys and digests are n bits.

theorem Cslib.Crypto.UHF.succProbability_multiQueryGame_cascade_le_pointwise {width : ℕ → ℕ} {valid : ℕ → List Bool → Bool} {family : List Bool → List Bool → List Bool} (guessBatch : ℕ × ℕ → ProbComp (List (List Bool))) (n ℓ Q : ℕ) (hIn : Turing.MultiTapeTM.ComputableInPolyTime width Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encUnary) (hValid : Turing.MultiTapeTM.ComputableInPolyTime (fun (p : ℕ × List Bool) => valid p.1 p.2) (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encBool) (hLen : ∀ (key block : List Bool), block.length = width key.length → (family key block).length = key.length) (hEval : Turing.MultiTapeTM.ComputableInPolyTime (fun (p : List Bool × List Bool) => family p.1 p.2) (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encBits Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encBits) (hGuess : Probability.IsPPTOn (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encUnary) (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encBits) guessBatch) (hWidth : 0 < width n) (hAligned : ∀ (word : List Bool), valid n word = true → width n ∣ word.length) (hBlocks : ∀ (word : List Bool), valid n word = true → word.length ≤ ℓ * width n) (hAlphabet : ℓ * Q < 2 ^ width n) (hBudget : ∀ guesses ∈ (guessBatch (n, n)).eval.support, guesses.length ≤ Q) :
∃ (reduction : OracleDistinguisher), Probability.IsOraclePPT Turing.MultiTapeTM.encBool reduction ∧ ProbOracleComp.IsQueryBounded (reduction n []) Q ∧ (multiQueryGame pure (fun (x d : ℕ) => valid d) (fun (x d : ℕ) (key : BitString d) => cascadeFamily width family (List.ofFn key)) guessBatch n).succProbability ≤ ↑(Q * (ℓ + 1)) * Game.advantage (prfRealGame width family reduction n).eval (prfIdealGame width id reduction n).eval + ↑(Q.choose 2) / 2 ^ n

The concrete cascade bound of [BS23], v0.6, Corollary 7.5, equation (7.11) (printed p. 260), at a specified security parameter. The hash domain consists of aligned bit words and the reduction gives its oracle one extra block. The block alphabet must have room for a block absent from the batch as in Theorem 7.4. The witness for the one-block PRF game may vary with the security parameter. The birthday term retains the number of unordered pairs, Q.choose 2.