Computational universal hashing from CBC-MAC #
This proves the CBC-MAC case of [BS23], v0.6, Corollary 7.5 (printed p. 260).
The collision game includes the empty word. The prefix-free wrapper appends one block before
querying the CBC oracle, so its queries are in the nonempty CBC domain. Composing the batch
wrapper with the CBC-to-PRF reduction gives an explicit distinguisher and a birthday bound.
The single-pair bound applies it to a two-message batch. The cascade case is in
CslibFrontier/Crypto/Primitives/UHF/Cascade.lean.
Main definitions #
Cslib.Crypto.UHF.cbcMacMultiQueryReduction: the composed base-PRF distinguisher.
Main results #
Cslib.Crypto.PseudorandomFunction.isMultiQueryUHF_cbcMac: asymptotic multi-query UHF security.Cslib.Crypto.PseudorandomFunction.isComputationalUHF_cbcMac: asymptotic single-pair security.Cslib.Crypto.UHF.isOraclePPT_cbcMacMultiQueryReduction: strict oracle PPT for the composition.Cslib.Crypto.UHF.succProbability_multiQueryGame_cbcMac_le: the concrete CBC comparison, using the library's Theorem 6.3 error term and the exact pair count from Theorem 7.4.Cslib.Crypto.UHF.succProbability_collisionGame_cbcMac_le: the two-message specialization.
The composed CBC-MAC distinguisher is strict oracle PPT whenever the guesser is strict PPT and the block and query caps are polynomial-time computable in unary.
The concrete CBC-MAC bound from [BS23], v0.6, Corollary 7.5 (printed p. 260).
The CBC term is Q² * (ℓ + 1)² / (2 * 2^n) as in (7.10). For the reply collisions,
the bound uses the exact pair count Q.choose 2 from (7.9). At parameter zero the only valid
word is empty. If the block alphabet is too small for fresh-block search at positive width,
the CBC term already bounds the probability by one.
The single-pair CBC-MAC bound from [BS23], v0.6, Corollary 7.5 (printed p. 260).
The collision guess is presented to the multi-query reduction as a batch with Q = 2.
The CBC-MAC case of [BS23], v0.6, Corollary 7.5 (printed p. 260), for batches.
CBC-MAC on zero to ℓ n whole blocks is a multi-query UHF under a length-preserving secure
PRF. The word model uses uniform n-bit keys and a unary polynomial-time block cap.
The CBC-MAC case of [BS23], v0.6, Corollary 7.5 (printed p. 260), for
single-pair adversaries. A secure length-preserving PRF gives a computational UHF on zero to
ℓ n whole blocks, with uniform n-bit keys and a unary polynomial-time block cap.