Generate DH paramters using a randomly generated public key.