fixed key size to work with Java 11
@@ -102,7 +102,7 @@ public KeyPair generateKeyPair()
try
{
KeyPairGenerator keyPairGenerator = crypto.getHelper().createKeyPairGenerator("X25519");
- keyPairGenerator.initialize(256, crypto.getSecureRandom());
+ keyPairGenerator.initialize(255, crypto.getSecureRandom());
return keyPairGenerator.generateKeyPair();
}
catch (GeneralSecurityException e)
