Authenticated key exchange: challenger and attack experiments #
Communication log, partner functions, challenger state, effective session keys, and the unified
query handler challenger for Experiments 0 and 1 ([BS23], §21.9, pp. 886–888).
Model conventions and differences from [BS23] #
- (a) Strict PPT word algorithms (
IsPPTOn/IsOraclePPT/ComputableInPolyTime), with the size bound ofProtocolstanding in for the book's efficient TTP interface and poly-bounded instance configurations (compared in the module definingProtocol). - (b) Joint honest registration (
registerHonestruns in one step, unlogged). - (c) Stepwise corrupt registration (one TTP step and
.corruptUserlog entry per query). - (d) Refused disallowed queries return
[]with unchanged state. Besides the book's disallowed queries, the challenger refuses a query that would hand a protocol algorithm a user identity or message longer thanP.sizeBound n(Protocol.TooLong). Refusal and visible view depend only on(honestIds, corruptIds, phases)and the lengths of the request's words (challenger_of_refused,view_of_mem_support; game-level equivalence is unproved). - (e) Index-named instances (
(unframe req).length);.initomitsuser. - (f)
PartnerFunctionreceives security parametern. - (g) Log-then-classify order:
.deliverlogs beforeidl.partnerruns. - (h) Explicit
erroroutcome (none : Option (List Bool), distinct from every key). - (i) Word-oracle adversaries (
IsOraclePPT) andℝ≥0advantage (Game.advantage). - (j) No correctness clause (
abortProtocolis statically secure). - (k) Fresh finishing replies match Experiment 0 (checked for one query in
eval_challenger_deliver_fresh_reply; whole-game fresh test unproved). - (l) Non-degenerate key length in negative test (
1 ≤ n; atn = 0,𝒦is a singleton).
Challenger.hasConnection counts any .connected peer classification; hasKeyedConnection_eq
shows agreement with requiring a key except after error (game equivalence unproved).
Idealization.exposed hooks PFS and HSM extensions without changing challenger.
Main definitions and results #
LogEntry,encLog,Classification,PartnerFunction,Challenger,Instance.compatible,Idealization,DeliverReply,Op,effectiveKey,challenger.encDeliverReply_someandchallenger_*query equations.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, §21.9, pp. 886–888.
Entry recorded in the AKE communication log ([BS23], §21.9, p. 887).
- corruptUser (user : List Bool) : LogEntry
Corrupt user identity registered with the TTP.
- init (inst : ℕ) (role : Role) : LogEntry
- deliver (inst : ℕ) (msgIn msgOut : List Bool) (phase : Phase) : LogEntry
Accepted
.deliverstep on instanceinst; omits partner ID and session key. - deliverTTP (msgIn msgOut : List Bool) : LogEntry
Accepted
.deliverTTPmessage pair.
Instances For
Extract the constructor payload or field; return none otherwise.
A payload exists precisely when this constructor matches.
The complete payload determines exactly this constructor value.
The matcher recognizes precisely the range of this constructor.
The matcher recognizes precisely the range of this constructor.
Extract the constructor payload or field; return none otherwise.
A payload exists precisely when this constructor matches.
Extract the constructor payload or field; return none otherwise.
The complete payload determines exactly this constructor value.
Test whether the value has this constructor.
Test whether the value has this constructor.
A payload exists precisely when this constructor matches.
Test whether the value has this constructor.
The matcher recognizes precisely the range of this constructor.
Test whether the value has this constructor.
Extract the constructor payload or field; return none otherwise.
Classification returned by a partner function ([BS23], §21.9, pp. 887–888).
- vulnerable : Classification
Return
I.skwhenI.pidis corrupt (or exposed), elseerror(none). - fresh : Classification
Draw a uniform key from
𝒦whenI.pidis registered, elseerror. - connected (peer : ℕ) : Classification
Copy
J.effectiveKeywhenpeer(J) is compatible, fresh, and unconnected.
Instances For
The matcher recognizes precisely the range of this constructor.
The matcher recognizes precisely the range of this constructor.
Extract the constructor payload or field; return none otherwise.
Extract the constructor payload or field; return none otherwise.
The complete payload determines exactly this constructor value.
Test whether the value has this constructor.
The constructor payloads of a value, as a summand.
Extract the constructor payload or field; return none otherwise.
The matcher recognizes precisely the range of this constructor.
Test whether the value has this constructor.
Case analysis by constructor, on the constructor payloads.
Extract the constructor payload or field; return none otherwise.
The complete payload determines exactly this constructor value.
A payload exists precisely when this constructor matches.
A payload exists precisely when this constructor matches.
The complete payload determines exactly this constructor value.
A payload exists precisely when this constructor matches.
Test whether the value has this constructor.
Framing encoding of Classification via enc_inductive.
Partner function taking security parameter n and communication log.
Honest user registered with the TTP (U.id, U.ltk).
Bit-string identity chosen at honest registration.
Long-term secret key produced by
Protocol.registerHonest.
Instances For
Execution state of an honest user session instance ([BS23], §21.9, p. 886).
Identity of the honest user owning the instance.
Long-term secret key of the owning user.
- role : Role
Role assigned at initialization.
Current local state word.
- phase : Phase
Current execution status (
running,aborted, orfinished). Partner identity, read when
phase = .finished.Session key, read when
phase = .finished.- classification : Option Classification
Partner-function classification recorded in Experiment 1 (
noneuntil finished). Effective session key assigned when finishing in Experiment 1 (
noneiferror/unset).
Instances For
Finished instances I, J are compatible when each names the other as partner and they
have opposite roles ([BS23], §21.9, p. 888).
Instances For
Mutable state of the AKE challenger ([BS23], §21.9, pp. 886–888).
Internal state word of the TTP.
- honest : List HonestUser
Registered honest users.
Corrupt user identities (repeats allowed from repeated queries).
Honest user instances in creation order (
0, 1, …).Communication log passed to the partner function in Experiment 1.
Instances For
Look up an honest user record by identity.
Whether user is registered as an honest user.
Whether user has been registered as a corrupt user.
Whether user has been registered either honestly or corruptly.
Whether any instance in s has already been classified as .connected peer.
Implements the first reading of "no other user instance previously connected to it"
([BS23], p. 888): any .connected peer classification counts, even when that
instance received error (effectiveKey = none). See hasKeyedConnection_eq.
Idealization hook for Experiment 1 ([BS23], §21.9, pp. 887–893). Static security
(Protocol.StaticallySecure) leaves exposed at its default (fun _ _ => false); PFS and HSM
security (Definitions 21.2 and 21.3) supply nontrivial exposed predicates for .vulnerable
instances without changing challenger.
Partner function classifying each finishing instance from the communication log.
Extra exposure condition making a
.vulnerableinstanceiin statesrevealI.keyrather thanerror(none). Defaults tofalse.
Encoding of DeliverReply via enc_structure.
Oracle query tags exposed to an active AKE adversary ([BS23], §21.9, pp. 886–887).
- registerHonest : Op
Register an honest user (
req = user). - registerCorrupt : Op
Register a corrupt user (
req = encPair encBits encBits (user, msg)). - init (role : Role) : Op
- deliver : Op
Deliver a protocol message (
req = encPair encBits encBits (idx, msg)). - deliverTTP : Op
Deliver an online message to the TTP (
req = msg).
Instances For
Effective session key distribution for a finishing instance I under classification c and
exposure flag exposed in state s ([BS23], §21.9, p. 888). Returns none for
error.
Query handler for Experiment 0 (ideal = none) and Experiment 1 (ideal = some idl)
([BS23], §21.9, pp. 886–888). Disallowed queries, and queries that would hand a protocol
algorithm a word longer than P.sizeBound n (Protocol.TooLong), return [] with unchanged
state; refusal depends only on (honestIds, corruptIds, instancePhases) and the lengths of the
request's words (challenger_of_refused, view_of_mem_support). Clients should rewrite with
challenger_* equations.
Query equation for .registerHonest.
Query equation for .registerCorrupt.
Query equation for .init.
Query equation for .deliverTTP.
Query equation for .deliver targeting a non-existent instance index.
Query equation for .deliver targeting a non-running instance.
Query equation for .deliver with a message longer than P.sizeBound n.
Query equation for .deliver of a message of at most P.sizeBound n bits to a running
instance.