1 / 4

Diffie-Hellman Key-Exchange Algorithm

Diffie-Hellman Key-Exchange Algorithm. Alice and Bob agree on a large prime, n and g, such that g is primitive mod n. These two integers don’t have to be secret; Alice and Bob can agree to them over some insecure channel. They can even be common among a group of users.

Download Presentation

Diffie-Hellman Key-Exchange Algorithm

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Diffie-HellmanKey-Exchange Algorithm • Alice and Bob agree on a large prime, n and g, such that g is primitive mod n. • These two integers don’t have to be secret; Alice and Bob can agree to them over some insecure channel. • They can even be common among a group of users. Applied Cryptography, Second Edition: Protocols, Algorthms, and Source Code in C (cloth), Bruce Schneier

  2. A primitive element in a group is an element whose powers exhaust the entire group. • Thus 3 is primitive in the group of units mod 7 as • 1=3^6, 2=3^2, 3=3^1, 4=3^4, 5=3^5, and 6=3^3, • but 2 is not primitive in this group as there is no exponent e such that 3=2^e (mod 7). More commonly we say that 3 is primitive mod 7 but 2 is not. http://www.math.umbc.edu/~campbell/NumbThy/Class/Glossary.html

  3. The protocol goes as follows: • Alice chooses a random large integer x and sends Bob X = g^x mod n • Bob chooses a random large integer y and sends Alice Y = g^y mod n • Alice computes k = Y^x mod n • Bob computes k´ = X^y mod n • Both k and k´ are equal to g^xy mod n. • No one listening on the channel can compute that value; they only know n, g, X, and Y. • Unless they can compute the discrete logarithm and recover x or y, they do not solve the problem. • k is the secret key that both Alice and Bob computed independently. Applied Cryptography, Second Edition: Protocols, Algorthms, and Source Code in C, Bruce Schneier

  4. Diffie-Hellman g n Eve ALICE BOB x y

More Related