Documentation

CslibFrontier.Crypto.Computational.WordAggregateSignature.AppendHash

Appending a hash of the keys and messages to an aggregate signature #

Exercise 15.11(c) of [BS23] (p. 675) makes an aggregate signature scheme strongly binding by including a collision-resistant hash of the public-key vector and the message vector in the aggregate signature. This module defines that transform for WordAggregateSignatureScheme with a keyed hash family H: the system parameter becomes the pair of the scheme's parameter and a hash key d ← setupH n, the aggregate signature becomes (H d (pks, ms), sigAg), and verification also checks the hash. The pair (pks, ms) is hashed through the injective encoding encPair (encList encBits) (encList encBits).

Only correctness of the transform is proved here (appendHash_correctOn). Neither security statement of the exercise is proved: strong binding of appendHash from collision resistance of H, and ASIG of appendHash from ASIG of the underlying scheme. The tests show only that the constant-hash transform of a scheme whose verifiers accept everything is not strongly binding (not_strongBinding_constantHash).

Main definitions #

Main results #

References #

def Cslib.Crypto.WordAggregateSignatureScheme.appendHash (S : WordAggregateSignatureScheme) {Param : Type} {Digest : Param → Type} (encParam : Param ↪ List Bool) (decParam : Turing.MultiTapeTM.Decoder encParam) (encDigest : (d : Param) → Digest d ↪ List Bool) (setupH : ℕ → ProbComp Param) (hsetupH : Probability.IsPPTOn Turing.MultiTapeTM.encUnary encParam setupH) (H : (d : Param) → List Bool → Digest d) (hH : Turing.MultiTapeTM.ComputableInPolyTime (fun (p : Param × List Bool) => (encDigest p.1) (H p.1 p.2)) (Turing.MultiTapeTM.encPair encParam Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encBits) :

The scheme SA' of Exercise 15.11(c) ([BS23], p. 675): the system parameter is the encoded pair of the parameter of S and a hash key d ← setupH n; the aggregate signature is the encoded pair (H d (pks, ms), sigAg) of a hash of the encoded key and message vectors and an aggregate signature of S; verification checks the hash and verifies sigAg under S.

theorem Cslib.Crypto.WordAggregateSignatureScheme.appendHash_correctOn (S : WordAggregateSignatureScheme) {Param : Type} {Digest : Param → Type} (encParam : Param ↪ List Bool) (decParam : Turing.MultiTapeTM.Decoder encParam) (encDigest : (d : Param) → Digest d ↪ List Bool) (setupH : ℕ → ProbComp Param) (hsetupH : Probability.IsPPTOn Turing.MultiTapeTM.encUnary encParam setupH) (H : (d : Param) → List Bool → Digest d) (hH : Turing.MultiTapeTM.ComputableInPolyTime (fun (p : Param × List Bool) => (encDigest p.1) (H p.1 p.2)) (Turing.MultiTapeTM.encPair encParam Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encBits) {bound : ℕ → ℕ → Prop} (hS : S.CorrectOn bound) :
(S.appendHash encParam decParam encDigest setupH hsetupH H hH).CorrectOn bound

The transform of Exercise 15.11(c) preserves correctness, for every predicate on the vector lengths.