The RSA trapdoor permutation scheme and RSA key exchange #
[BS23], Section 10.3 (p. 403), defines the RSA trapdoor permutation scheme T_RSA and
states its one-wayness as the RSA assumption (RSAOneWay, Attack Game 10.3 and Definition 10.5,
pp. 404–405). Section 10.3.1 (p. 405) instantiates the trapdoor-function key-exchange protocol of
Section 10.2.1 with T_RSA and concludes that under the RSA assumption it is key-guessing secure
(KeyExchange.AnonKESecure); combining this with the converse direction from
TrapdoorFunction.keyExchange_anonKESecure_iff_oneWay (original here) yields the equivalence
rsaKeyExchange_anonKESecure_iff_rsaOneWay.
Main definitions #
Cslib.Crypto.rsaTrapdoor: the RSA trapdoor permutation schemeT_RSAwith domain and rangeFin pk.Nat public keypk = (N, e)([BS23], Section 10.3, p. 403).Cslib.Crypto.rsaKeyExchange: anonymous key exchange fromrsaTrapdoor([BS23], Section 10.3.1, p. 405).
Main results #
Cslib.Crypto.oneWay_rsaTrapdoor_iff:rsaTrapdoorisTrapdoorFunction.OneWayif and only ifRSAOneWayholds ([BS23], Section 10.3, pp. 404–405).Cslib.Crypto.rsaKeyExchange_correct:rsaKeyExchange gensatisfiesKeyExchange.Correct([BS23], Section 10.3.1, p. 405).Cslib.Crypto.rsaKeyExchange_anonKESecure_iff_rsaOneWay:rsaKeyExchange gensatisfiesKeyExchange.AnonKESecureif and only ifRSAOneWay genholds (theRSAOneWay → AnonKESecuredirection is [BS23], Section 10.3.1, p. 405; the converse is original here viaTrapdoorFunction.keyExchange_anonKESecure_iff_oneWay).
Implementation notes #
- Key distribution and secret key:
gen : RSAGen(ℕ → PMF RSADesc) is an arbitrary key distribution over valid RSA parameter tuplesRSADesc, in place of Boneh–Shoup's concrete prime-pair generatorRSAGen(ℓ, e)(p. 403); efficient key generation and Definition 10.4 items 1–5 are not bundled (#5657). The secret key is the fullRSADesc, while inversion uses onlydesc.modulusanddesc.d. - Uniform domain
Fin N: BothTrapdoorFunction.owGameatrsaTrapdoorandrsaInversionGamesamplexuniformly fromFin N, matching Boneh–Shoup'sx ← Z_nin Attack Game 10.3 (pp. 404–405).
References #
- D. Boneh, V. Shoup, A Graduate Course in Applied Cryptography, Section 10.3 (pp. 403–405) and Section 10.3.1 (p. 405).
The RSA trapdoor permutation scheme T_RSA ([BS23], Section 10.3, p. 403) for a
distribution gen on RSA parameters: the public key is (N, e), evaluation is x ↦ x ^ e % N
(RSAPublicKey.eval), and trapdoor inversion is y ↦ y ^ d % N (rsaInvert) on residues
Fin N. The secret key is the full RSADesc.
T_RSA satisfies TrapdoorFunction.Correct ([BS23], Section 10.3, p. 404, from
rsaInvert_rsaEval).
T_RSA is a one-way trapdoor function scheme if and only if RSAOneWay holds
([BS23], Section 10.3, Attack Game 10.3 and Definition 10.5, pp. 404–405).
Anonymous key exchange based on the RSA trapdoor permutation scheme ([BS23], Section 10.3.1, p. 405).
Honest executions of rsaKeyExchange output the same residue key for Alice and Bob
([BS23], Section 10.3.1, p. 405).
RSA anonymous key exchange is key-guessing secure if and only if RSAOneWay holds.
[BS23], Section 10.3.1 (p. 405), states the RSAOneWay → AnonKESecure direction (mpr):
"Under the RSA assumption, this is a secure anonymous key exchange protocol." The converse
direction (mp), and hence the equivalence, is original here and follows from the converse of
TrapdoorFunction.keyExchange_anonKESecure_iff_oneWay together with oneWay_rsaTrapdoor_iff.