Documentation

CslibFrontier.Crypto.Computational.TrapdoorFunction.RSA

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 #

Main results #

Implementation notes #

References #

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.