Skip to content

Commit

Permalink
Added EdDSA as first signature factory (Fixed #470)
Browse files Browse the repository at this point in the history
  • Loading branch information
hierynomus committed Nov 16, 2018
1 parent 971ccf6 commit 8721269
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/net/schmizz/sshj/DefaultConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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()
);
}

Expand Down

0 comments on commit 8721269

Please sign in to comment.