Target collision-resistant hashing from inaccessible entropy and one-way functions #
Completing the construction of universal one-way hash families (target collision-resistant hash
families) from arbitrary one-way functions ([Rompel1990]; [Shoup2000]; [HHRVW2020],
Section 5.1, Theorem 5.1, STEPS 4–5, Lemmas 5.6 and 5.7, pp. 29–32):
- Target shift (
rompelShiftedStep;[HHRVW2020], Section 5.1.4, Lemma 5.6, pp. 29–30, and Section 5.1.5, STEP 4, p. 31): given aShrinkingCollisionGridGwhosegridCount ncandidates compressG.inLen n = G.outLen n + G.shrinkLen nbits toG.outLen nbits (withG.shrinkLen n = Nat.log 2 n + 1on the canonical gridAdversaryInaccessibleEntropyFamily.exists_shrinkingCollisionGrid_log), shifting the input of candidateqby aG.inLen n-bit key maskyviaw ↦ G.evalGrid n q (listXor (G.inLen n) [w, y])converts random-input collision resistance atq = goodIdx ninto keyed target collision resistance onG.inLen n-bit inputs. - Shoup
O(|y| log t)XOR-masking cascade and candidate concatenation (rompelCandidateEval,rompelCompressionEval,rompelCompression,rompelKeyLen_le;[Shoup2000];[HHRVW2020], Section 5.1.4, Lemma 5.7, p. 30, and Section 5.1.5, STEP 5(ii–iii), p. 32): instantiatingShoupComposition.shoupComposeEvalwithrompelShiftedStepoverrompelCascadeSteps G n = ⌈(2 * G.gridCount n - 1) * G.outLen n / G.shrinkLen n⌉steps compresses2 * rompelBlockLen G nbits toG.outLen nbits for eachq < G.gridCount n, and concatenating allG.gridCount ncandidate outputs produces a halvingKeyedCompressionFamily(rompelCompression G) with block widthrompelBlockLen G n = G.gridCount n * G.outLen n.- Key length (
rompelKeyLen_le): the shared keyK = y ++ maskshas bit-lengthrompelKeyLen G n = G.inLen n + (Nat.log 2 (rompelCascadeSteps G n) + 1) * G.outLen n ≤ (Nat.log 2 (rompelCascadeSteps G n) + 2) * G.inLen n, matching[HHRVW2020]Lemma 5.7'sO(|y| log t)bound directly onrompelCompression G. - Shared key across candidates vs.
[HHRVW2020]STEP 5(iii): sharing one Shoup keyK = (y, M₀, …, M_d)across allG.gridCount ncandidate rows suffices for every security, PPT, key-length, and domain-extension claim in the library because for each strict PPT adversaryadv,G.exists_good_candidatesupplies one indexgoodIdx n, sorompelCompressionInverter G advonly needs faithful key simulation atgoodIdx n. SharingKachieves the same multiplicative reduction lossdyadicSize (G.gridCount n) * dyadicSize (rompelCascadeSteps G n)withG.gridCount n-times shorter keys than per-candidate keys.
- Key length (
- Modular reduction via
ShoupComposition(rompelCompressionInverter,succProbability_targetCollisionGame_rompelCompression_le,ShrinkingCollisionGrid.targetCollisionResistant_rompelCompression): projectingrompelCompressionEvalonto rowqStar(listRow_rompelCompressionEval) reduces collisions onrompelCompression GtorompelCandidateEval G · qStar, wheresuccProbability_targetCollisionGame_shoupCompose_lereducesrompelCascadeSteps G nsteps to a single call torompelShiftedStep G · qStarwith lossdyadicSize (rompelCascadeSteps G n). GuessingqGuessviasampleDyadicIndex (G.gridCount n)and XOR-shifting the uniform challengezWordagainstshoupComposeChoose's targetw₀(yStar := zWord ⊕ w₀) completes Lemma 5.6's 1-step reduction torandomCollisionGamewith total lossdyadicSize (G.gridCount n) * dyadicSize (rompelCascadeSteps G n)and zero additive error. - Domain extension to
List Bool(rompelHash,ShrinkingCollisionGrid.targetCollisionResistant_rompelHash,AdversaryInaccessibleEntropyFamily.exists_targetCollisionResistantHash,OneWay.exists_targetCollisionResistant_keyedHashFamily): composingrompelCompression GwithKeyedCompressionFamily.treeHash(uowhfTreeHash) yields an unrestricted computational target collision-resistantKeyedHashFamilyonList Boolfrom any uniformOneWayfunction, establishing the qualitative polynomial-time target collision-resistance part of[HHRVW2020]Theorem 5.1 (with dense two-universal matrices inEntropyReductionand(n + 1)-leveltreeHashinrompelHash).
Main definitions #
Cslib.Crypto.rompelShiftedStep: XOR-maskedG.shrinkLen n-bit shrinking candidate step (Lemma 5.6, STEP 4).Cslib.Crypto.rompelCascadeSteps,Cslib.Crypto.rompelBlockLen,Cslib.Crypto.rompelKeyLen: step, block, and sharedO(|y| log t)key-length schedules forrompelCompression.Cslib.Crypto.rompelCandidateEval,Cslib.Crypto.rompelCascadeInput: Shoup XOR-maskedG.shrinkLen n-bit shrinking cascade and step-icompression-input extractor ([Shoup2000];[HHRVW2020], Lemma 5.7, STEP 5(ii)).Cslib.Crypto.rompelCompressionEval,Cslib.Crypto.rompelCompression:gridCount n-way concatenated2 * rompelBlockLen G n → rompelBlockLen G nKeyedCompressionFamily(adapting STEP 5(iii) with shared Shoup key).Cslib.Crypto.rompelCompressionInverter: uniform strict-PPT reduction from target collisions ofrompelCompression GtorandomCollisionGameonG, built fromshoupComposeChooseandshoupComposeFindWith.Cslib.Crypto.rompelHash: unrestrictedKeyedHashFamily(rompelCompression G).treeHash.
Main results #
Cslib.Crypto.rompelKeyLen_le,Cslib.Crypto.ShrinkingCollisionGrid.rompelCompression_keyLen_le: explicitO(|y| log t)key-length bound(Nat.log 2 (rompelCascadeSteps G n) + 2) * G.inLen nforrompelCompression G.Cslib.Crypto.exists_rompelCascadeInput_collision: deterministic extraction of a step collision1 ≤ i ≤ rompelCascadeSteps G nfrom any2 * rompelBlockLen G n-bit collision of candidateq.Cslib.Crypto.isPPT_rompelCompressionInverter: uniform strict-PPT certificate forrompelCompressionInverter.Cslib.Crypto.succProbability_targetCollisionGame_rompelCompression_le: concrete security bound againstrandomCollisionGameat any candidateqStar < G.gridCount n.Cslib.Crypto.ShrinkingCollisionGrid.targetCollisionResistant_rompelCompression,Cslib.Crypto.ShrinkingCollisionGrid.targetCollisionResistant_rompelHash: target collision resistance ofrompelCompression GandrompelHash G.Cslib.Crypto.AdversaryInaccessibleEntropyFamily.exists_shrinkingCollisionGrid_rompelCompression,Cslib.Crypto.OneWay.exists_shrinkingCollisionGrid_rompelCompression: end-to-end compression theorems preservingG.shrinkLen n = Nat.log 2 n + 1andrompelCompression_keyLen_le.Cslib.Crypto.AdversaryInaccessibleEntropyFamily.exists_targetCollisionResistantCompression,Cslib.Crypto.AdversaryInaccessibleEntropyFamily.exists_targetCollisionResistantHash,Cslib.Crypto.OneWay.exists_targetCollisionResistant_keyedCompressionFamily,Cslib.Crypto.OneWay.exists_targetCollisionResistant_keyedHashFamily: qualitative Theorem 5.1 existence endpoints from Definition 3.9 and fromOneWay.
References #
- I. Haitner, T. Holenstein, O. Reingold, S. Vadhan, H. Wee, Inaccessible Entropy II: IE Functions and Universal One-Way Hashing, Sections 5.1.4–5.1.5, Theorem 5.1, Lemmas 5.6–5.7, pp. 29–32
- V. Shoup, A Composition Theorem for Universal One-Way Hash Functions, EUROCRYPT 2000, LNCS 1807, pp. 445–452
- J. Rompel, One-Way Functions are Necessary and Sufficient for Secure Signatures
Schedules and XOR-shifted G.shrinkLen n-bit shrinking step (Lemma 5.6, STEP 4) #
Number of G.shrinkLen n-bit cascade steps ((2 * G.gridCount n - 1) * G.outLen n + G.shrinkLen n - 1) / G.shrinkLen n used by each candidate in rompelCompression G
([HHRVW2020], Section 5.1.5, STEP 5(ii), p. 32).
Output (and half-input) block width G.gridCount n * G.outLen n of rompelCompression G
([HHRVW2020], Section 5.1.5, STEP 5(iii), p. 32).
Shared Shoup O(|y| log t) key bit-length
G.inLen n + (Nat.log 2 (rompelCascadeSteps G n) + 1) * G.outLen n of rompelCompression G
([Shoup2000]; [HHRVW2020], Section 5.1.4, Lemma 5.7, p. 30).
[HHRVW2020] Lemma 5.7 O(|y| log t) key-length bound:
rompelKeyLen G n ≤ (Nat.log 2 (rompelCascadeSteps G n) + 2) * G.inLen n.
XOR-shifted G.shrinkLen n-bit shrinking step ([HHRVW2020], Section 5.1.4, Lemma 5.6,
pp. 29–30; Section 5.1.5, STEP 4, p. 31): masks w by y at width G.inLen n and evaluates
candidate q of G (G.outLen n + G.shrinkLen n = G.inLen n).
Shoup O(|y| log t) XOR-masking cascade and step-collision extraction (Lemma 5.7) #
Candidate-q 2 * rompelBlockLen G n → G.outLen n Shoup XOR-masking cascade evaluator under
compact key K (y := BitString.listRow (G.inLen n) 0 K, masks := K.drop (G.inLen n)).
Step-i (1 ≤ i ≤ rompelCascadeSteps G n) G.inLen n-bit input fed to
rompelShiftedStep G n q (BitString.listRow (G.inLen n) 0 K) during
rompelCandidateEval G n q K x.
Deterministic step-collision extraction ([Shoup2000], [HHRVW2020], Section 5.1.4,
Lemma 5.7, p. 30): if two distinct 2 * rompelBlockLen G n-bit inputs x₀ ≠ x₁ collide under
rompelCandidateEval G n q K, there exists a step 1 ≤ i ≤ rompelCascadeSteps G n where their
G.inLen n-bit step inputs rompelCascadeInput G n q i K are distinct yet collide under
rompelShiftedStep G n q (BitString.listRow (G.inLen n) 0 K).
gridCount n-way candidate concatenation (adapting [HHRVW2020], STEP 5(iii), p. 32) #
gridCount n-way concatenated compression evaluator (adapting [HHRVW2020], Section 5.1.5,
STEP 5(iii), p. 32): evaluates rompelCandidateEval G n q K x for every 0 ≤ q < G.gridCount n
under the shared key sequence K and concatenates the G.outLen n-bit digests into a
rompelBlockLen G n-bit block.
Rompel / HHRVW halving KeyedCompressionFamily (adapting [Shoup2000];
[HHRVW2020], Section 5.1.5, STEP 4 and STEP 5(ii–iii), pp. 31–32): compresses
2 * rompelBlockLen G n-bit blocks to rompelBlockLen G n-bit blocks under shared
O(|y| log t) Shoup XOR-masking keys (rompelKeyLen G n).
[HHRVW2020] Lemma 5.7 O(|y| log t) key-length bound directly on
(rompelCompression G).keyLen.
Modular reduction via ShoupComposition to randomCollisionGame #
Planted-subkey reduction to randomCollisionGame ([Shoup2000]; [HHRVW2020],
Section 5.1.4, Lemmas 5.6–5.7, pp. 29–30; Section 5.1.5, STEPS 4–5, pp. 31–32): samples a dyadic
candidate guess qGuess, runs shoupComposeChoose to obtain the planted G.inLen n-bit step
target choice.1 and encoded Shoup state choice.2, shifts the challenge zWord to form
yStar = listXor (G.inLen n) [zWord, choice.1], runs shoupComposeFindWith on
rompelShiftedStep G n q at key yStar, and unmasks the returned step input via w₁ ⊕ yStar.
rompelCompressionInverter G adversary is uniformly strict PPT whenever adversary is
strict PPT.
Concrete security bound for rompelCompression G: at every candidate index
qStar < G.gridCount n, the target-collision success probability of adversary against
rompelCompression G is at most dyadicSize (G.gridCount n) * dyadicSize (rompelCascadeSteps G n)
times the random-collision success probability of rompelCompressionInverter G adversary against
candidate qStar.
Adapting [HHRVW2020], Section 5.1.5, STEP 4 and STEP 5(ii–iii) (pp. 31–32): for any
ShrinkingCollisionGrid G, rompelCompression G is a target collision-resistant
KeyedCompressionFamily.
Unrestricted KeyedHashFamily and OneWay UOWHF endpoints #
Rompel / HHRVW unrestricted KeyedHashFamily ([Rompel1990]; [HHRVW2020],
Section 5.1, Theorem 5.1, p. 26): hashes arbitrary-length bit strings List Bool to
rompelBlockLen G n-bit digests via (rompelCompression G).treeHash (inheriting uowhfTreeHash's
(n + 1)-level binary tree and < 2 ^ n finite-parameter tree capacity).
rompelHash G is unrestrictedly target collision-resistant on all List Bool.
End-to-end target collision-resistant compression from Definition 3.9
(AdversaryInaccessibleEntropyFamily) preserving both the (Nat.log 2 n + 1)-bit candidate
shrinkage of exists_shrinkingCollisionGrid_log and Lemma 5.7's O(|y| log t) shared-key bound
rompelCompression_keyLen_le.
End-to-end target collision-resistant compression from any uniform OneWay function,
preserving both (Nat.log 2 n + 1)-bit candidate shrinkage and Lemma 5.7's O(|y| log t)
shared-key bound rompelCompression_keyLen_le.
Qualitative polynomial-time target collision-resistant compression from Definition 3.9
([HHRVW2020], Section 5.1, Theorem 5.1, p. 26): every AdversaryInaccessibleEntropyFamily yields
a target collision-resistant KeyedCompressionFamily. EntropyReduction uses dense two-universal
matrices rather than Toeplitz hashing; see exists_shrinkingCollisionGrid_rompelCompression and
rompelCompression_keyLen_le for the Lemma 5.7 O(|y| log t) key-length bound.
Qualitative polynomial-time target collision-resistant hashing from Definition 3.9
([HHRVW2020], Section 5.1, Theorem 5.1, p. 26): every AdversaryInaccessibleEntropyFamily yields
an unrestricted target collision-resistant KeyedHashFamily on List Bool via the (n + 1)-level
KeyedCompressionFamily.treeHash wrapper (EntropyReduction uses dense two-universal matrices;
see rompelCompression_keyLen_le for the Lemma 5.7 compression key bound).
Qualitative polynomial-time target collision-resistant compression from OneWay
([HHRVW2020], Section 5.1, Theorem 5.1, p. 26): every uniform OneWay function yields a target
collision-resistant KeyedCompressionFamily (EntropyReduction uses dense two-universal matrices;
see OneWay.exists_shrinkingCollisionGrid_rompelCompression and rompelCompression_keyLen_le for
the Lemma 5.7 O(|y| log t) key-length bound).
Rompel–HHRVW universal one-way hash theorem ([Rompel1990]; [HHRVW2020],
Section 5.1, Theorem 5.1, p. 26, qualitative polynomial-time scope): every uniform OneWay
function implies the existence of an unrestricted target collision-resistant KeyedHashFamily on
List Bool (EntropyReduction uses dense two-universal matrices and rompelHash uses the
(n + 1)-level KeyedCompressionFamily.treeHash; see rompelCompression_keyLen_le for the
Lemma 5.7 O(|y| log t) compression key bound).