Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2019/ii/paper-4/3g/a/solution

In Diffie-Hellman key exchange, Alice and Bob publicly agree on a cyclic group in which the discrete logarithm problem is believed hard. Alice chooses a secret and sends ; Bob chooses a secret and sends . They independently compute
Thus
is their shared key. A passive eavesdropper sees but is believed unable to compute efficiently; this is the computational Diffie--Hellman assumption. The basic protocol does not authenticate the participants and is therefore vulnerable to a man-in-the-middle attack unless the exchanged values are authenticated.

New to topics? Read the docs here!