Accessible-entropy reduction and 1-bit shrinking output hashing #
Following [HHRVW2020], Sections 5.1.2–5.1.3 (Lemmas 5.4 and 5.5, pp. 27–29), this module
transforms a function $F_1 : \{0, 1\}^{n_1} \to \{0, 1\}^{m_1}$ whose real sample entropy exceeds
$K_{\min}$ except on a small bad set, and whose accessible set $L_1(z)$ has $\log_2 |L_1(z)| < A_{\max}$ except on a small bad set, into a strictly $1$-bit shrinking function
$F_3^{(j)} : \{0, 1\}^{N_3} \to \{0, 1\}^{N_3 - 1}$ ($1 \le n_1$) that is collision-resistant on
random inputs whenever $A_{\max} \ll j \ll K_{\min}$:
- Input-hash entropy reduction $F_2^{(j)}$ (
inputHashFin,inputHashEvalWord, Lemma 5.4, pp. 27–28): using a fixed-width $n_1 \times n_1$ Boolean matrixinRowsso that the input widthinputHashInLen n₁ = n₁ + n₁ * n₁and output widthinputHashOutLen n₁ m₁ = m₁ + n₁ * n₁ + n₁are independent of the truncation parameter $j$, define $$F_2^{(j)}(z, \mathrm{inRows}) = \bigl(F_1(z),\; \mathrm{inRows},\; \mathrm{zeroPadPrefix}\;n_1\;j\;(\mathrm{hash}\;\mathrm{inRows}\;z)\bigr).$$ ByLinearHash.isTwoUniversal_prefixandIsTwoUniversal.collision_with_set_le, any input $z$ has probability at most $|L_1(z)| / 2^{\min(j, n_1)}$ overinRowsof colliding under $F_2^{(j)}$ with a distinct $z' \in L_1(z)$ (inputHashFin_accessible_collision_le). Meanwhile, partitioning inputs around{z | realSampleEntropy f₁ z ≤ K_min}bounds the total image size $|F_2^{(j)}(\{0, 1\}^{n_2})|$ directly (card_image_inputHashFin_le, Equation (5.6), p. 29). - Output-hash
s-bit shrinkage $F_3^{(j)}$ (shrunkHashFin,shrunkHashEvalWord, Lemma 5.5, Equations (5.6)–(5.7), p. 29): hashing $F_2^{(j)}(w)$ tooutHashLen n₁ s = inputHashInLen n₁ - sbits via a public Boolean matrixoutRowsyieldsshrunkHashInLen n₁ m₁ s = shrunkHashOutLen n₁ m₁ s + swhenevers ≤ inputHashInLen n₁(shrunkHashOutLen_add_shrink), whileLinearHash.isTwoUniversalbounds false-positive output-hash collisions (shrunkHashFin_false_positive_le, Equation (5.7), p. 29). - Random-input collision-to-escape reduction (
randomCollisionGame,shrunkHashEscapeInverter,isPPT_shrunkHashEscapeInverter,shrunkHash_randomCollision_le): padding a challenge $z$ with uniform(inRows, outRows)— via a uniform strict-PPT reduction independent of $j$ — reduces random-input collisions of $F_3^{(j)}$ to escaping $L_1$ plus the two concentration tails and two universal-hash error terms (with output-hash factor $2^{s(n)}$).
Main definitions #
Cslib.Crypto.inputHashInLen,Cslib.Crypto.inputHashOutLen,Cslib.Crypto.outHashLen,Cslib.Crypto.shrunkHashInLen,Cslib.Crypto.shrunkHashOutLen: bit-width schedule of $F_2^{(j)}$ and $F_3^{(j)}$.Cslib.Crypto.InputHashedInput,Cslib.Crypto.InputHashedOutput,Cslib.Crypto.ShrunkHashInput,Cslib.Crypto.ShrunkHashOutput: structured finite inputs/outputs with bit-string equivalences.Cslib.Crypto.inputHashFin,Cslib.Crypto.inputHashEvalWord: finite and word-level evaluators of $F_2^{(j)}$.Cslib.Crypto.shrunkHashFin,Cslib.Crypto.shrunkHashEvalWord: finite and word-level evaluators of $F_3^{(j)}$.Cslib.Crypto.randomCollisionGame: security experiment for collision resistance on random inputs.Cslib.Crypto.shrunkHashEscapeInverter: uniform strict-PPT reduction from $F_3^{(j)}$ collisions to $F_1$ accessible escape.
Main results #
Cslib.Crypto.inputHashFin_accessible_collision_le: Lemma 5.4 accessible-collision bound.Cslib.Crypto.card_image_inputHashFin_le: Equation (5.6) image-cardinality bound for $F_2^{(j)}$.Cslib.Crypto.shrunkHashOutLen_add_shrink: exacts-bit shrinkage whens ≤ inputHashInLen n₁.Cslib.Crypto.shrunkHashFin_false_positive_le: Equation (5.7) false-positive bound for $F_3^{(j)}$.Cslib.Crypto.computableInPolyTime_shrunkHashEvalWord: plain polynomial-time certificate forshrunkHashEvalWord.Cslib.Crypto.isPPT_shrunkHashEscapeInverter: plain uniform strict-PPT certificate forshrunkHashEscapeInverter.Cslib.Crypto.shrunkHash_randomCollision_le: combined concrete random-input collision bound for Lemmas 5.4 and 5.5.
References #
Bit-width schedule and structured views for $F_2^{(j)}$ and $F_3^{(j)}$ #
Input bit width $n_2 = n_1 + n_1^2$ of $F_2^{(j)}$, independent of $j$.
Output bit width $m_2 = m_1 + n_1^2 + n_1$ of $F_2^{(j)}$, independent of $j$.
Digest bit width $n_2 - s$ of the output hash in $F_3^{(j)}$.
Input bit width $N_3 = n_2 + (n_2 - s) m_2$ of $F_3^{(j)}$.
Output bit width $M_3 = (n_2 - s) m_2 + (n_2 - s)$ of $F_3^{(j)}$.
When s ≤ inputHashInLen n₁, $F_3^{(j)}$ shrinks its input by s bits.
Structured input (base, inRows) to $F_2^{(j)}$ ([HHRVW2020], Section 5.1.2, Lemma 5.4,
pp. 27–28).
- base : BitString n₁
Base $n_1$-bit input $z$ to $F_1$.
Public $n_1 \times n_1$ Boolean matrix rows of the two-universal input hash.
Instances For
Pack an InputHashedInput n₁ into a word of length inputHashInLen n₁.
Unpack a word into an InputHashedInput n₁.
Exact bit-string equivalence between InputHashedInput n₁ and
BitString (inputHashInLen n₁).
Structured output (baseOut, inRows, inDigest) of $F_2^{(j)}$ ([HHRVW2020], Section 5.1.2,
Lemma 5.4, pp. 27–28).
Pack an InputHashedOutput n₁ m₁ into a word of length inputHashOutLen n₁ m₁.
Unpack a word into an InputHashedOutput n₁ m₁.
Exact bit-string equivalence between InputHashedOutput n₁ m₁ and
BitString (inputHashOutLen n₁ m₁).
Structured input (inner, outRows) to $F_3^{(j)}$ ([HHRVW2020], Section 5.1.3, Lemma 5.5,
p. 29).
- inner : InputHashedInput n₁
Input $(z, \mathrm{inRows})$ to $F_2^{(j)}$.
Public $(n_2 - s) \times m_2$ Boolean matrix rows of the output hash.
Instances For
Pack a ShrunkHashInput n₁ m₁ s into a word of length shrunkHashInLen n₁ m₁ s.
Unpack a word into a ShrunkHashInput n₁ m₁ s.
Structured output (outRows, outDigest) of $F_3^{(j)}$ ([HHRVW2020], Section 5.1.3,
Lemma 5.5, p. 29).
Public $(n_2 - s) \times m_2$ Boolean matrix rows of the output hash.
- outDigest : BitString (outHashLen n₁ s)
$(n_2 - s)$-bit two-universal digest of $F_2^{(j)}(\mathrm{inner})$.
Pack a ShrunkHashOutput n₁ m₁ s into a word of length shrunkHashOutLen n₁ m₁ s.
Unpack a word into a ShrunkHashOutput n₁ m₁ s.
Step 2: Input-hash entropy reduction $F_2^{(j)}$ (Lemma 5.4 and Equation (5.6)) #
Finite evaluator $F_2^{(j)}(z, \mathrm{inRows}) = (F_1(z), \mathrm{inRows}, \mathrm{zeroPadPrefix}\;n_1\;j\;(\mathrm{hash}\;\mathrm{inRows}\;z))$ ([HHRVW2020], Section 5.1.2,
Lemma 5.4, pp. 27–28).
[HHRVW2020], Section 5.1.2, Lemma 5.4(ii) (p. 28): by two-universality of matrix prefixes
(LinearHash.isTwoUniversal_prefix), the probability over inRows that some distinct
$z' \in L$ collides with $z$ under inputHashFin f₁ j is at most $|L| / 2^{\min(j, n_1)}$.
[HHRVW2020], Section 5.1.3, Lemma 5.5, Equation (5.6) (p. 29): partitioning inputs around
{z | realSampleEntropy f₁ z ≤ K} bounds the image cardinality of inputHashFin f₁ j by
$(\Pr[H_z \le K] + 2^{\min(j, n_1) - K}) \cdot 2^{n_2}$.
Step 3: Output-hash s-bit shrinkage $F_3^{(j)}$ (Lemma 5.5 and Equation (5.7)) #
Finite evaluator $F_3^{(j)}(w, \mathrm{outRows}) = (\mathrm{outRows}, \mathrm{hash}\;\mathrm{outRows}\;(\mathrm{enc}(F_2^{(j)}(w))))$ with s-bit shrinkage
(outHashLen n₁ s = inputHashInLen n₁ - s; [HHRVW2020], Section 5.1.3, Lemma 5.5, p. 29).
[HHRVW2020], Section 5.1.3, Lemma 5.5, Equation (5.7) (p. 29): for every fixed input $w$,
the probability over outRows that some $w'$ with $F_2^{(j)}(w') \ne F_2^{(j)}(w)$ collides with
$w$ under shrunkHashFin f₁ j s is at most
$|F_2^{(j)}(\{0, 1\}^{n_2})| / 2^{\mathrm{outHashLen}\;n_1\;s}$.
Word-level evaluators and polynomial-time certificates #
Plain polynomial-time certificate for inputHashEvalWord.
Plain polynomial-time certificate for shrunkHashEvalWord.
Random-input collision game and combined reduction to $L_1$-escape #
Security experiment for collision resistance on random inputs ([HHRVW2020], Section 3.1,
p. 13, and Section 5.1.3, Lemma 5.5, p. 29): draw a uniform (inLen n)-bit input xWord, run A,
and accept when A returns a distinct (inLen n)-bit input with the same evalWord n image.
Uniform strict-PPT reduction from random-input collisions of $F_3^{(j)}$ to $F_1$ accessible
escape ([HHRVW2020], Lemmas 5.4(ii) and 5.5, pp. 28–29). Note that the reduction does not
depend on the grid truncation length $j$: it pads the $n_1$-bit challenge zWord with uniform
(inSeed, outSeed), runs A, and extracts the $n_1$-bit prefix.
Plain uniform strict-PPT certificate for shrunkHashEscapeInverter.
Combined concrete bound for [HHRVW2020], Sections 5.1.2–5.1.3, Lemmas 5.4 and 5.5
(pp. 27–29): when s n ≤ inputHashInLen (n₁ n), random-input collision success on
shrunkHashEvalWord at truncation parameter j n and shrinkage s n is bounded by the
$L_1$-escape probability of shrunkHashEscapeInverter plus the two concentration tails
(A_max ≤ log₂ |L₁(z)| and realSampleEntropy f₁ z ≤ K_min) and the two universal-hash error
terms 2 ^ (A_max - min (j n) (n₁ n)) and 2 ^ (s n) * 2 ^ (min (j n) (n₁ n) - K_min).