Documentation

CslibFrontier.Crypto.Computational.Signature.Aggregate

Winning conditions of the aggregate signature games #

The two winning conditions of Boneh–Shoup's aggregate signature games ([BS23], Section 15.5.2, p. 632), stated for any types of public keys and messages so that both the bit-string schemes of Crypto.Computational.WordAggregateSignature and typed schemes can use them.

Definition 15.4 gives the aggregate verification algorithm two vectors of equal length, a vector of public keys and a vector of messages; both conditions reject vectors of unequal lengths.

Main definitions #

Main results #

References #

def Cslib.Crypto.AggregateSignature.asigFresh {PK M : Type} [DecidableEq PK] [DecidableEq M] (pk : PK) (pks : List PK) (ms queried : List M) :

The freshness condition of Attack Game 15.2 ([BS23], p. 632): the vectors pks and ms have equal lengths, and some position j carries the challenge key pk and a message ms[j] outside the list queried of signing queries.

theorem Cslib.Crypto.AggregateSignature.asigFresh_eq_true_iff {PK M : Type} [DecidableEq PK] [DecidableEq M] (pk : PK) (pks : List PK) (ms queried : List M) :
asigFresh pk pks ms queried = true ↔ pks.length = ms.length ∧ ∃ (j : ℕ) (hj : j < pks.length) (hj' : j < ms.length), pks[j] = pk ∧ ms[j] ∉ queried
def Cslib.Crypto.AggregateSignature.sbAsigWin {PK M : Type} [DecidableEq PK] [DecidableEq M] (b₁ b₂ : Bool) (pks : List PK) (ms : List M) (pks' : List PK) (ms' : List M) :

The success condition of Attack Game 15.3 ([BS23], p. 632): the two pairs (pks, ms) and (pks', ms') differ, each pair has vectors of equal lengths, and the aggregate signature verifies for both (the verdicts b₁ and b₂).

theorem Cslib.Crypto.AggregateSignature.sbAsigWin_eq_true_iff {PK M : Type} [DecidableEq PK] [DecidableEq M] (b₁ b₂ : Bool) (pks : List PK) (ms : List M) (pks' : List PK) (ms' : List M) :
sbAsigWin b₁ b₂ pks ms pks' ms' = true ↔ (pks, ms) ≠ (pks', ms') ∧ pks.length = ms.length ∧ pks'.length = ms'.length ∧ b₁ = true ∧ b₂ = true