Tree signatures: from pseudorandom to random coins #
The first step of the security proof of stateless tree signatures ([BS23],
Section 14.6.3, proof of Theorem 14.6, "we first replace the PRF F with a random function").
The tree scheme over an indexed scheme S at parameter n draws its node coins from a
pseudorandom function F keyed at N n bits (prfCoins F). The EUF-CMA game against it
(treeGame, the typed eufCmaExperiment of the certificate-free treeScheme, which has the law of
eufCmaGame of TreeSignature.scheme) is compared with the same game where the coins come from a
uniform random function on N n bits (treeIdealGame).
The coin adversary treeCoinAdversary runs the forger inside coinRealGame and coinIdealGame:
it derives the root key and every node key and signature by
coin requests, so under the real coin oracle it plays treeGame and under the ideal one
treeIdealGame, exactly (eval_coinRealGame_treeCoinAdversary,
eval_coinIdealGame_treeCoinAdversary). Its parameter is the PRF's, N n, so it recovers n
with an inverse inv of N and plays nothing at parameters outside the range of N. Pairing n
with any polynomial-time budget (coinParam) supplies an injective schedule N strictly above the
budget together with a polynomial-time bounded-search left inverse (coinParamInv).
Main definitions #
Cslib.Crypto.TreeSignature.treeScheme: the typed tree scheme atnwith a coin function and a key distribution, without certificates.Cslib.Crypto.TreeSignature.treeGame,Cslib.Crypto.TreeSignature.treeGameWith,Cslib.Crypto.TreeSignature.tableCoins,Cslib.Crypto.TreeSignature.treeIdealGame: the forging experiments with pseudorandom and random coins.Cslib.Crypto.TreeSignature.coinRequest,Cslib.Crypto.TreeSignature.nodeKeyO,Cslib.Crypto.TreeSignature.signAtO,Cslib.Crypto.TreeSignature.certifyO,Cslib.Crypto.TreeSignature.signO,Cslib.Crypto.TreeSignature.simulateTreeGame,Cslib.Crypto.TreeSignature.treeCoinAdversary: the tree algorithms with coins from an oracle, and the coin adversary.Cslib.Crypto.TreeSignature.coinParam,Cslib.Crypto.TreeSignature.coinParamInv: injective polynomial-time PRF parameter schedule strictly above a given budget, and its bounded-search left inverse.
Main results #
Cslib.Crypto.TreeSignature.eufCmaGame_scheme: the scheme's game has the law oftreeGame.Cslib.Crypto.TreeSignature.evalDet_simulateTreeGame: with deterministic coins (evalDet), the simulated game is the tree game under any secret (treeGameWith), which depends on the coins at that secret only (treeGameWith_congr).Cslib.Crypto.TreeSignature.eval_coinRealGame_treeCoinAdversary,Cslib.Crypto.TreeSignature.eval_coinIdealGame_treeCoinAdversary: the exact simulation.Cslib.Crypto.TreeSignature.succProbability_treeGame_le,Cslib.Crypto.TreeSignature.succProbability_treeGame_le_prf: the hybrid bound by the coin-game and PRF advantages atN n.Cslib.Crypto.TreeSignature.isOraclePPT_treeCoinAdversary: the coin adversary is strict oracle PPT, built fromisOraclePPTOn_certifyO,isOraclePPTOn_signO,isOraclePPTOn_simulateTreeGame, and the output boundssavedCoinBudgetandsigBound.Cslib.Crypto.TreeSignature.exists_negligible_treeGame_le,Cslib.Crypto.TreeSignature.exists_negligible_treeGame_coinParam_le: for a pseudorandom function, the forging probability with pseudorandom coins exceeds that with random coins by a negligible function.
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Section 14.6.3.
The forging games #
The tree algorithms with the coin function coins at parameter n, keys drawn from keys
and verification restricted to n-bit messages: the typed scheme of TreeSignature.scheme at
n, stated without certificates so that random coins may be substituted.
The tree game samples the secret and plays treeGameWith.
The scheme's EUF-CMA game is treeGame.
The tree game with coins from a uniform random function on N n bits.
The tree algorithms with coins from an oracle #
Request L coins for x from the coin oracle, keeping at most L bits.
The key pair of node path, from requested coins.
The signature of msg at index u by node path holding sk, from requested coins.
One step of the chain along leaf: the next bit is the one after the current path.
Certify the path to the parent of leaf, a leaf of depth depth n.
Sign msg: when msg has length n, sample a uniform leaf, certify the chain to its parent,
and sign msg there; otherwise return [].
The signing handler of the simulated game: sign through the coin oracle and log the message.
The tree game at parameter n, played against the coin oracle.
The coin adversary: at the PRF's parameter M, recover n with inv and simulate the tree
game there; outside the range of N, output false.
Exact simulation with deterministic coins #
The law of an oracle program whose coin requests are answered by the deterministic function
c on request words, with fresh private coins.
With deterministic coins, the oracle signer is the signer of the tree scheme under any secret
key word (n, k): the coins do not depend on k.
With deterministic coins, the simulated game is the tree game under any secret k.
The tree game depends on the coins at the secret only #
The tree game under a secret depends on the coins at that secret only.
Since tableCoins ignores the secret key, treeGame with tableCoins has the same law as
treeGameWith at [] for any key-length schedule.
The coin games of the coin adversary #
Evaluating against a stateless deterministic coin oracle is evalDet.
Real coins: the coin adversary in the real coin game at N n plays the tree game with
coins prfCoins family.
Random coins: the coin adversary in the ideal coin game at N n plays the tree game with
coins from a uniform random function on N n bits.
The hybrid bound #
From pseudorandom to random coins: the forging probability against the tree scheme with
coins from family is at most the forging probability with coins from a random function, plus the
coin-game advantage of treeCoinAdversary at the PRF's parameter N n.
From pseudorandom to random coins, in PRF advantage: the hybrid loss equals the PRF
distinguishing advantage of coinDistinguisher (treeCoinAdversary …) at N n.
The coin-game advantage of the coin adversary, read at N n, is negligible in n for a
pseudorandom function and n ≤ N n, provided that the coin adversary is oracle-PPT (hB).
This is an algebraic helper: exists_negligible_treeGame_le discharges hB with
isOraclePPT_treeCoinAdversary.
Efficiency of the coin adversary #
A coin request with efficiently computed request and count is strict oracle PPT.
Deriving a node key is strict oracle PPT.
Deriving a node signature is strict oracle PPT.
Polynomial bounds on derived keys and signatures #
A bound on a derived signature by a node whose secret key has length at most K, at an index
at most 1, on a message of length at most L.
A reply to a coin request has at most the requested length.
Both components of a derived node key are bounded by savedCoinBudget.
A derived signature is bounded by sigBound.
Certifying the chain to a leaf's parent is uniformly strict oracle PPT in (n, leaf).
The oracle signer is uniformly strict oracle PPT in (n, msg).
The simulated tree game is uniformly strict oracle PPT in the unary parameter for every oracle-PPT forger.
The coin adversary is uniformly strict oracle PPT: the seeded algorithms' certificates supply the polynomial bounds.
Injective parameter schedule above any coin budget #
The hybrid, with a negligible error #
Pseudorandom coins may be replaced by random coins: for a pseudorandom function, an
oracle-PPT forger, polynomial-time depth, N with n ≤ N n and a polynomial-time left
inverse inv of N, the forging probability against the tree scheme with coins prfCoins family
exceeds the forging probability with random coins by a negligible function.
Pseudorandom coins at coinParam budget: for any polynomial-time unary budget,
instantiating the PRF parameter at coinParam budget replaces prfCoins family with random
function coins up to a negligible error, with no separate left-inverse hypothesis.