C++  client/server Diffie Hellman implementation