Authenticated key exchange: static security in a guarded, bounded-message model #
Defines the active AKE adversary type, experiment execution (Protocol.run), advantage
(Protocol.staticAdvantage), and static security (Protocol.StaticallySecure). This is a
milestone toward Definition 21.1 of [BS23] (§21.9, p. 888), not that definition. It
differs from it in three ways:
- The guard is part of the protocol's semantics. The challenger refuses any query that would
hand a protocol algorithm a user identity or message longer than
P.sizeBound n(Protocol.TooLong) before the algorithm runs.StaticallySecure Pis therefore the security ofPbehind this guard, which need not be the security of the unguarded algorithms. An algorithm that misbehaves only on refused inputs is never exposed. - Inputs and stored state are bounded. Incoming user identities and messages, long-term keys
and instance states have at most
P.sizeBound nbits, and each TTP call adds at mostP.sizeBound nbits to the TTP state. Outgoing messages and TTP replies have no fixed cap; only the running time of the algorithm that produces them bounds them. The module definingProtocolcompares these bounds with the book's efficient interface (Definition 2.12, p. 33) and poly-bounded configurations (§18.1.1, p. 718). - Rounds are unbounded.
Protocoldoes not require the polynomial terminal-round condition of §18.1.1 (p. 718), to which §21.9 refers: a session that staysrunningforever is admitted.
The textbook definition, with the §18.1.1 conditions, remains open (#5670).
As in [BS23], §21.9, static security carries no correctness requirement: the protocol
that always aborts satisfies Protocol.StaticallySecure (verified in the test suite by
abortProtocol_staticallySecure), and no protocol that finishes a session is proved statically
secure here. Protocol.staticAdvantage and Protocol.StaticallySecure leave
Idealization.exposed at its default (fun _ _ => false).
Main definitions #
Cslib.Crypto.AKE.Adversary: active AKE adversary with word-oracle queriesOp.Cslib.Crypto.AKE.Protocol.run: execution in Experiment 0 (ideal = none) or Experiment 1 (ideal = some idl).Cslib.Crypto.AKE.Protocol.staticAdvantage: distinguishing advantage|Pr[W₀] − Pr[W₁]|.Cslib.Crypto.AKE.Protocol.StaticallySecureWith,Protocol.StaticallySecure: static security in the guarded, bounded-message model, a milestone toward Definition 21.1.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Section 21.9, Definition 21.1, p. 888.
Active AKE adversary taking unary security parameter n and empty auxiliary input [], with
oracle access to Op ([BS23], §21.9, pp. 886–888).
Execute adversary at security parameter n against challenger P n ideal, returning the
adversary's output bit (ideal = none is Experiment 0; ideal = some idl is Experiment 1).
Distinguishing advantage sKEadv[A, Π, pf] = |Pr[W₀] − Pr[W₁]| between Experiment 0 and
Experiment 1 with partner function pf (leaving Idealization.exposed at its default).
Static security of P with respect to a fixed partner function pf against all uniform
strict oracle-PPT adversaries, in the guarded, bounded-message model of this module: the
experiments of [BS23], §21.9, p. 888, with over-long words refused before any protocol
algorithm runs.
An AKE protocol P is statically secure in the guarded, bounded-message model if there exists a
polynomial-time partner function pf such that P.StaticallySecureWith pf. The shape is that of
Definition 21.1 ([BS23], §21.9, p. 888), but the notion is novel to this library and is
not Definition 21.1:
- the challenger refuses over-long user identities and messages before any protocol algorithm
runs, so this is the security of
Pbehind that guard, not of its unguarded algorithms; - incoming user identities and messages, long-term keys and instance states have at most
P.sizeBound nbits, and each TTP call adds at mostP.sizeBound nbits to the TTP state; outgoing messages have no fixed cap; Pneed not reach a terminal state within polynomially many rounds, as §18.1.1 (p. 718) requires.
The textbook definition remains open (#5670). As in the book, there is no
correctness clause; the protocol abortProtocol that immediately aborts every session satisfies
Protocol.StaticallySecure (abortProtocol_staticallySecure).