From 8721269d0f2e7345829a8849e523c95901551735 Mon Sep 17 00:00:00 2001 From: Jeroen van Erp Date: Fri, 16 Nov 2018 10:07:21 +0100 Subject: [PATCH] Added EdDSA as first signature factory (Fixed #470) --- src/main/java/net/schmizz/sshj/DefaultConfig.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/schmizz/sshj/DefaultConfig.java b/src/main/java/net/schmizz/sshj/DefaultConfig.java index 5586f8f7f..fe310ccdd 100644 --- a/src/main/java/net/schmizz/sshj/DefaultConfig.java +++ b/src/main/java/net/schmizz/sshj/DefaultConfig.java @@ -107,7 +107,8 @@ public void setLoggerFactory(LoggerFactory loggerFactory) { protected void initKeyExchangeFactories(boolean bouncyCastleRegistered) { if (bouncyCastleRegistered) { - setKeyExchangeFactories(new Curve25519SHA256.Factory(), + setKeyExchangeFactories( + new Curve25519SHA256.Factory(), new DHGexSHA256.Factory(), new ECDHNistP.Factory521(), new ECDHNistP.Factory384(), @@ -209,12 +210,12 @@ protected void initCipherFactories() { protected void initSignatureFactories() { setSignatureFactories( + new SignatureEdDSA.Factory(), new SignatureECDSA.Factory256(), new SignatureECDSA.Factory384(), new SignatureECDSA.Factory521(), new SignatureRSA.Factory(), - new SignatureDSA.Factory(), - new SignatureEdDSA.Factory() + new SignatureDSA.Factory() ); }