OpenSSL: tidy DH and ECDH param setup