Documentation

CslibFrontier.Crypto.Computational.WordSignature

Stateless digital signature schemes on arbitrary-length bit words #

SignatureScheme fixes the message space at security parameter n to exact n-bit words (msg.length = n). Mirroring Encryption.WordINDCPA, this module defines uniform stateless digital signature schemes (WordSignatureScheme) whose signing algorithm, verification algorithm, and adaptive EUF-CMA experiment (WordSignatureScheme.eufCmaGame, WordSignatureScheme.EUFCMA) operate on unrestricted bit strings (msg : List Bool), with no message-length restriction at any security parameter:

Main definitions #

Main results #

References #

A uniform stateless digital signature scheme on arbitrary bit strings (List Bool), with strict polynomial-time key generation and signing, deterministic polynomial-time verification, and perfect completeness on all supported key pairs, arbitrary List Bool messages, and signatures.

Adaptive chosen-message security on unrestricted bit words (EUFCMA) #

Stateful signing oracle that signs any requested List Bool message under sk and prepends the message to the list of queried messages: SignatureScheme.signingOracleOf instantiated at S.sign.

The unrestricted-message EUF-CMA experiment: sample (pk, sk) ← S.keyGen n, run the adaptive forger on (n, pk) with oracle access to S.signingOracle sk, and accept when the forger outputs a valid signature on any List Bool message that was never queried to the signing oracle.

Run the complete unrestricted-message EUF-CMA experiment on its unary security parameter for any oracle-PPT forger.

The unrestricted-message EUF-CMA experiment is uniformly strict PPT, independently of unused auxiliary input.

Existential unforgeability under adaptive chosen-message attack (EUFCMA) on arbitrary List Bool messages against uniform strict oracle-PPT adversaries: [BS23], Attack Game 13.1 and Definition 13.2 (pp. 529–530), with every bit string a message. The source's message space is a finite set of words of polynomially bounded length; a strict PPT forger queries and outputs only words of polynomially bounded length, so this is security on every such message space at once.

Unrestricted-message EUF-CMA security gives negligible forgery probability for every oracle-PPT forger.

Establish unrestricted-message EUF-CMA security by bounding every oracle-PPT forger's success probability.

Restriction to fixed-length SignatureScheme #

theorem Cslib.Crypto.WordSignatureScheme.succProbability_toSignatureScheme_eufCmaGame_le (S : WordSignatureScheme) {bound : ℕ → ℕ → ℕ} (hbound : ∀ (n : ℕ), ∀ keys ∈ (S.keyGen n).eval.support, ∀ (msg sig : List Bool), sig ∈ (S.sign keys.2 msg).eval.support → sig.length ≤ bound n msg.length) (adversary : Forger) (n : ℕ) :

A forger against S.toSignatureScheme, whose signing oracle signs n-bit messages only and which also checks msg.length == n, succeeds at most as often as the forger that refuses the other queries itself (SignatureScheme.restrictQueries) succeeds against S, whenever bound bounds signature lengths.

Unrestricted-message EUFCMA security implies SignatureScheme.EUFCMA security on n-bit messages.