Diffie-Hellman

9
Diffie-Hellman Secure Key Exchange 1976

description

Secure Key Exchange 1976. Diffie-Hellman. Whitfield Diffie Martin Hellman. 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 g a = x mod (n) These do not have to kept secret. Alice. - PowerPoint PPT Presentation

Transcript of Diffie-Hellman

Page 1: Diffie-Hellman

Diffie-Hellman

Secure Key Exchange

1976

Page 2: Diffie-Hellman

Whitfield Diffie Martin Hellman

Page 3: Diffie-Hellman

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

Page 4: Diffie-Hellman

Alice

• Chooses a large random number x

• CalculatesX = gx mod (n)

• Sends X, g, and n to Bob.

Page 5: Diffie-Hellman

Bob

• Chooses a large random number y

• CalculatesY = gy mod (n)

• Sends Y to Alice.

Page 6: Diffie-Hellman

Alice

• Calculates

k = Yx mod (n)

Page 7: Diffie-Hellman

Bob

• Calculates

k’ = Xy mod (n)

Page 8: Diffie-Hellman

The Key

• k’ = k is the shared key

k = Yx mod (n) = (gy )x mod (n) = gyx mod (n)

k’ = Xy mod (n) = (gx )y mod (n) = gxy mod (n)

• Nobody can calculate k givenn, g, X, and Y

Page 9: Diffie-Hellman

The Key

• Only Alice and Bob know k

• Good for only one session

• Can’t be sure connected to the same person

• Used if you only want a symmetric key

• No authentication