diff options
author | Kenny Root <kenny@the-b.org> | 2013-04-10 18:43:35 -0700 |
---|---|---|
committer | Kenny Root <kenny@the-b.org> | 2013-04-10 20:14:43 -0700 |
commit | 1e98217978aaccfcf62097266f699acf5b22493e (patch) | |
tree | 6105f3632913e61d836fd047349e67d8f9d55f7a /src/com/trilead/ssh2/packets/PacketKexDHReply.java | |
parent | d36f48b37697e8f7797a9a8435647577675a6a5b (diff) | |
download | connectbot-1e98217978aaccfcf62097266f699acf5b22493e.tar.gz connectbot-1e98217978aaccfcf62097266f699acf5b22493e.tar.bz2 connectbot-1e98217978aaccfcf62097266f699acf5b22493e.zip |
Add ECDH support
Add support for the ECDH methods required by RFC 5656
ecdh-sha2-nistp256
ecdh-sha2-nistp384
ecdh-sha2-nistp521
Diffstat (limited to 'src/com/trilead/ssh2/packets/PacketKexDHReply.java')
-rw-r--r-- | src/com/trilead/ssh2/packets/PacketKexDHReply.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/com/trilead/ssh2/packets/PacketKexDHReply.java b/src/com/trilead/ssh2/packets/PacketKexDHReply.java index 0803ff9..461f262 100644 --- a/src/com/trilead/ssh2/packets/PacketKexDHReply.java +++ b/src/com/trilead/ssh2/packets/PacketKexDHReply.java @@ -2,8 +2,6 @@ package com.trilead.ssh2.packets; import java.io.IOException;
-import java.math.BigInteger;
-
/**
* PacketKexDHReply.
*
@@ -15,7 +13,7 @@ public class PacketKexDHReply byte[] payload;
byte[] hostKey;
- BigInteger f;
+ byte[] publicKey; byte[] signature;
public PacketKexDHReply(byte payload[], int off, int len) throws IOException
@@ -32,15 +30,15 @@ public class PacketKexDHReply + packet_type + ")");
hostKey = tr.readByteString();
- f = tr.readMPINT();
+ publicKey = tr.readByteString(); signature = tr.readByteString();
if (tr.remain() != 0) throw new IOException("PADDING IN SSH_MSG_KEXDH_REPLY!");
}
- public BigInteger getF()
+ public byte[] getF() {
- return f;
+ return publicKey; }
public byte[] getHostKey()
|