Native word forgers in the typed random-oracle signature world #
A native word forger is an oracle machine with two channels: channel false signs a word and
channel true hashes a word. Every hash payload is retained as a distinct query, and digest replies
use the supplied injective encoding. Signing randomness remains in the shared world, separate from
the forger's private coins. The existing total pair decoder handles arbitrary native output,
including words that are not canonical pair encodings.
wordEufCmaGame and wordSufCmaGame are the EUF-CMA and SUF-CMA games of such a forger against a
scheme whose keys, messages, signatures and hash points are words. The forger gets the public key
and signs and hashes adaptively. EUF-CMA requires a verified final message that was never signed;
SUF-CMA requires a verified final message-signature pair that was never returned by signing.
Signing, hashing and the final verification share one lazily sampled random oracle. EUFCMA and
SUFCMA are the corresponding asymptotic notions against uniform oracle-PPT forgers.
The saved-coin adapter returns the empty pair without calls on oversized public keys, and truncates every supplied tape at the original input-dependent machine clock. Its sampling budget depends only on the security parameter. These are bridges between existing models, not a Schnorr security reduction. The scheme's signer and shared oracle remain the existing typed world; this module does not certify their native realization or the complete forking reduction.
Main definitions #
Cslib.Crypto.Protocols.ROMSignature.wordQuery: exact Boolean channel routing.Cslib.Crypto.Protocols.ROMSignature.routeWordProgram: retain private sampling while routing.Cslib.Crypto.Protocols.ROMSignature.wordEufCmaGame: the EUF-CMA game of a native word forger.Cslib.Crypto.Protocols.ROMSignature.wordSufCmaGame: the SUF-CMA game of a native word forger.Cslib.Crypto.Protocols.ROMSignature.EUFCMA: EUF-CMA security in the random-oracle model against uniform oracle-PPT word forgers.Cslib.Crypto.Protocols.ROMSignature.SUFCMA: SUF-CMA security in the random-oracle model against uniform oracle-PPT word forgers.Cslib.Crypto.Protocols.ROMSignature.savedCoinForger: the existing explicit-coin forger model.Cslib.Crypto.Protocols.ROMSignature.encReplayInput: the encoding of a saved-coin replay's input.Cslib.Crypto.Protocols.ROMSignature.RawWordSpec: the raw channel calls of a native forger.
Main results #
Cslib.Crypto.Protocols.ROMSignature.isOraclePPTOn_savedWordReplay: native efficiency of the full guarded, truncated and decoded replay input.Cslib.Crypto.Protocols.ROMSignature.savedWordReplay_eq_interpret: every guarded replay is the raw-call replay, interpreted by its channel calls.Cslib.Crypto.Protocols.ROMSignature.isQueryBounded_savedWordReplay,Cslib.Crypto.Protocols.ROMSignature.callBounded_savedCoinForger: every key and tape obey the parameter-only call budget, and the signing and hash budgets.Cslib.Crypto.Protocols.ROMSignature.exists_savedCoinForger: a polynomial length bound on the supported public keys and an actual oracle-PPT forger give a joint-state-preserving adapter.Cslib.Crypto.Protocols.ROMSignature.exists_eufCmaGame_savedCoinForger,Cslib.Crypto.Protocols.ROMSignature.exists_sufCmaGame_savedCoinForger: equality of each native word game and its explicit-coin typed game.
References #
Original adapters for the existing native oracle-PPT and typed ROM signature models.
Route a native word program into the existing typed signature world, retaining its private random sampling. Digest encodings affect replies only; all request words remain distinct.
Routing retains the joint output and state of any typed handler.
Native replay and typed routing commute as programs, before choosing any oracle world.
EUF-CMA and SUF-CMA games of native word forgers #
The EUF-CMA game of a native word forger in the random-oracle model, for a scheme whose
public keys, messages, signatures and hash points are words. The forger receives the public key,
signs words on channel false and hashes words on channel true, with digests encoded by
digestEncoding, and finally outputs a message and a signature. Signing, hashing and the final
verification share one lazily sampled random oracle. The forger wins when the signature verifies
and the message was never asked to be signed; repeated signing requests are allowed. This is
eufCmaGame for a forger given as a native program with private randomness
(exists_eufCmaGame_savedCoinForger).
The SUF-CMA game of a native word forger in the random-oracle model. It has the same
execution and shared random oracle as wordEufCmaGame, but the candidate wins exactly when it
verifies and its complete (message, signature) pair was never returned by the signing oracle.
Thus a different valid signature on a previously signed message can win, while exact replay
cannot. This is the native-program form of the existing typed sufCmaGame.
Existential unforgeability under adaptive chosen-message attack in the random-oracle
model (EUF-CMA) of a family of word-interface schemes: every uniform oracle-PPT word forger, run
on the unary security parameter and the public key, wins wordEufCmaGame with negligible
probability. The digest type, its encoding and the scheme may depend on the security parameter.
This is the random oracle version of [BS23], Attack Game 13.1 and Definition 13.2
(pp. 529–530), formed as in Section 8.10.2 (p. 328) and used for full domain hash in Section 13.3
(p. 535): the challenger and the forger share one random function from words to Digest n,
sampled lazily, and every word is a message. Neither ROMSignature.Scheme nor digestEncoding
carries an efficiency or correctness requirement, where Definition 13.1 (pp. 528–529) asks for
efficient algorithms whose signatures verify.
Strong existential unforgeability under adaptive chosen-message attack in the random-oracle
model (SUF-CMA) of a family of word-interface schemes. The fresh-pair condition and negligible
success requirement are [BonehShoup2023, Attack Game 13.2 and Definition 13.3, p. 530]; this
definition specializes them to the shared classical random function described in
[BonehShoup2023, Section 8.10.2, pp. 327–329], implemented here by one lazy oracle state. Every
uniform oracle-PPT word forger wins
wordSufCmaGame with negligible probability. The digest type, its encoding and the scheme may
depend on the security parameter. Only the forger carries an efficiency requirement:
neither ROMSignature.Scheme nor digestEncoding certifies efficient key generation, signing,
verification or digest encoding, so this is an unforgeability property of a supplied scheme family
rather than a complete efficient-scheme package. Unlike [BonehShoup2023, Definition 13.1,
pp. 528–529], it also does not bundle correctness or finite message and signature spaces: public
keys, messages, signatures and query points are arbitrary-length words. Callers must establish
correctness and nonvacuity separately. In particular, an always-rejecting scheme can satisfy this
predicate vacuously. This is not a QROM notion.
EUF-CMA security gives negligible forgery probability for every oracle-PPT word forger.
Establish EUF-CMA security by bounding every oracle-PPT word forger's success probability.
SUF-CMA security gives negligible fresh-pair forgery probability for every oracle-PPT word forger.
Establish SUF-CMA security by bounding every oracle-PPT word forger's success probability.
A native word forger wins EUF-CMA with probability at most its SUF-CMA probability. Both games use the identical key law, forger execution, signing transcript, and shared random-oracle cache; only the final freshness test changes.
Native ROM SUF-CMA security implies native ROM EUF-CMA security for the same scheme family.
Saved-coin replay #
Input (1ⁿ, pk, tape) of a saved-coin replay (savedWordReplay): the security parameter n
in unary, then the public key and the saved coin tape as bit words. The parameter and the public
key are framed.
Guard the public input, truncate the saved tape, and decode the output, with the original external channels supplied explicitly. Malformed output uses the existing total pair decoder.
The complete guarded, truncated, decoded replay is strict oracle-PPT in its full input, including the security parameter, public key, and arbitrary saved tape.
The raw calls of a native word forger: a channel bit and a request word, answered by a word.
Every guarded replay is the replay with raw calls, interpreted by its channel calls.
A guarded replay whose channel calls each make at most one call makes at most
savedCoinBudget calls, for every public key and every saved tape.
Use the existing total pair decoder after native replay. Oversized keys make no calls; all coin tapes, including overlong ones outside the sampling support, are truncated before replay.
The efficient native guarded replay is exactly the typed fixed-coin forger after channel routing, including the oversized-key branch and total decoding of arbitrary output words.
The fixed-coin forger has uniform signing and hash budgets for every key and every tape.
An actual uniform native forger has a key-independent saved-coin adapter. The key-size guard
is a polynomial bound keyC * (n + 1) ^ keyD on the supported public keys, which a strict-PPT key
generator supplies through IsPPTOn.length_le. Equality retains the complete state of every
typed signing/hash handler; in particular the handler's own randomness is not pre-sampled here.
The native private-random word forger and its explicit-coin adapter give exactly the same
EUF-CMA game: wordEufCmaGame of the forger is eufCmaGame of the adapter. Signing, hash queries,
and final verification share one memoized world; freshness excludes only signing the final message,
so repeated signing queries are allowed. One native replay machine and clock work for every digest
type and encoding, which may therefore vary with the security parameter.
The supported public keys need only a polynomial length bound keyC * (n + 1) ^ keyD.
This bridge does not assert unforgeability or a discrete-log reduction.
The native private-random word forger and its explicit-coin adapter give exactly the same
SUF-CMA game: wordSufCmaGame of the forger is sufCmaGame of the adapter. Signing, hash queries,
and final verification share one memoized world; freshness excludes the complete returned
message-signature pairs, so a different valid signature on a signed message may win while exact
replay cannot. The signing and hash call bounds remain separate components of CallBounded.
One replay machine and clock work for every digest type and encoding, which may vary with the
security parameter. This bridge asserts neither SUF-CMA security nor a reduction to an ML-DSA
assumption.