Difficulty for Eavesdropper : The protocol is considered secure against eavesdroppers if
p and
g are chosen properly. In particular,
p must be large. The eavesdropper has to solve the Discrete Logarithm problem to obtain
a and b from ga (mod p) and gb (mod p) respectively. This is currently considered difficult for large
p. An efficient algorithm to solve the discrete logarithm problem would make it easy to compute
a or
b and solve the Diffie–Hellman problem, making this and many other public key cryptosystems insecure.