Diffie-Hellman Key Exchange

1 - Diffie-Hellman on prime field

Alice Bob
Public share
\(\mathbb F_p, p=\) \(g=\)
Secret
Secret \(a=\) Secret \(b=\)
\(x=g^a \mod p=\) \(y=g^b \ mod p=\)
Shared secret
\(k=g^{ab} \mod p = \)

2 - Diffie-Hellman on elliptic curve

Alice Bob
Public share
Elliptic curve\(y^2 = x^3+x+7\) and \(\mathbb F_p, p=83\) Generator \(G(0, 16)\)
Secret
Secret \(a=\) Secret \(b=\)
\(A=aG=\) \(B=bG=\)
Shared secret
\(K= abG = \)