Inaccessible average max-entropy from any one-way function #
Given any uniform OneWay function f, output-length normalization
(OneWay.exists_fixedOutputLength) produces a one-way function g sending n-bit inputs to
m(n)-bit outputs. Following [HHRVW2020], Section 4.2, Theorem 4.5 (pp. 21–25), we combine g
with the constructible 3-wise independent Boolean affine hash family affineHash on m(n)-bit
strings (isThreeWiseIndependentHash_affineHash) and a dyadic (Nat.log 2 n + 1)-bit prefix
index r truncated at min r n:
$$F_0(x, A, b, r) = \bigl(A, b, r, \mathrm{zeroPadPrefix}\;n\;r\;(A\,g(x) + b)\bigr).$$
Parameterizing the light-sibling set by a polynomial threshold exponent c : ℕ,
$$\widetilde{L}_c(y_0, r) = \{y_0\} \cup \{y \mid 4 (n + 1)^c |g^{-1}(y)| \le 2^{n - \min(r, n)}\},$$
establishes [HHRVW2020], Theorem 4.5 against uniform strict-PPT adversaries (with an
adversary-independent accessible-set family for each c, stronger than Definition 3.9's
adversary-dependent quantifier):
- Claim 4.6 (
rompelBase_escape_le_mul_inversion, pp. 21–22): sampling a prefix-colliding affine seed viaadjustAffineSeed(toReal_map_adjustAffineSeed_eq) turns any adversaryAinto a uniform strict-PPTg-inverter (rompelBaseInverter) whose inversion success is at least1 / (4 * (n + 1) ^ c)ofA's escape probability outsideL_{0, c}. - Claim 4.8 (
rompelBase_heavy_sibling_prob_ge, p. 23): forgFin x ≠ gFin x*with|gFin⁻¹(gFin x)| ≤ |gFin⁻¹(gFin x*)| ≤ 2^(n - r),3-wise independence and Markov's inequality show that uniform resampling fromF₀⁻¹(F₀(x, s, r))hits(x*, s, r)with probability at least2^(-n) / 8. - Claim 4.7 (
rompelBase_accessible_le_conditionalEntropy_sub, pp. 21, 23–25): Markov's inequality oncollisionProbabilitybounds heavy fibers|gFin⁻¹(gFin x*)| ≥ 2^(n - c⌊log₂ n⌋), and for every remaining distinct-image pair with|gFin⁻¹(gFin x)| ≤ |gFin⁻¹(gFin x*)|, allc * Nat.log 2 n + 1truncation lengthsr_j = n - (Nat.log 2 |gFin⁻¹(gFin x*)| + 1 + j)simultaneously satisfy Claim 4.8 and excludegFin x*fromrompelLightImages c, yielding a gap of at least(c * Nat.log 2 n + 1) / (64 * (n + 1))(recovering1 / (64 * (n + 1))atc = 0). - Theorem 4.5 (
OneWay.rompelBase_logGap, p. 21): for aOneWayfunctiongwith fixed output lengthm(n), the single uniform polynomial-time function familyrompelBaseEvalWord g outLenachieves an eventuald * Real.logb 2 n / nentropy gap for every constantd > 0.OneWay.rompelFamilypackages each threshold exponentcas anInaccessibleEntropyFamilywith integer denominatorrompelGapDenom c n = 64 * (n + 1) / (c * Nat.log 2 n + 1) + 1.OneWay.exists_rompelBase_logGapandOneWay.exists_inaccessibleEntropyFamilyapply this to an arbitraryOneWayfunction, after normalizing its output length.
F₀ differs from the source's $F(x, g, i) = (g(f(x))_{1, \dots, i}, g, i)$ on
$\{0,1\}^n \times G \times [n]$ in three ways:
- The hash family.
affineHashfromm(n)tonbits is one of the constructible3-wise independent families that Theorem 4.5 allows, but its seed hasn * m(n) + nbits. The input width isrompelBaseInLen n m = n + (n * m + n) + (Nat.log 2 n + 1), which isΘ(n * m(n))and soΘ(n ^ 2)even for length-preservingg. The source'sO(n)width, which its Theorem 5.2 (p. 26) uses, needs a3-wise independent family withO(n)-bit descriptions. - The prefix length. It is
min r nfor a uniform(Nat.log 2 n + 1)-bit numberr, so it ranges over{0, …, n}with extra mass atn, instead of being uniform on[n]. - The one-way function. The source takes a length-preserving
f. Hereghas any fixed output lengthm(n), andOneWay.exists_fixedOutputLengthpads an arbitraryOneWayfunction to such ag.
Main definitions #
Cslib.Crypto.rompelTruncWidth,Cslib.Crypto.rompelSeedWidth,Cslib.Crypto.rompelBaseInLen,Cslib.Crypto.rompelBaseOutLen,Cslib.Crypto.rompelGapDenom: bit-width and gap-denominator schedules of $F_0$.Cslib.Crypto.RompelBaseInput,Cslib.Crypto.RompelBaseOutput: structured finite views of $F_0$'s inputs and outputs, with bit-string equivalencesrompelBaseInputEquivandrompelBaseOutputEquiv.Cslib.Crypto.rompelBaseHashFin,Cslib.Crypto.rompelBaseEvalWord: finite and word-level evaluators of $F_0$.Cslib.Crypto.rompelLightImages,Cslib.Crypto.rompelAccessibleInputSet,Cslib.Crypto.rompelAccessibleSet: polynomial-threshold light-sibling sets and accessible preimage sets $L_{0, c}$.Cslib.Crypto.rompelBaseInverter: uniform strict-PPT OWF inverter reduction from $F_0$ escape.
Main results #
Cslib.Crypto.computableInPolyTime_rompelBaseEvalWord: plain polynomial-time certificate forrompelBaseEvalWord.Cslib.Crypto.isPPT_rompelBaseInverter: plain uniform strict-PPT certificate forrompelBaseInverter.Cslib.Crypto.rompelBase_escape_le_mul_inversion: Claim 4.6 ([HHRVW2020], pp. 21–22).Cslib.Crypto.rompelBase_heavy_sibling_prob_ge: Claim 4.8 ([HHRVW2020], p. 23).Cslib.Crypto.rompelBase_accessible_le_conditionalEntropy_sub: Claim 4.7 ([HHRVW2020], pp. 21, 23–25).Cslib.Crypto.OneWay.rompelBase_logGap: Theorem 4.5 ([HHRVW2020], p. 21) forF₀, with the deviations above: one fixed base family achieving eventual gapd * Real.logb 2 n / nfor everyd > 0.Cslib.Crypto.OneWay.exists_rompelBase_logGap,Cslib.Crypto.OneWay.exists_inaccessibleEntropyFamily: the same family from an arbitraryOneWayfunction, and anInaccessibleEntropyFamilyfrom it.
References #
Bit-width schedule and structured input/output views #
Bit width $\lfloor \log_2 n \rfloor + 1$ of the truncation-length field in $F_0$, large enough
to represent every $r \in \{0, \dots, n\}$ injectively (n < 2 ^ rompelTruncWidth n).
Affine seed bit width $n m + n$ for hashing $m$-bit images to $n$-bit digests.
Total input bit width $n + (n m + n) + (\lfloor \log_2 n \rfloor + 1)$ of $F_0$.
Total output bit width $(n m + n) + (\lfloor \log_2 n \rfloor + 1) + n$ of $F_0$.
Integer entropy-gap denominator
$\lfloor 64 (n + 1) / (c \lfloor \log_2 n \rfloor + 1) \rfloor + 1$ at polynomial light-image
threshold exponent c.
Structured input (preimage, hashRows, hashShift, truncBits) to [HHRVW2020]'s base function
$F_0$ (Section 4.2, Theorem 4.5, p. 21).
- preimage : BitString n
Uniform
n-bit input $x$ to the normalized one-way function $g$. Matrix rows of the Boolean affine hash
BitString m → BitString n.- hashShift : BitString n
Shift vector of the Boolean affine hash $h_{A, b}$.
- truncBits : BitString (rompelTruncWidth n)
(Nat.log 2 n + 1)-bit word encoding the saturating prefix length $r \le n$.
Instances For
Saturating prefix length $r = \min(n, \mathrm{binaryValue}(\mathrm{truncBits})) \le n$.
Pack a RompelBaseInput n m into a word of length rompelBaseInLen n m.
Unpack a word into a RompelBaseInput n m.
Exact bit-string equivalence between RompelBaseInput n m and
BitString (rompelBaseInLen n m).
Structured output (hashRows, hashShift, truncBits, prefixDigest) of [HHRVW2020]'s base
function $F_0$ (Section 4.2, Theorem 4.5, p. 21).
Matrix rows of the Boolean affine hash $h_{A, b}$.
- hashShift : BitString n
Shift vector of the Boolean affine hash $h_{A, b}$.
- truncBits : BitString (rompelTruncWidth n)
(Nat.log 2 n + 1)-bit word encoding the saturating prefix length $r$. - prefixDigest : BitString n
Zero-padded
r-bit prefix of $h_{A, b}(g(x))$.
Instances For
Pack a RompelBaseOutput n m into a word of length rompelBaseOutLen n m.
Unpack a word into a RompelBaseOutput n m.
Exact bit-string equivalence between RompelBaseOutput n m and
BitString (rompelBaseOutLen n m).
Finite and word-level evaluators of $F_0$ #
Finite evaluator $F_0(x, A, b, r) = (A, b, r, \mathrm{zeroPadPrefix}\;n\;r\;(A\,g(x) + b))$
([HHRVW2020], Section 4.2, Theorem 4.5, p. 21).
On packed inputs, rompelBaseEvalWord computes rompelBaseHashFin exactly.
Plain polynomial-time certificate for rompelBaseEvalWord.
Accessible preimage sets $L_{0, c}$ and the OWF inverter reduction (Claim 4.6) #
Light sibling images
$\widetilde{L}_c(y_0, r) = \{y_0\} \cup \{y \mid 4 (n + 1)^c |g^{-1}(y)| \le 2^{n - \min(r, n)}\}$
with polynomial threshold exponent c ([HHRVW2020], Section 4.2, Theorem 4.5, p. 21; setting
c = 0 recovers the constant threshold $2^{n - \min(r, n)} / 4$).
Accessible preimage set
$L_{0, c}(z) = \{z' \in F_0^{-1}(F_0(z)) \mid g(x') \in \widetilde{L}_c(g(x), r)\}$ on
RompelBaseInput n m ([HHRVW2020], Section 4.2, Theorem 4.5, p. 21).
Uniform strict-PPT inverter reduction ([HHRVW2020], Section 4.2, Claim 4.6, pp. 21–22):
on challenge image y, sample uniform x and rBits, sample a prefix-colliding affine seed via
wordAdjustAffineSeed, run A on x ++ seed ++ rBits, and output the n-bit prefix.
Plain uniform strict-PPT certificate for rompelBaseInverter.
[HHRVW2020], Section 4.2, Claim 4.6 (pp. 21–22): for any fixed-output-length function g
((g w).length = outLen n on n-bit inputs), any polynomial light-image threshold exponent c,
and any adversary A, escaping rompelAccessibleSet c with a fixed-width colliding preimage occurs
with probability at most 4 * (n + 1) ^ c times the inversion success of
rompelBaseInverter g outLen A.
Sibling isolation via 3-wise independence (Claim 4.8) and the entropy gap (Claim 4.7) #
[HHRVW2020], Section 4.2, Claim 4.8 (p. 23): for distinct images gFin x ≠ gFin xStar
with #(fiberSet gFin (gFin x)) ≤ #(fiberSet gFin (gFin xStar)) ≤ 2 ^ (n - r) (r ≤ n),
uniformly sampling an affine seed s and then a uniform preimage from the F₀-fiber of
(x, s, rBits) (at truncation index r) yields (xStar, s, rBits) with probability at least
((2 : ℝ) ^ n)⁻¹ / 8.
[HHRVW2020], Section 4.2, Claim 4.7 (pp. 21, 23–25): unconditional finite-n lower bound
on the entropy gap between PMF.conditionalEntropy of rompelBaseHashFin gFin and
accessibleSetExpectation (rompelAccessibleInputSet c gFin).
Bit-string transport of rompelBase_accessibleInput_le_conditionalEntropy_sub ([HHRVW2020],
Section 4.2, Claim 4.7, pp. 21, 23–25): when c * Nat.log 2 n ≤ n and the weighted output collision
probability (4 * 2 ^ (c * Nat.log 2 n) - 3) * collisionProbability of g on n-bit inputs is at
most 1 / 2, the entropy gap on BitString (rompelBaseInLen n (outLen n)) is at least
(c * Nat.log 2 n + 1) / (64 * (n + 1)).
Theorem 4.5: logarithmic entropy gap from any one-way function #
Construct an InaccessibleEntropyFamily at polynomial light-image threshold exponent c from
any fixed-output-length OneWay function g. Note that inLen, outLen, and evalWord are
independent of c.
[HHRVW2020], Section 4.2, Theorem 4.5 (p. 21) for the concrete family
rompelBaseEvalWord g outLen. Take a uniform OneWay function g with output length
outLen n on n-bit inputs, a constant d > 0, and the light-image threshold exponent
c = Nat.ceil (256 * d) + 1. The accessible-set family rompelAccessibleSet c g outLen then has
average max-entropy eventually at most conditionalEntropy - d * Real.logb 2 n / n, and every
uniform strict-PPT adversary escapes it with negligible probability.
The function differs from the source's $F(x, g, i) = (g(f(x))_{1, \dots, i}, g, i)$ in three ways:
- The hash is the affine family
affineHashwith ann * outLen n + n-bit seed, so the input width isrompelBaseInLen n (outLen n) = n + (n * outLen n + n) + (Nat.log 2 n + 1). The source instead gets anO(n)width, using a family withO(n)-bit descriptions (Theorem 5.2, p. 26). - The prefix length is
min r nfor a uniform(Nat.log 2 n + 1)-bitr, instead of uniformi ∈ [n]. ghas a fixed output lengthoutLen nrather than being length-preserving.
OneWay.rompelBase_logGap applied to an arbitrary uniform OneWay function f, after
OneWay.exists_fixedOutputLength normalizes its output length. The result is a single uniform
polynomial-time fixed-width function family (inLen, outLen, evalWord). For every constant
d > 0, it has a family of fiber-contained accessible preimage sets with an eventual
d * Real.logb 2 n / n entropy gap against all uniform strict-PPT adversaries.
The conclusion does not bound the input width inLen n, so its gap, stated in the security
parameter n, is not the quantitative content of Theorem 4.5. That content is
OneWay.rompelBase_logGap, whose statement names the width
n + (n * m(n) + n) + (Nat.log 2 n + 1) for the normalized output length m(n). That length is
internal to OneWay.exists_fixedOutputLength, so this statement cannot name the width.
Every uniform OneWay function yields a uniform polynomial-time InaccessibleEntropyFamily:
OneWay.rompelFamily for its fixed-output-length normalization.