From 936eb26e9e5fa220990ffeb3a4109d8e4b519ec9 Mon Sep 17 00:00:00 2001 From: "David A. Solin" Date: Fri, 6 Jan 2017 12:58:04 -0600 Subject: [PATCH] Reference the EdDSANamedCurveTable constant instead of its value, for forward-compatibility with the ed25519-java project on Github. See: https://github.com/str4d/ed25519-java/commit/abdee146c302e2e26976519de8b6413079960171 --- src/main/java/net/schmizz/sshj/common/KeyType.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/schmizz/sshj/common/KeyType.java b/src/main/java/net/schmizz/sshj/common/KeyType.java index 7d6f62fc0..a49b6cfe0 100644 --- a/src/main/java/net/schmizz/sshj/common/KeyType.java +++ b/src/main/java/net/schmizz/sshj/common/KeyType.java @@ -192,7 +192,7 @@ public PublicKey readPubKeyFromBuffer(Buffer buf) throws GeneralSecurityExcep ); } - EdDSANamedCurveSpec ed25519 = EdDSANamedCurveTable.getByName("ed25519-sha-512"); + EdDSANamedCurveSpec ed25519 = EdDSANamedCurveTable.getByName(EdDSANamedCurveTable.CURVE_ED25519_SHA512); EdDSAPublicKeySpec publicSpec = new EdDSAPublicKeySpec(p, ed25519); return new Ed25519PublicKey(publicSpec);