Uniform digital signature schemes and existential unforgeability #
A uniform digital signature scheme (SignatureScheme) consists of a strict probabilistic
polynomial-time key generator keyGen, a strict probabilistic polynomial-time signing algorithm
sign, and a deterministic polynomial-time verification algorithm verify that accepts every
signature produced by sign on an n-bit message under a key pair sampled at security parameter
n. The message space at parameter n is exactly the n-bit words; this module does not
claim security for arbitrary polynomial-length message families.
We formalize two adaptive chosen-message security notions against uniform strict oracle-PPT forgers
(IsOraclePPT):
- Existential unforgeability under adaptive chosen-message attack (
eufCmaGame,EUFCMA): the forger receives the unary security parameternand public verification keypk, has adaptive oracle access tosigningOracle n skonn-bit messages, and wins by outputting a valid(msg, sig)pair withmsg.length = nsuch thatmsgwas never queried to the signing oracle. The oracle answers a query of any other length with the empty word, without signing or recording it, so signing queries lie in the message space as in the source. - Existential unforgeability under one-time adaptive chosen-message attack (
eufOneTimeGame,OneTimeEUFCMA): the signing oracleoneTimeSigningOracle n skanswers at most the firstn-bit signing query and returns the empty word on any other query. EveryEUFCMA-secure scheme is a fortioriOneTimeEUFCMA-secure (SignatureScheme.EUFCMA.oneTimeEUFCMA).
Main definitions #
Cslib.Crypto.Forger: adaptive oracle adversary outputting a(message, signature)pair.Cslib.Crypto.encForgeryLog: the encoding of a forgery with the list of queried messages.Cslib.Crypto.SignatureScheme: uniform digital signature scheme onn-bit messages.Cslib.Crypto.SignatureScheme.signingOracleOn,Cslib.Crypto.SignatureScheme.signingOracleOf,Cslib.Crypto.SignatureScheme.signingOracle,eufCmaGame,EUFCMA: message-logging signing oracle on a message space and on every word, and full adaptive EUF-CMA experiment and security predicate.Cslib.Crypto.SignatureScheme.oneTimeSigningOracleOn,Cslib.Crypto.SignatureScheme.oneTimeSigningOracle,eufOneTimeGame,OneTimeEUFCMA: one-time message-logging signing oracle on a message space and one-time adaptive EUF-CMA experiment and security predicate.
Main results #
Cslib.Crypto.SignatureScheme.exists_sign_length_bound,Cslib.Crypto.SignatureScheme.exists_sign_length_bound_of_length_eq: plain polynomial-time bounds on signature lengths, in the security parameter and the message length or onn-bit messages.Cslib.Crypto.SignatureScheme.isPPTOn_run_signingOracleOn,Cslib.Crypto.SignatureScheme.isPPTOn_run_signingOracleOf,Cslib.Crypto.SignatureScheme.isPPTOn_run_signingOracle,Cslib.Crypto.SignatureScheme.isPPTOn_eufCmaGame,isPPT_eufCmaGame: strict PPT certificates for the message-logging signing oracle and full EUF-CMA experiment.Cslib.Crypto.SignatureScheme.isPPTOn_run_oneTimeSigningOracleOn,Cslib.Crypto.SignatureScheme.isPPTOn_run_oneTimeSigningOracle,Cslib.Crypto.SignatureScheme.isPPTOn_eufOneTimeGame,isPPT_eufOneTimeGame: strict PPT certificates for the one-time signing oracle and one-time EUF-CMA experiment.Cslib.Crypto.SignatureScheme.run_limitToOneQuery_eq_oneTimeSigningOracleOn,Cslib.Crypto.SignatureScheme.EUFCMA.oneTimeEUFCMA: one-query filter simulation and implication from full EUF-CMA security to one-time EUF-CMA security. The filter forwards only queries in the message space, so a refused query does not use up the one forwarded query.Cslib.Crypto.SignatureScheme.restrictQueries,Cslib.Crypto.SignatureScheme.isOraclePPT_restrictQueries,Cslib.Crypto.SignatureScheme.run_restrictQueries_eq_signingOracleOn: the forger that answers queries outside the message space itself, so that a bound against the oracle on every word transfers to the oracle on the message space.
References #
An adaptive forger receives a unary security parameter and a public verification key, queries a
signing oracle on chosen messages, and outputs a candidate (message, signature) pair.
Output ((msg, sig), queried) of a forger run against a message-logging signing oracle: the
candidate forgery (msg, sig) as bit words, then the list of queried messages. The forgery is
framed, with msg framed again inside it, and so is each queried message.
A uniform digital signature scheme on n-bit messages at security parameter n, with strict
polynomial-time key generation and signing, deterministic polynomial-time verification, and perfect
completeness on supported key pairs, n-bit messages, and signatures.
Sample a public verification key and secret signing key
(pk, sk)at unary parametern.Sign a message
msgusing the secret signing keysk.Deterministically verify a candidate signature
sigonmsgunder public keypk.- keyGen_ppt : Probability.IsPPTOn Turing.MultiTapeTM.encUnary (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encBits Turing.MultiTapeTM.encBits) self.keyGen
Key generation is uniformly strict PPT in the unary security parameter.
- sign_ppt : Probability.IsPPTOn (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encBits Turing.MultiTapeTM.encBits) Turing.MultiTapeTM.encBits fun (p : List Bool × List Bool) => self.sign p.1 p.2
Signing is uniformly strict PPT in the encoded secret key and message.
- verify_polyTime : Turing.MultiTapeTM.ComputableInPolyTime (fun (p : List Bool × List Bool × List Bool) => self.verify p.1 p.2.1 p.2.2) (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encBits (Turing.MultiTapeTM.encPair Turing.MultiTapeTM.encBits Turing.MultiTapeTM.encBits)) Turing.MultiTapeTM.encBool
Verification is computable in plain polynomial time on
(pk, msg, sig).
Signatures have polynomially bounded length: some plain polynomial-time bound n L bounds
every signature on a message of length L under a key pair sampled at parameter n.
exists_sign_length_bound on the scheme's own message space: some plain polynomial-time
bound n bounds every signature on an n-bit message under a key pair sampled at parameter n.
Stateful signing/tagging oracle on the message space adm: it signs an admissible requested
message with sign sk and prepends it to the list of queried messages, and it answers any other
request with the empty word, without signing or recording it (Signer.restrict).
Stateful signing/tagging oracle that invokes sign sk on every requested message and prepends
the message to the list of queried messages: signingOracleOn on every word.
Stateful signing oracle at parameter n: it signs an n-bit requested message under sk and
prepends the message to the list of queried messages, and it answers a request of any other length
with the empty word without signing or recording it: signingOracleOn on the n-bit words,
instantiated at S.sign.
The EUF-CMA experiment: sample (pk, sk) ← S.keyGen n, run the adaptive forger on (n, pk)
with oracle access to S.signingOracle n sk, which signs n-bit messages only, and accept when the
forger outputs a valid signature on an n-bit message that was never queried to the signing
oracle.
Running an oracle-PPT forger against signingOracleOn (adm n) sign is uniformly strict PPT in
the unary security parameter n, public/auxiliary input, and secret key, when the message space
adm is decidable in polynomial time.
Running an oracle-PPT forger against signingOracleOf sign is uniformly strict PPT in the
unary security parameter, public/auxiliary input, and secret key.
Running an oracle-PPT forger against S.signingOracle is uniformly strict PPT in the unary
security parameter, public key, and secret key.
Run the complete EUF-CMA experiment on its unary security parameter for any oracle-PPT forger.
The EUF-CMA experiment is uniformly strict PPT, independently of unused auxiliary input.
Existential unforgeability under adaptive chosen-message attack (EUF-CMA) against uniform
strict oracle-PPT adversaries: [BS23], Attack Game 13.1 and Definition 13.2
(pp. 529–530), for the message space of n-bit words. Signing queries and the forgery both lie in
that space: the signing oracle answers a query of any other length with the empty word, without
signing or recording it.
Full EUF-CMA security gives negligible forgery probability for every oracle-PPT forger.
Establish EUF-CMA security by bounding every oracle-PPT forger's success probability.
One-time adaptive chosen-message security (OneTimeEUFCMA) #
One-time signing/tagging oracle on the message space adm: it answers the first admissible
query using sign sk and records it, and it returns the empty word without signing or recording on
every other query. A query outside adm is refused without using up the one answer
((Signer.restrict _ adm).oneTime).
One-time signing oracle at parameter n that answers at most the first n-bit signing query
using S.sign sk and returns the empty word without signing on any other query:
oneTimeSigningOracleOn on the n-bit words, instantiated at S.sign.
The one-time EUF-CMA experiment: sample (pk, sk) ← S.keyGen n, run the adaptive forger on
(n, pk) with oracle access to S.oneTimeSigningOracle n sk (which answers at most one signing
query, on an n-bit message), and accept when the forger outputs a valid signature on an n-bit
message distinct from the queried message (if any).
Running an oracle-PPT forger against oneTimeSigningOracleOn (adm n) sign is uniformly strict
PPT in the unary security parameter n, public/auxiliary input, and secret key, when the message
space adm is decidable in polynomial time.
Running an oracle-PPT forger against oneTimeSigningOracle is uniformly strict PPT in the
unary security parameter, public key, and secret key.
Run the complete one-time EUF-CMA experiment on its unary security parameter for any oracle-PPT forger.
The one-time EUF-CMA experiment is uniformly strict PPT, independently of unused auxiliary input.
Existential unforgeability under one-time adaptive chosen-message attack against uniform strict
oracle-PPT adversaries: a secure one-time signature in the sense of [BS23],
Definition 14.1 (p. 583), that is, Attack Game 13.1 (pp. 529–530) with at most one signing query,
for the message space of n-bit words. Signing queries and the forgery both lie in that space: the
oracle answers only the first n-bit query, and it answers a query of any other length with the
empty word without signing or recording it, so such a query does not use up the one answer.
One-time EUF-CMA security gives negligible forgery probability for every oracle-PPT forger.
Establish one-time EUF-CMA security by bounding every oracle-PPT forger's success probability.
Starting from the empty query log, oneTimeSigningOracle records at most one queried
message.
If S.sign sk₁ and S.sign sk₂ agree on all requests satisfying agree, then running any
adaptive program against oneTimeSigningOracle under sk₁ and sk₂ assigns the same probability
to every outcome (a, queried') whose recorded query log satisfies agree.
Reduction from one-time EUF-CMA to full EUF-CMA #
Open stateful handler at parameter n that forwards at most the first signing request in the
message space adm n to the external signing oracle (truncating the reply to
bound n msg.length), and answers every other request with [] itself. A request outside the
message space does not use up the one forwarded query.
Running an adaptive program filtered through oneTimeFilterHandler adm against
signingOracleOn (adm n) sign produces the same distribution as running it against
oneTimeSigningOracleOn (adm n) sign whenever all outputs of sign sk msg have length at most
bound n msg.length.
Refusing signing queries outside the message space in the forger #
The forger that runs adversary at parameter n, forwards each signing request in the message
space adm n to the external signing oracle (truncating the reply to bound n msg.length), and
answers every other request with [] itself, as the signing oracle on adm n does. Against the
signing oracle on every word it plays the game of adversary against the oracle on adm n
(run_restrictQueries_eq_signingOracleOn), so a bound proved for the unrestricted oracle transfers
to the restricted one.
Running restrictQueries adm bound adversary against the signing oracle on every word is
running adversary against the signing oracle on adm n, whenever every output of sign sk msg
has length at most bound n msg.length.
Full EUF-CMA security implies one-time EUF-CMA security.