180 likes | 765 Views
Diffie – Hellman key exchange. - Ramya Deepa Palle CS-555. Introduction. Discovered by Whitfield Diffie and Martin Hellman “New Directions in Cryptography”. Need ?????. Diffie –Hellman key exchange ( D–H ) is a specific method of exchanging Cryptographic key. Concept used:.
E N D
Diffie–Hellman key exchange -RamyaDeepaPalle CS-555
Introduction • Discovered by Whitfield Diffie and Martin Hellman • “New Directions in Cryptography”
Need ????? • Diffie–Hellman key exchange (D–H)is a specific method of exchangingCryptographic key.
Concept used: • Its easy to mix 2 colors to make a third color. • Given a mixed color its hard to reverse it in order to find the exact original colors.
http://www.youtube.com/watch?v=YEBfamv-_do Reference:
Alice & Bob • Agree on 2 numbers n and g • g is primitive relative mod (n) • For each x < n, there is an a such that ga = x mod (n) • These do not have to kept secret
Alice and Bob separately Alice: • Chooses a large random number x • Calculates X = gxmod (n) • Sends X, g, and n to Bob. Bob: • Chooses a large random number y • Calculates Y = gymod (n) • Sends Y toAlice.
Calculation • Alice:Calculates k = Yxmod (n) • Bob:Calculates k’ = Xymod (n)
Final Key • k’ = k is the shared key k = Yxmod (n) = (gy )xmod (n) = gyxmod (n) k’ = Xymod (n) = (gx )ymod (n) = gxymod (n) • Nobody can calculate k given n, g, X, and Y
References: • http://www.youtube.com/watch?v=YEBfamv-_do • http://en.wikipedia.org/wiki/Diffie–Hellman_key_exchange