public class DiffieHellmanEcdh extends SshKeyExchangeServer implements SshKeyExchange<SshServerContext>
Modifier and Type | Field and Description |
---|---|
static int |
SSH_MSG_KEX_ECDH_INIT |
static int |
SSH_MSG_KEX_ECDH_REPLY |
exchangeHash, firstPacketFollows, hostKey, prvkey, pubkey, secret, signature, transport, useFirstPacket
Modifier | Constructor and Description |
---|---|
protected |
DiffieHellmanEcdh(String name,
String curve,
String hashAlgorithm) |
Modifier and Type | Method and Description |
---|---|
protected void |
calculateExchangeHash() |
String |
getAlgorithm()
Get the key exchange algorithm name.
|
void |
init(TransportProtocol<SshServerContext> transport,
String clientId,
String serverId,
byte[] clientKexInit,
byte[] serverKexInit,
SshPrivateKey prvkey,
SshPublicKey pubkey,
boolean firstPacketFollows,
boolean useFirstPacket) |
boolean |
processMessage(byte[] msg)
Process a key exchange message
|
getExchangeHash, getHashAlgorithm, getHostKey, getSecret, getSignature, hasReceivedNewKeys, hasSentNewKeys, reset, setReceivedNewKeys, setSentNewKeys, test
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExchangeHash, getHashAlgorithm, getSecret, hasReceivedNewKeys, hasSentNewKeys, setReceivedNewKeys, setSentNewKeys, test
public static final int SSH_MSG_KEX_ECDH_INIT
public static final int SSH_MSG_KEX_ECDH_REPLY
public String getAlgorithm()
SshKeyExchangeServer
getAlgorithm
in interface SshKeyExchange<SshServerContext>
getAlgorithm
in class SshKeyExchangeServer
protected void calculateExchangeHash() throws SshException
SshException
public void init(TransportProtocol<SshServerContext> transport, String clientId, String serverId, byte[] clientKexInit, byte[] serverKexInit, SshPrivateKey prvkey, SshPublicKey pubkey, boolean firstPacketFollows, boolean useFirstPacket) throws IOException
init
in interface SshKeyExchange<SshServerContext>
IOException
public boolean processMessage(byte[] msg) throws SshException, IOException
SshKeyExchangeServer
processMessage
in interface SshKeyExchange<SshServerContext>
processMessage
in class SshKeyExchangeServer
SshException
IOException
Copyright © 2016. All rights reserved.