One-message authentication with arbitrary key recycling
OpenQAlgorithms.Papers.Independent.Intake100.P41.authentication_recyclingLet be a finite nonempty hash-key set, let contain at least two messages, and let , where . Let be -AXU, with . Alice and Bob share a uniform and an independent uniform pad . Alice sends over an insecure channel. Bob processes one submitted pair, accepting exactly when its tag verifies, or rejects at timeout if no pair arrived. He releases upon that verification or timeout; Alice releases it only at timeout. Late submissions are ignored.
Let be this real system and let be the ideal authentic channel with a fresh independent uniform key and the same release schedule. Fix the simulator that generates a uniform tag and permits delivery only of the exact previously sent pair. If denote the resources with their honest forwarding filters, then
Here is unrestricted distinguishing advantage over complete causal interactions at all interfaces. In particular, an impersonation-first environment can read Bob's released key before choosing Alice's message. This construction allows arbitrary subsequent use of the released key with the stated error.
Formalization Note Both distances are expressed through all causal binary tests of explicit execution functions. The simulator is fixed in those functions before the test is chosen.
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.11--13, Theorem 5: honest distance zero and full adversarial
resource distance at most epsilon with the fixed Figure 8 simulator. Nontrivial
X is the proof's implicit convention, including the epsilon >= 1/|T| step. -/
theorem authentication_recycling {K X : Type*} [Fintype K] [Nonempty K]
[Nontrivial X] {m : ℕ} (h : K → X → Tag m) (epsilon : ℝ)
(hepsilon : 0 ≤ epsilon) (hh : IsAXU2 h epsilon) :
PaddedConstructionSecure (n := 1) h true epsilon := 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 finite and nonempty, let contain at least two distinct elements, let , and let and satisfy the condition that, for every distinct and every , at most an fraction of keys obey . The following two statements hold for the real and ideal one-message machines described here. Choose a key and pad uniformly and independently. Both machines start with an empty sent list, zero received submissions, no first submitted pair, and a false closed flag. While open, a send request appends and outputs a pair only if no pair has yet been sent: the real pair is , whereas the ideal pair is . A first submission , even before any send, consumes the submission allowance, records that pair, and outputs one delivery: if accepted and failure otherwise. Real acceptance means ; ideal acceptance means the submitted pair is exactly the stored sent pair. This first submission also releases to Bob, regardless of acceptance. A timeout closes the machine, sets the received count to one, emits one failure delivery if no submission has occurred and none otherwise, always releases to Alice, and releases it to Bob exactly when no submission has occurred. After closure every request is silent; exceeded send or submission allowances are also silent. A silent output contains no tag, no deliveries, and no released keys. For every inductively generated terminating Boolean test that issues sends or timeouts, with each send automatically followed by submission of its emitted pair and with the tag hidden from the test, the uniform average of the test’s final Boolean is identical for the real and ideal machines. For every such test allowed to issue arbitrary sends, submissions, and timeouts, branching on the entire output, the absolute difference between its real and ideal uniform averages is at most . Tests evaluate to one or zero according to their final Boolean, and the same sampled seed is used throughout an execution. No upper bound on is imposed, and is included.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.