Word-level signature games as typed forgery experiments #
At each security parameter n, every word-level signature game is a typed forgery experiment of
one fixed scheme, played by the word forger with its requests decoded.
SignatureScheme.eufCmaGameiseufCmaExperimentofS.toScheme n: the scheme with the same algorithms at parameternon the message space ofn-bit words, which signs a word of another length as[]. The word oracle refuses such a query instead; the laws agree because the forgery is ann-bit message.SignatureScheme.eufOneTimeGameis the forgery experiment ofS.toScheme nagainst the signer that answers the firstn-bit query and refuses every other query (Signer.restrict). A refused query does not use up the one answer.WordSignatureScheme.eufCmaGameiseufCmaExperimentofS.toScheme n, with no restriction.IndexedSignatureScheme.indexedEufCmaGameis the indexed experiment ofS.toScheme n. The word oracle reads every request with the total decoderrequestDecoder, so the typed forger queries the decoded pair.IndexedSignatureScheme.counterEufCmaGameis the counter experiment ofS.toScheme n. The word oracle answers the encoded pair(j, σ)and the empty word once the capacity is used up. The typed forgeradversary.toCounter (S.capacity n) ncounts its own queries to tell the two apart, so it encodes every answer exactly as the word oracle does.
The word games keep the list of queried messages, newest first; the typed experiment keeps the log of answered pairs, oldest first, and the two agree up to that representation.
Main definitions #
Cslib.Crypto.SignatureScheme.toScheme,Cslib.Crypto.WordSignatureScheme.toScheme,Cslib.Crypto.IndexedSignatureScheme.toScheme: the typed scheme of a word-level scheme at parametern.Cslib.Crypto.IndexedForger.toTyped,Cslib.Crypto.Forger.toCounter: the typed indexed and counter forgers of a word-level forger at parametern(alongsideCslib.Crypto.Forger.toTypedfromForgerBridge).
Main results #
Cslib.Crypto.Forger.eval_eufCmaExperiment_toTyped,Cslib.Crypto.Forger.eval_eufCmaExperiment_restrict_toTyped: the EUF-CMA experiment of any typed scheme on words, unrestricted or on a message space, played by a word forger, is the word-level game against the signing oracle on that space that records the queried messages.Cslib.Crypto.SignatureScheme.eufCmaGame_eq_eufCmaExperiment,Cslib.Crypto.SignatureScheme.eufOneTimeGame_eq_forgeExperiment,Cslib.Crypto.WordSignatureScheme.eufCmaGame_eq_eufCmaExperiment,Cslib.Crypto.IndexedSignatureScheme.indexedEufCmaGame_eq_eufCmaExperiment,Cslib.Crypto.IndexedSignatureScheme.counterEufCmaGame_eq_counterEufCmaExperiment: the word games have the distributions of the typed experiments.Cslib.Crypto.SignatureScheme.succProbability_eufCmaGame,Cslib.Crypto.SignatureScheme.succProbability_eufOneTimeGame: the same statements for the success probabilities.
The typed indexed forger played by the word forger adversary at parameter n: each request
word is decoded to the pair (u, m) that the word oracle reads from it, and the candidate
(u, m, σ) becomes ((u, m), σ).
One signing request of Forger.toCounter against a signer of capacity cap, with the number
j of answered requests as state: while j < cap it forwards the message and returns the answer
(j, σ) as the word encPair encUnary encBits (j, σ); afterwards it returns the empty word without
querying. These are the replies of the word counter oracle.
The typed counter forger played by the word forger adversary at parameter n against a
signer of capacity cap: it answers the word forger's requests with counterRelay cap, counting
them, and decodes its candidate signature word to (u, σ), as the word counter game does.
The EUF-CMA experiment of a typed scheme on words, played by adversary.toTyped n, is the
word-level game: run the word forger against the signing oracle that records the queried messages,
newest first, and accept a valid signature on a message that was never queried.
The EUF-CMA experiment of a scheme on words restricted to the message space adm, played by
adversary.toTyped n, is the word-level game against the signing oracle on adm, which also
requires the forged message to be admissible. The typed signer answers a query outside adm with
[] and logs it; the word oracle answers [] without recording it. The laws agree because such a
log entry never names an admissible forgery.
The typed scheme of S at parameter n: the same algorithms at n, on the message space of
n-bit words, as in the word-level games. Signing a word of another length returns [].
At each parameter n, the word-level EUF-CMA game is the typed EUF-CMA experiment of
S.toScheme n played by adversary.toTyped n.
At each parameter n, the word-level one-time EUF-CMA game is the forgery experiment of
S.toScheme n against the signer that answers the first n-bit query and refuses every other
query, played by adversary.toTyped n. A refused query is not logged, so it does not use up the one
answer; in the typed one-time experiment of S.toScheme n (oneTimeEufCmaExperiment) a query of
another length would be answered with [] and would use it up.
The success probability of the word-level EUF-CMA game at n is that of the typed
experiment.
The success probability of the word-level one-time EUF-CMA game at n is that of the typed
experiment.
The typed scheme of S at parameter n: the same algorithms at n, on all messages.
At each parameter n, the unrestricted word-level EUF-CMA game is the typed EUF-CMA
experiment of S.toScheme n played by adversary.toTyped n.
The typed indexed scheme of S at parameter n: the same algorithms and the capacity at
n.
At each parameter n, the word-level indexed EUF-CMA game is the typed indexed experiment of
S.toScheme n played by adversary.toTyped n.
At each parameter n, the word-level counter EUF-CMA game is the typed counter experiment of
S.toScheme n played by adversary.toCounter (S.capacity n) n.