Documentation

CslibFrontier.Crypto.Computational.AuthenticatedKeyExchange.Static

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 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 #

References #

@[reducible, inline]

Active AKE adversary taking unary security parameter n and empty auxiliary input [], with oracle access to Op ([BS23], §21.9, pp. 886–888).

noncomputable def Cslib.Crypto.AKE.Protocol.run (P : Protocol) (ideal : Option Idealization) (adversary : Adversary) (n : ℕ) :

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).

noncomputable def Cslib.Crypto.AKE.Protocol.staticAdvantage (P : Protocol) (pf : PartnerFunction) (adversary : Adversary) (n : ℕ) :

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 P behind that guard, not of its unguarded algorithms;
  • incoming user identities and messages, long-term keys and instance states have at most P.sizeBound n bits, and each TTP call adds at most P.sizeBound n bits to the TTP state; outgoing messages have no fixed cap;
  • P need 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).