Fix algorithm name for key generator
@@ -95,7 +95,7 @@ public KeyPair generateKeyPair()
{
try
{
- KeyPairGenerator keyPairGenerator = crypto.getHelper().createKeyPairGenerator("EC");
+ KeyPairGenerator keyPairGenerator = crypto.getHelper().createKeyPairGenerator("DH");
keyPairGenerator.initialize(getParameters(dhConfig), crypto.getSecureRandom());
return keyPairGenerator.generateKeyPair();
}
