Skip to content

Commit

Permalink
Merge pull request #294 from joval/master
Browse files Browse the repository at this point in the history
Reference the EdDSANamedCurveTable constant instead of its value...
  • Loading branch information
hierynomus committed Jan 9, 2017
2 parents 9826a71 + 936eb26 commit 48dd1fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/schmizz/sshj/common/KeyType.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 48dd1fd

Please sign in to comment.