One feedback attack witnesses corruption and hash-key entropy leakage
OpenQAlgorithms.Papers.Independent.Intake100.P41.recycling_leakage_attackLet be finite and nonempty, let contain at least two messages, let , and suppose is -AXU. Choose the hash key uniformly once and use an independent perfect uniform pad for every authentication round. Suppose . Eve chooses the honest messages, intercepts each valid tagged message, substitutes a pair, and learns its verification result before the next round. There is one attack, chosen independently of the secret key and pads, such that
and, for that same attack,
The transcript contains the honest and substituted messages, original and substituted tags, and all acceptance or rejection bits; the attack's fixed public choices are implicit constants. Entropy is Shannon entropy in bits of the retained hash key alone. At the second summand is interpreted as zero. The result shows leakage sufficient for certain forgery at saturation, while the residual key entropy can remain .
Formalization Note Conditional entropy is computed by averaging posterior-key entropy over the finite uniform key-and-pad sample space; no finite-message assumption is needed.
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P41
noncomputable section
open scoped BigOperators
namespace QAlgorithms.Papers.Independent.Intake100.P41
open QAlgorithms.Papers.Independent.Bridge50.P44 (xorWord verifyTag)
attribute [local instance] Classical.propDecidable Classical.decEq
/-- PDF pp.16--17, Theorem 8: one attack witnesses both the n/|T| success lower
bound and the conditional hash-key entropy upper bound. The full public trace
includes both tags and all verification feedback. The endpoint n = |T| is kept;
its residual entropy is log2(|K|/|T|), not necessarily zero. -/
theorem recycling_leakage_attack {K X : Type*} [Fintype K] [Nonempty K]
[Nontrivial X] {m n : ℕ} (hn : 1 ≤ n) (hnmax : n ≤ Fintype.card (Tag m))
(h : K → X → Tag m) (hh : IsAXU2 h (1 / (Fintype.card (Tag m) : ℝ))) :
∃ a : AdaptiveAttack X (Tag m),
(n : ℝ) / (Fintype.card (Tag m) : ℝ) ≤
uniformProbability (fun seed : K × (Fin n → Tag m) =>
corrupts (attackTrace h a seed.1 seed.2)) ∧
conditionalKeyEntropy (fun seed : K × (Fin n → Tag m) =>
attackTrace h a seed.1 seed.2) ≤ leakageBound K m n := by sorry
end QAlgorithms.Papers.Independent.Intake100.P41
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let be any finite nonempty set, let be any type with at least two distinct elements, and let be natural numbers with . Tags are -bit strings, and denotes coordinatewise exclusive-or. Let satisfy, for every pair of distinct messages and every tag , . There exists an adaptive attack consisting of a function choosing a message from the previous transcript and a function choosing a submitted message–tag pair from that transcript and the current honest message–tag pair, with the following properties. Choose uniformly from and independently choose uniform tags . Starting with an empty transcript, in round the attack chooses , receives , submits a pair , and appends , where is true exactly when . Writing for this full -round transcript, the probability that some round has and is at least , and
Here means the uniform average over all seeds of , where is the uniform probability of “key and transcript ” divided by the uniform probability of transcript . Division by zero is defined as zero, and zero-probability entropy terms contribute zero. The quantifiers include , in which case there is one tag and necessarily ; they also include the endpoint .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.