Signature schemes #
A signature scheme Signature.Scheme PK SK M Sig has typed public keys, secret keys, messages and
signatures. Key generation and signing are probabilistic programs and verification is a Boolean
test ([BS23], Section 13.1). Correctness is a separate property (Scheme.Correct).
The security experiments are instances of the forgery experiment forgeExperiment: the forger
receives the public key, queries a signing oracle and outputs a candidate (m, σ). In
eufCmaExperiment the oracle signs every query and m must never have been signed
([BS23], Attack Game 13.1). sufCmaExperiment only asks that (m, σ) was never an
answer ([BS23], Section 13.1.1). oneTimeEufCmaExperiment is the one-time variant of
Attack Game 13.1, whose oracle answers the first query only. Asymptotic security over a family of
schemes and the efficiency of the forger are stated on top of these experiments.
An indexed scheme Signature.IndexedScheme signs a message at an index below its capacity
([BS23], Definition 14.6). In IndexedScheme.eufCmaExperiment the forger picks the index
of each query and a used index is refused; in IndexedScheme.counterEufCmaExperiment the signer
uses its own counter as the index ([BS23], Section 14.6.4).
Main definitions #
Cslib.Crypto.Signature.Scheme: a signature scheme with typed keys, messages and signatures.Cslib.Crypto.Signature.Forger: a forger with oracle access to a signer.Cslib.Crypto.Signature.Scheme.Correct: every honest signature verifies.Cslib.Crypto.Signature.Scheme.restrict: the scheme on a message space, which signs and accepts signatures only on admissible messages.Cslib.Crypto.Signature.Scheme.eufCmaExperiment,sufCmaExperiment,oneTimeEufCmaExperiment: the existential, strong and one-time forgery experiments.Cslib.Crypto.Signature.IndexedScheme, witheufCmaExperimentandcounterEufCmaExperiment: an indexed signature scheme and its forgery experiments with forger-chosen and counter indices.
Main results #
Cslib.Crypto.Signature.Scheme.succProbability_eufCmaExperiment_le: a forger wins the existential experiment at most as often as the strong one.Cslib.Crypto.Signature.Scheme.sufCmaExperiment_eq_eufCmaExperiment: for a correct scheme with unique signatures the two experiments coincide.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Section 13.1 (Definition 13.1, Attack Game 13.1 and Section 13.1.1), Definition 14.6 and Section 14.6.4.
A signature scheme ([BS23], Section 13.1) with public keys PK, secret keys SK,
messages M and signatures Sig.
A forger receives the public key, queries a signing oracle on messages and outputs a candidate message and signature.
A scheme is correct when every signature that signing can output verifies, for every key pair that key generation can output and every message.
The scheme S on the message space adm: signing an admissible message is unchanged, signing
any other message returns default, and a signature verifies only on an admissible message. A
signing query outside adm thus reveals nothing; in the many-query experiments it has the effect
of a refused query (Signer.restrict).
The existential forgery experiment under adaptive chosen-message attack ([BS23], Attack Game 13.1): draw a key pair, run the forger on the public key with a signing oracle for every query, and accept a valid signature on a message that was never queried.
The strong forgery experiment ([BS23], Section 13.1.1): as eufCmaExperiment, but
a valid pair (m, σ) wins whenever the oracle never answered m with σ.
The one-time existential forgery experiment: as eufCmaExperiment, but the signing oracle
answers only the first query and refuses every later one.
Strong unforgeability implies existential unforgeability: a forger wins the existential experiment at most as often as the strong one.
Unique signatures: for a correct scheme in which each message has at most one valid signature under each supported key pair, the strong and existential forgery experiments have the same distribution.
An indexed signature scheme ([BS23], Definition 14.6) with capacity capacity:
it signs a message m at an index u, and the signer must never use an index twice.
Key generation: draw a public key and its secret key.
- capacity : ℕ
The number of indices available; the signer uses indices below it.
Sign a message at an index with the secret key.
Verify a candidate signature on a message at an index under the public key.
The indexed forgery experiment ([BS23], Definition 14.6): the forger chooses the index
of each signing query, a query at a used index or at an index ≥ capacity is refused, and the
forger wins with a valid signature on a pair (u, m) with u < capacity that was never signed.
The counter forgery experiment ([BS23], Section 14.6.4): the signer keeps a counter,
signs its i-th message at index i and publishes i with the signature; it refuses once the
capacity is used up. The forger wins with a valid signature, at an index u < capacity, on any
message that was never signed.