From 9a5ccefb5d8bb96b71daa18270f0725ef0089065 Mon Sep 17 00:00:00 2001 From: Jeroen van Erp Date: Tue, 19 Jul 2016 11:22:13 +0200 Subject: [PATCH] Removed dependency on net.i2p.crypto.eddsa.math classes (Fixes #255) --- src/main/java/net/schmizz/sshj/common/KeyType.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/net/schmizz/sshj/common/KeyType.java b/src/main/java/net/schmizz/sshj/common/KeyType.java index d35fc6c59..4dcc97eda 100644 --- a/src/main/java/net/schmizz/sshj/common/KeyType.java +++ b/src/main/java/net/schmizz/sshj/common/KeyType.java @@ -18,7 +18,6 @@ import com.hierynomus.sshj.secg.SecgUtils; import com.hierynomus.sshj.signature.Ed25519PublicKey; import net.i2p.crypto.eddsa.EdDSAPublicKey; -import net.i2p.crypto.eddsa.math.GroupElement; import net.i2p.crypto.eddsa.spec.EdDSANamedCurveSpec; import net.i2p.crypto.eddsa.spec.EdDSANamedCurveTable; import net.i2p.crypto.eddsa.spec.EdDSAPublicKeySpec; @@ -191,8 +190,7 @@ public PublicKey readPubKeyFromBuffer(String type, Buffer buf) throws General } EdDSANamedCurveSpec ed25519 = EdDSANamedCurveTable.getByName("ed25519-sha-512"); - GroupElement point = ed25519.getCurve().createPoint(p, true); - EdDSAPublicKeySpec publicSpec = new EdDSAPublicKeySpec(point, ed25519); + EdDSAPublicKeySpec publicSpec = new EdDSAPublicKeySpec(p, ed25519); return new Ed25519PublicKey(publicSpec); } catch (Buffer.BufferException be) {