Authenticated key exchange: protocol syntax #
An authenticated key exchange (AKE) protocol ([BS23], §21.9, p. 885) specifies a key
space—modeled here at security parameter n as all bit strings of length keyLength n—together
with algorithms for trusted third party (TTP) initialization, honest and corrupt user registration,
online TTP queries, and session key establishment steps.
All runtime values are bit strings (List Bool), and every algorithm carries a uniform strict
polynomial-time or IsPPTOn efficiency certificate over explicit structure encodings. Honest
registration is modeled as one joint step (registerHonest), whereas corrupt registration and
key establishment proceed step by step through explicit TTP and instance states.
A certificate for each call alone is not enough. It admits a TTP that doubles its state on every call, and a TTP that echoes an arbitrarily long request; in both, the work and the replies are not bounded by any polynomial in the security parameter and the number of calls. The book excludes both:
- the TTP must be an efficient interface ([BS23], footnote 1 on p. 885, and Definition 2.12, p. 33), whose total running time is polynomial in the security parameter and the number of interactions;
- the configuration of a running protocol instance is bounded by a fixed polynomial in the security parameter (§18.1.1, p. 718), which names the doubling as the reason.
A Protocol therefore carries a size bound sizeBound, computable in polynomial time in unary
and so polynomial in n. The bound limits three things:
- TTP state. Each TTP call lengthens the TTP state by at most
sizeBound n. - Long-term keys and instance states. Every long-term key that honest registration outputs,
and every state that a session step outputs, has length at most
sizeBound n. - Adversary words. The challenger refuses any query that would hand a protocol algorithm a
user identity or message longer than
sizeBound n(Protocol.TooLong), as it refuses other disallowed queries.
Every input of a TTP call then has length polynomial in n and the number of earlier calls, and
every input of a session step has length polynomial in n. So the TTP runs in time polynomial in
n and the number of interactions, as Definition 2.12 requires, and each session step runs in
time polynomial in n, as §18.1.1 requires. A certificate that running the whole experiment is
PPT is not proved here.
The resulting model differs from the book's, so Protocol.StaticallySecure is a milestone toward
Definition 21.1, not that definition:
- The guard is part of the semantics. Over-long words are refused before any protocol algorithm runs, whereas the book's interface reads as much of a word as its time budget allows. Security behind the guard need not be security of the unguarded algorithms.
- The bounds are narrower than Definition 2.12. Each call may add at most
sizeBound nto the TTP state, whereas Definition 2.12 bounds only the cumulative running time, and so also admits interfaces whose growth per call increases with the number of earlier calls. The bound is also worst-case, where Definition 2.12 lets it fail with negligible probability. - Rounds are unbounded. The polynomial terminal-round condition of §18.1.1 is not required: a
session may stay
runningforever.
Main definitions #
Cslib.Crypto.AKE.Role: session role (leftorright).Cslib.Crypto.AKE.Phase: execution status of an instance (running,aborted, orfinished).Cslib.Crypto.AKE.StepInput,Cslib.Crypto.AKE.StepOutput: input and output records of a session key establishment step, with encodingsencStepInputandencStepOutput.Cslib.Crypto.AKE.TTPInput,Cslib.Crypto.AKE.TTPOutput: input and output records of TTP queries, with encodingsencTTPInputandencTTPOutput.Cslib.Crypto.AKE.Protocol: AKE protocol record with efficiency certificates, session-key length invariant and size bound.Cslib.Crypto.AKE.Protocol.TooLong: a word longer than the size bound, which the challenger refuses to hand to a protocol algorithm.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Section 21.9, pp. 885–886; Definition 2.12, p. 33; Section 18.1.1, p. 718.
Status of a session key establishment instance ([BS23], §21.9, pp. 885–886).
- running : Phase
The instance has not yet terminated and still accepts incoming messages.
- aborted : Phase
The instance aborted without deriving a session key.
- finished : Phase
The instance terminated successfully with a partner identity and session key.
Instances For
Input to one session key establishment step of an honest user instance.
- parameter : ℕ
Unary security parameter
n. Identity of the honest user owning the instance.
Long-term secret key established for
userat registration.- role : Role
Symmetry-breaking role of the instance.
Current local state word of the instance.
Incoming protocol message word (ignored on a role's initial outgoing flow).
Instances For
Output of one session key establishment step of an honest user instance.
Updated local state word of the instance.
Outgoing protocol message word.
- phase : Phase
Instances For
Encoding of StepOutput as its fields in declaration order.
Input to a TTP algorithm (honest registration, corrupt registration, or online TTP step).
- parameter : ℕ
Unary security parameter
n. Current internal state word of the TTP.
User identity relevant to the query (unused for online TTP steps).
Incoming message word to the TTP (unused for honest registration).
Instances For
Syntactic specification of an authenticated key exchange protocol ([BS23], §21.9,
pp. 885–886), packaged with uniform strict polynomial-time / IsPPTOn certificates, the
session-key length condition k ∈ 𝒦 where 𝒦 = {0, 1}^{keyLength n}, and the size bound that
makes the TTP an efficient interface (Definition 2.12, p. 33) and keeps instance configurations
polynomial in n (§18.1.1, p. 718). The module documentation compares this bound with the
book's conditions.
Session key length as a function of the security parameter.
Initializes the TTP internal state at security parameter
n.Joint honest registration protocol, updating TTP state and producing
U.ltk.One interactive step of corrupt user registration directly with the TTP.
Online TTP message handler (
deliverTTP).One step of the interactive session key establishment algorithm.
- keyLength_polyTime : Turing.MultiTapeTM.ComputableInPolyTime self.keyLength Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encUnary
keyLengthis computable in polynomial time in unary. - ttpInit_ppt : Probability.IsPPTOn Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encBits self.ttpInit
TTP initialization is uniform strict PPT.
Honest registration is uniform strict PPT.
Corrupt registration is uniform strict PPT.
Online TTP processing is uniform strict PPT.
Session key establishment steps are uniform strict PPT.
Size bound of the protocol at security parameter
n: the most a TTP call may add to the TTP state, the length of every long-term key and instance state, and the length of every user identity and message the challenger hands to a protocol algorithm.- sizeBound_polyTime : Turing.MultiTapeTM.ComputableInPolyTime self.sizeBound Turing.MultiTapeTM.encUnary Turing.MultiTapeTM.encUnary
- registerHonest_ttp_length (input : TTPInput) (out : TTPOutput) : out ∈ (self.registerHonest input).eval.support → out.ttp.length ≤ input.ttp.length + self.sizeBound input.parameter
Honest registration lengthens the TTP state by at most
sizeBound n. - registerHonest_output_length (input : TTPInput) (out : TTPOutput) : out ∈ (self.registerHonest input).eval.support → out.output.length ≤ self.sizeBound input.parameter
Honest registration outputs a long-term key of length at most
sizeBound n. - registerCorrupt_ttp_length (input : TTPInput) (out : TTPOutput) : out ∈ (self.registerCorrupt input).eval.support → out.ttp.length ≤ input.ttp.length + self.sizeBound input.parameter
Corrupt registration lengthens the TTP state by at most
sizeBound n. - ttpStep_ttp_length (input : TTPInput) (out : TTPOutput) : out ∈ (self.ttpStep input).eval.support → out.ttp.length ≤ input.ttp.length + self.sizeBound input.parameter
An online TTP step lengthens the TTP state by at most
sizeBound n. - step_state_length (input : StepInput) (out : StepOutput) : out ∈ (self.step input).eval.support → out.state.length ≤ self.sizeBound input.parameter
Every instance state a step outputs has length at most
sizeBound n.