Round out the Diffie-Hellman implementation.