Avoid redundant conversion
@@ -114,7 +114,7 @@ public KeyPair generateKeyPair()
try
{
KeyPairGenerator keyPairGenerator = crypto.getHelper().createKeyPairGenerator("DH");
- keyPairGenerator.initialize(getParameters(dhConfig), crypto.getSecureRandom());
+ keyPairGenerator.initialize(dhDomain, crypto.getSecureRandom());
return keyPairGenerator.generateKeyPair();
}
catch (GeneralSecurityException e)
