Many-time fresh-key TCR hash-and-sign on arbitrary-length bit words #
TCRSignature.scheme instantiates construction (13.2) of [BS23], Section 13.2.1 over a
one-time signature scheme S to build a capacity-1 IndexedSignatureScheme. This module
formalizes [BS23], Section 13.2.1 (construction (13.2) on p. 533 and Theorem 13.2 on
p. 534) in its full many-time form: given any stateless many-time EUFCMA-secure
SignatureScheme S on fixed-length bit strings and any unrestricted target collision-resistant
KeyedHashFamily H on List Bool, TCRSignature.wordScheme S H is a stateless many-time
WordSignatureScheme satisfying WordSignatureScheme.EUFCMA on arbitrary-length List Bool
messages:
- Construction (
TCRSignature.wordScheme): reusesTCRSignature.keyGen S H, signs anymsg : List BoolviaTCRSignature.sign S H sk 0 msg(sampling a freshH.keyLen n-bit hash keykper signature and signingotsMsg H n k (H.eval n k msg)underS), and verifies viaTCRSignature.verify S H pk 0 msg sig. - Many-query security reduction (
exists_reduction_wordScheme_eufCmaGame_le,SignatureScheme.EUFCMA.eufCMA_wordScheme): following the proof of [BS23], Theorem 13.2 (p. 534), every valid forgery(m*, (k*, ots*))againstwordScheme S Hafter arbitrarily many adaptive signing queries(m_1, k_1), …, (m_Q, k_Q)satisfies one of two cases:- Type I (
manyTimeForger):M* = otsMsg H n k* (H.eval n k* m*)differs from every wordotsMsg H n k_r (H.eval n k_r m_r)signed during the run, winningS.eufCmaGamewith factor1. - Type II (
tcrMultiAdversary):M* = otsMsg H n k_r (H.eval n k_r m_r)for some signing query step, sootsMsg_injforcesk* = k_randH.eval n k_r m_r = H.eval n k_r m*while freshnessm* ∉ queriedforcesm_r ≠ m*. Guessing the challenge machine step viasampleDyadicIndex (fuelUpper ... n)commitsm_rbeforek_ris sampled, implants the external challenge hash key at that step, and finishes the remaining steps locally underS, winningtargetCollisionGamewith polynomial lossdyadicSize (fuelUpper ... n).
- Type I (
- Cryptographic consequences (
WordSignatureScheme.EUFCMA.exists_oneWay,OneWay.exists_wordEUFCMA_of_targetCollisionResistant,OneWayPermutation.exists_wordEUFCMA): combiningOneWay.exists_eufCMA_of_targetCollisionResistantwitheufCMA_wordSchemeyields stateless many-timeWordSignatureSchemes on unrestrictedList Boolmessages from any one-way function plus a target collision-resistantKeyedHashFamily(and unconditionally from anyOneWayPermutationvianaorYungHash).
Main definitions #
Cslib.Crypto.TCRSignature.wordScheme: stateless many-timeWordSignatureSchemeon arbitraryList Boolmessages via per-signature fresh-key TCR hash-and-sign.Cslib.Crypto.TCRSignature.manyTimeHandler,Cslib.Crypto.TCRSignature.manyTimeForger: open oracle reduction toSignatureScheme.eufCmaGame.Cslib.Crypto.TCRSignature.TraceStep,Cslib.Crypto.TCRSignature.TcrSavedState,Cslib.Crypto.TCRSignature.replayStep,Cslib.Crypto.TCRSignature.replayCfg,Cslib.Crypto.TCRSignature.queryOf,Cslib.Crypto.TCRSignature.appendTraceStep,Cslib.Crypto.TCRSignature.sampleStep,Cslib.Crypto.TCRSignature.tcrMultiAdversary: clocked step-guessing two-stage target-collision reduction across polynomially many signing queries.
Main results #
Cslib.Crypto.TCRSignature.isOraclePPT_manyTimeForger,Cslib.Crypto.TCRSignature.isPPT_tcrMultiAdversary: uniform strict PPT certificates for both many-query reductions, proved with zero tidy-calculus bridge steps.Cslib.Crypto.TCRSignature.succProbability_wordScheme_eufCmaGame_le_of_machine,Cslib.Crypto.TCRSignature.exists_reduction_wordScheme_eufCmaGame_le: concrete Theorem 13.2 security bound with polynomial query-slot lossdyadicSize (fuelUpper ... n).Cslib.Crypto.SignatureScheme.EUFCMA.eufCMA_wordScheme:TCRSignature.wordScheme S HsatisfiesWordSignatureScheme.EUFCMAwheneverSsatisfiesSignatureScheme.EUFCMAandHis target collision-resistant.Cslib.Crypto.WordSignatureScheme.EUFCMA.exists_oneWay,Cslib.Crypto.OneWay.exists_wordEUFCMA_of_targetCollisionResistant,Cslib.Crypto.OneWayPermutation.exists_wordEUFCMA: necessity and sufficiency bridges for unrestricted-message signatures (the last two are steps toward [NY89]: no inspection of the primary source is recorded).
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Version 0.6,
Section 13.2.1 (construction
(13.2)on p. 533 and Theorem 13.2 on p. 534). - M. Naor, M. Yung, Universal One-Way Hash Functions and their Cryptographic Applications, Section 4.
- J. Rompel, One-Way Functions are Necessary and Sufficient for Secure Signatures.
Stateless many-time WordSignatureScheme via fresh-key TCR hash-and-sign #
Fresh-key TCR hash-and-sign stateless WordSignatureScheme ([BS23], Section
13.2.1, construction (13.2), p. 533): signs arbitrary-length List Bool messages by sampling a
fresh H.keyLen n-bit hash key k inside every signature and signing otsMsg H n k (H.eval n k m)
under the fixed-length signature scheme S at security parameter otsParam H n.
Type-I reduction: open stateless signing-oracle simulation (manyTimeForger) #
Open stateless handler answering each signing query msg at parameter n by sampling a fresh
H.keyLen n-bit hash key k, querying the external S-signing oracle on
otsMsg H n k (H.eval n k msg) (truncated to sigBound n), and returning (k, ots).
Many-time signature forger against S at parameter M = otsParam H n: recovers
n := otsParamInv H M, runs adversary n (encPair encUnary encBits (n, otvk)) against
manyTimeHandler H sigBound n, and translates any output (m*, (k*, ots*)) into the fixed-length
S-forgery (otsMsg H n k* (H.eval n k* m*), ots*).
manyTimeForger is uniformly strict oracle PPT whenever sigBound is computable in plain
polynomial time on unary n.
Deterministic step replay and bounded-growth trace sampling (tcrMultiAdversary) #
One recorded machine step of the many-query trace sampler.
- coin : Bool
Fair coin bit supplied to the machine transition at this step.
Fresh hash key chosen when this step queries the signing oracle.
Signature from the underlying signature scheme (or
[]when no query occurs).
Instances For
Total decoder for raw Forger outputs (msg, sig).
Total decoder for TraceStep.
Deterministically advance cfg by one TraceStep, truncating any query reply
encPair encBits encBits (step.hashKey, step.ots) to limit bits.
Inspect whether machine issues an external query from cfg on fair coin coin, returning
some (cfg.channels ()).1 when it does and none otherwise.
replayCfg is computable in plain polynomial time for every finite-control MultiTapePTM.
Advance trace by one step under coin b and key hashKey, appending
⟨b, hashKey, []⟩ when step trace.length does not query and signing
(hashKey, H.eval n hashKey msg) to append ⟨b, hashKey, ots⟩ when it queries msg.
Sample one local simulation step on trace, appending ⟨b, k, []⟩ when step trace.length
does not query and ⟨b, k, ots⟩ (with ots ← S.sign otsk (otsMsg H n k (H.eval n k msg))) when
it queries msg.
Uniform polynomial upper bound on the machine clock c * ((wordOf n otvk).length + 1) ^ d
across all otvk of length at most ckg * (otsParam H n + 1) ^ dkg.
Saved state passed from tcrMultiAdversary.choose to tcrMultiAdversary.find.
- active : Bool
Whether
choosesampled a step slot strictly before the machine fuel limit. Verification and signing key pair
(pk, sk)sampled once for this execution.- coinAtSlot : Bool
Fair coin bit pre-committed for the target query step.
- remSteps : ℕ
Remaining simulation steps after the implanted challenge hash key.
Prefix trace simulated locally before the implanted query step.
Instances For
Standard encoding of TcrSavedState.
Total decoder for TcrSavedState.
Many-query two-stage target-collision adversary against H ([BS23], proof of
Theorem 13.2, p. 534): choose n samples keys ← S.keyGen (otsParam H n) and a uniform dyadic
step index slot ← sampleDyadicIndex (fuelUpper H ckg dkg c d n); when slot < B, it locally
simulates slot machine steps via sampleStep, draws the next step coin b, commits the queried
message (queryOf machine cfg b).getD [] before hashKey is sampled, and saves the state; find
implants the external hashKey at step slot, finishes the remaining B - 1 - slot steps via
sampleStep, and outputs the forged message m*.
Both stages of tcrMultiAdversary are uniformly strict PPT.
Exact trace coupling and Boneh–Shoup Theorem 13.2 security proof #
Concrete security bound for TCRSignature.wordScheme with an explicit realizing machine
([BS23], Section 13.2.1, Theorem 13.2, p. 534): at every security parameter n, the
adaptive EUF-CMA forging probability against wordScheme S H on unrestricted List Bool messages
is at most the SignatureScheme.eufCmaGame forging probability of manyTimeForger against S at
otsParam H n plus dyadicSize (fuelUpper H ckg dkg c d n) times the target-collision probability
of tcrMultiAdversary against H at n.
Existential many-query reduction for TCRSignature.wordScheme ([BS23], Section
13.2.1, Theorem 13.2, p. 534): every strict oracle-PPT forger adversary against
wordScheme S H induces a strict oracle-PPT forger sigForger against S, a strict PPT
two-stage TargetCollisionFinder tcrAdv against H, and a PolynomiallyBounded loss schedule
loss bounding adversary's forging probability at every security parameter n.
Boneh–Shoup Theorem 13.2 ([BS23], Section 13.2.1, p. 534): if S is a secure
signature scheme (EUFCMA) and H is target collision resistant, then the derived scheme
TCRSignature.wordScheme S H of construction (13.2) (p. 533) is a secure signature scheme, here
on messages of any length.
S is a SignatureScheme, whose message space at security parameter p is the p-bit words.
The source's S signs the pairs (r, h) of K_H × T at the same security parameter. Here, at
parameter n, the derived scheme runs S at the parameter otsParam H n (injective, computable
in polynomial time and above H.keyLen n + H.digestLen n) on the otsParam H n-bit word
otsMsg H n r h: r, then h, then zero padding. So the premise S.EUFCMA is Attack Game 13.1
for S on all otsParam H n-bit words, which contain the encoded pairs, and the bound at n uses
the advantage against S at otsParam H n, which is negligible in n since otsParam H n ≥ n
(TCRSignature.negligible_comp_otsParam). The keys of the derived scheme also carry n; its
signature is (r, σ), and verification checks that r has H.keyLen n bits.
H.TargetCollisionResistant is Attack Game 8.5 and Definition 8.7 (pp. 337–338) with every word a
message, and the conclusion is Attack Game 13.1 on every word: security on every message space of
polynomially bounded word length at once. Adversaries are uniform strict (oracle) PPT machines.
TCRSignature.exists_reduction_wordScheme_eufCmaGame_le gives the certified reductions and the
bound, with a polynomially bounded loss in place of the source's factor Q.
Any EUFCMA-secure WordSignatureScheme implies the existence of a uniform OneWay
function.
Step toward the signatures of [NY89], Section 4, for messages of any length, not the
cited result: no inspection of the primary source is recorded (manual/sources.md lists the
authors' manuscript without a check), so this statement has not been checked against it (#5293).
[BS23], Sections 13.2.1 and 14.6, give the route but state no theorem of this form.
Any uniform OneWay function and any unrestricted target collision-resistant KeyedHashFamily
yield a stateless many-time WordSignatureScheme satisfying EUFCMA on all List Bool
messages.
Step toward the Naor–Yung signature theorem ([NY89], Theorem 2 / Section 4), for
messages of any length, not the cited result: no inspection of the primary source is recorded
(manual/sources.md lists the authors' manuscript without a check), so this statement has not been
checked against it (#5293).
Every one-way permutation implies the existence of a stateless many-time EUFCMA-secure
WordSignatureScheme on arbitrary-length List Bool messages; the extension to all lengths is
[BS23], Theorem 13.2 (SignatureScheme.EUFCMA.eufCMA_wordScheme).