Converse reduction from unit RSA to full RSA (Exercises 10.25–10.26) #
In [BS23], §10.11 (printed p. 431), Exercises 10.25 and 10.26 ask for the converse of
Theorem 10.5: when the modulus N = p * q is the product of two distinct ℓ-bit primes
(ℓ ≤ p.size and ℓ ≤ q.size), uniform residues in ZMod N and uniform units in (ZMod N)ˣ
have statistical distance strictly less than 4 / 2 ^ ℓ (which equals 2 ^ -(ℓ - 2) for ℓ ≥ 2).
Here dist_uniformOfFintype_zmod_units_lt derives < 4 / 2 ^ ℓ from the exact non-unit fraction
Cslib.Crypto.dist_uniformOfFintype_zmod_units and Cslib.Crypto.sub_totient_div_lt. The book's
Exercise 10.26 inequality names an adversary B that it does not introduce; here the full-RSA
inverter A itself runs in rsaUnitInversionGame (so no new reduction is defined), giving
RSAadv[A] ≤ uRSAadv[A] + 4 / 2 ^ ℓ.
Main results #
Cslib.Crypto.dist_uniformOfFintype_zmod_units_lt: Exercise 10.25 — for distinct primesp ≠ qwithℓ ≤ p.sizeandℓ ≤ q.size,PMF.uniformOfFintype (ZMod (p * q))and(PMF.uniformOfFintype (ZMod (p * q))ˣ).map Units.valhave statistical distance strictly less than4 / 2 ^ ℓ.Cslib.Crypto.succProbability_rsaInversionGame_le_of_nonUnitFrac_le: per-parameter bound in terms of an upper boundδon the non-unit fraction(N - φ(N)) / Nacross(gen n).support.Cslib.Crypto.succProbability_rsaInversionGame_le_of_size: Exercise 10.26 — concrete converse bound runningAin both games (no new reduction) with loss4 / 2 ^ ℓwhen every key in(gen n).supporthasℓ ≤ p.sizeandℓ ≤ q.size.Cslib.Crypto.RSAUnitOneWay.rsaOneWay_of_nonUnitFrac_le: asymptotic converse when the non-unit fraction is bounded by a negligible function on(gen n).support.Cslib.Crypto.RSAUnitOneWay.rsaOneWay: asymptotic converseRSAUnitOneWay gen → RSAOneWay genwhenn ≤ desc.p.size ∧ n ≤ desc.q.sizeeventually holds on(gen n).support.Cslib.Crypto.rsaOneWay_iff_rsaUnitOneWay: equivalenceRSAOneWay gen ↔ RSAUnitOneWay genundern ≤ desc.p.size ∧ n ≤ desc.q.sizeeventually on(gen n).support.
References #
- [BS23] §10.11, p. 431, Exercises 10.25–10.26.
Boneh–Shoup Exercise 10.25 (§10.11, printed p. 431): for distinct primes p ≠ q with
ℓ ≤ p.size and ℓ ≤ q.size, uniform residues modulo p * q and uniform units in
(ZMod (p * q))ˣ have statistical distance strictly less than 4 / 2 ^ ℓ (2 ^ -(ℓ - 2) for
ℓ ≥ 2), reusing dist_uniformOfFintype_zmod_units and sub_totient_div_lt.
Per-parameter converse bound from rsaUnitInversionGame to rsaInversionGame: running the
same inverter A directly in both games (no new reduction is defined), when every key in
(gen n).support has non-unit fraction (N - φ(N)) / N ≤ δ, rsaInversionGame succeeds with
probability at most that of rsaUnitInversionGame plus δ.
Boneh–Shoup Exercise 10.26 (§10.11, printed p. 431): running the same inverter A in both
games (no new reduction is defined), if every key in (gen n).support has primes satisfying
ℓ ≤ p.size and ℓ ≤ q.size, then rsaInversionGame succeeds with probability at most that of
rsaUnitInversionGame plus 4 / 2 ^ ℓ (2 ^ -(ℓ - 2) for ℓ ≥ 2).
Asymptotic converse of Theorem 10.5 (RSAOneWay.rsaUnitOneWay): RSAUnitOneWay gen implies
RSAOneWay gen whenever the non-unit fraction (N - φ(N)) / N on (gen n).support is
eventually bounded by a negligible function δ, running A directly in both games (no new
reduction is defined).
Asymptotic converse of Theorem 10.5 (RSAOneWay.rsaUnitOneWay): RSAUnitOneWay gen implies
RSAOneWay gen whenever n ≤ desc.p.size ∧ n ≤ desc.q.size holds eventually on (gen n).support
(Boneh–Shoup §10.11, Exercise 10.26, p. 431, running A directly in both games).
Under n-bit primes (n ≤ desc.p.size ∧ n ≤ desc.q.size) eventually on (gen n).support,
full-domain RSA one-wayness and unit-domain RSA one-wayness are equivalent.