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:
- Completeness (
WordSignatureScheme.verify_sign): for every security parametern, supported key pair(pk, sk) ∈ (ProbComp.eval (S.keyGen n)).support, arbitrary bit stringmsg : List Bool, and signaturesig ∈ (ProbComp.eval (S.sign sk msg)).support,S.verify pk msg sig = true. - Adaptive chosen-message security (
WordSignatureScheme.eufCmaGame,WordSignatureScheme.EUFCMA): an adaptiveIsOraclePPTforger receives unarynandpk, queriesS.signingOracle skon arbitrary messages, and wins by outputting any valid(msg, sig)pair whose messagemsgwas never queried to the signing oracle ([GoldwasserMicaliRivest1988], Section 3;[Rompel1990];[BonehShoup2023], Section 13.1, Attack Game 13.1 and Definition 13.1). - Restriction to
n-bit messages (WordSignatureScheme.toSignatureScheme,WordSignatureScheme.EUFCMA.toSignatureScheme): everyWordSignatureSchemerestricts to aSignatureSchemewith the samekeyGen,sign, andverify.SignatureScheme.eufCmaGamesigns and accepts onlyn-bit messages, so a forger in it succeeds at most as often as the forger that refuses the other signing queries itself (SignatureScheme.restrictQueries) does inWordSignatureScheme.eufCmaGame, andWordSignatureScheme.EUFCMAimpliesSignatureScheme.EUFCMA.
Main definitions #
Cslib.Crypto.WordSignatureScheme: uniform stateless digital signature scheme on arbitraryList Boolmessages.Cslib.Crypto.WordSignatureScheme.signingOracle,Cslib.Crypto.WordSignatureScheme.eufCmaGame,Cslib.Crypto.WordSignatureScheme.EUFCMA: adaptive chosen-message security experiment and security predicate for unrestrictedList Boolmessages.Cslib.Crypto.WordSignatureScheme.toSignatureScheme: restriction of aWordSignatureSchemetoSignatureScheme'sn-bit message interface.
Main results #
Cslib.Crypto.WordSignatureScheme.isPPTOn_run_signingOracle,Cslib.Crypto.WordSignatureScheme.isPPTOn_eufCmaGame,Cslib.Crypto.WordSignatureScheme.isPPT_eufCmaGame: uniform strict PPT certificates for the signing-oracle execution and full EUF-CMA experiment, in the plain polynomial-time calculus. The execution certificate isSignatureScheme.isPPTOn_run_signingOracleOfapplied tosign_ppt.Cslib.Crypto.WordSignatureScheme.succProbability_toSignatureScheme_eufCmaGame_le,Cslib.Crypto.WordSignatureScheme.EUFCMA.toSignatureScheme:WordSignatureScheme.EUFCMAimpliesSignatureScheme.EUFCMAon the inducedn-bitSignatureScheme.
References #
- S. Goldwasser, S. Micali, R. L. Rivest, A Digital Signature Scheme Secure Against Adaptive Chosen-Message Attacks
- J. Rompel, One-Way Functions are Necessary and Sufficient for Secure Signatures
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6, Section 13.1 (Attack Game 13.1 and Definition 13.1) and Section 13.2.1.
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.
Sample a public verification key and secret signing key
(pk, sk)at unary parametern.Sign an arbitrary bit-string 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 (x : List Bool × List Bool) => match x with | (sk, msg) => self.sign sk msg
Signing is uniformly strict PPT in the encoded secret key and message.
- verify_polyTime : Turing.MultiTapeTM.ComputableInPolyTime (fun (x : List Bool × List Bool × List Bool) => match x with | (pk, msg, sig) => self.verify pk msg sig) (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).
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.
Running an oracle-PPT forger against signingOracle is uniformly strict PPT in (n, (pk, sk)).
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 #
Restrict a WordSignatureScheme to SignatureScheme's n-bit message interface.
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.