Department of Mathematics
Boise State University
Mathematics 124
Fall 2004
Diffie-Helman Key Exchange.
It sometimes happens that unless the parties to a communication do something extra to protect the confidentiality of their communication, the protocol permits others to view their communication. A typical solution to this problem is for the two parties to agree about a method of concealing the contents of their communication by means of a public negotiation. Diffie and Helman proposed a method which can also be used in the context of a given RSA crypto-system. Here is one such approach:
An RSA system with encryption modulus R is given. The parties, A and B, wish to communicate a piece of information M which was digitally signed by a third party, and carries only the third party's digital signature. Anyone with access to that third party's encryption exponent s can view the contents of M by computing M^s mod R. Unfortunately, the communicating parties do not have access to the factorization of R, and thus cannot create their own encryption exponents and corresponding decyption exponents relative to R.
It would of course be possible for them to create their own encryption exponents RA, and RB, larger than R, and to then create key-pairs s and t relative to these, and to publicize these to each other. Another solution (the Diffie-Helman key exchange method) would be to use the existing R as follows:
In the RSA-system, the security of the system is based on the difficulty of the factoring problem. For the Diffie-Hellman system, a different problem's difficulty underlies the security of the system: Given k and R and m, find x so that k^x mod R = m. This is known as the discrete logarithm problem.