|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.maverick.sshd.components.SshKeyExchangeServer
com.maverick.sshd.components.jce.DiffieHellmanGroup1Sha1JCE
public class DiffieHellmanGroup1Sha1JCE
Implementation of the required SSH Transport Protocol key exchange method "diffie-hellman-group1-sha1".
| Field Summary | |
|---|---|
static String |
DIFFIE_HELLMAN_GROUP1_SHA1
Constant for the algorithm name "diffie-hellman-group1-sha1". |
| Fields inherited from class com.maverick.sshd.components.SshKeyExchangeServer |
|---|
clientId, clientKexInit, exchangeHash, firstPacketFollows, hostKey, prvkey, pubkey, secret, serverId, serverKexInit, signature, transport, useFirstPacket |
| Constructor Summary | |
|---|---|
DiffieHellmanGroup1Sha1JCE()
Construct an uninitialized instance. |
|
| Method Summary | |
|---|---|
protected void |
calculateExchangeHash()
Calculates the exchange hash as an SHA1 hash of the following data. |
String |
getAlgorithm()
Get the algorithm name for this key exchange |
String |
getProvider()
|
void |
init(TransportProtocol transport,
String clientIdentification,
String serverIdentification,
byte[] clientKexInit,
byte[] serverKexInit,
com.maverick.ssh.components.SshPrivateKey prvkey,
com.maverick.ssh.components.SshPublicKey pubkey,
boolean firstPacketFollows,
boolean useFirstPacket)
|
boolean |
processMessage(byte[] msg)
|
| Methods inherited from class com.maverick.sshd.components.SshKeyExchangeServer |
|---|
getExchangeHash, getHostKey, getSecret, getSignature, hasReceivedNewKeys, hasSentNewKeys, reset, setReceivedNewKeys, setSentNewKeys |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DIFFIE_HELLMAN_GROUP1_SHA1
| Constructor Detail |
|---|
public DiffieHellmanGroup1Sha1JCE()
| Method Detail |
|---|
public String getAlgorithm()
getAlgorithm in class SshKeyExchangeServer
public void init(TransportProtocol transport,
String clientIdentification,
String serverIdentification,
byte[] clientKexInit,
byte[] serverKexInit,
com.maverick.ssh.components.SshPrivateKey prvkey,
com.maverick.ssh.components.SshPublicKey pubkey,
boolean firstPacketFollows,
boolean useFirstPacket)
throws IOException
init in class SshKeyExchangeServerIOExceptionpublic String getProvider()
getProvider in interface com.maverick.ssh.components.jce.AbstractKeyExchange
public boolean processMessage(byte[] msg)
throws com.maverick.ssh.SshException,
IOException
processMessage in class SshKeyExchangeServercom.maverick.ssh.SshException
IOException
protected void calculateExchangeHash()
throws com.maverick.ssh.SshException
Calculates the exchange hash as an SHA1 hash of the following data.
String the client's version string (CR and NL excluded) String the server's version string (CR and NL excluded) String the payload of the client's SSH_MSG_KEXINIT String the payload of the server's SSH_MSG_KEXINIT String the host key BigInteger e, exchange value sent by the client BigInteger f, exchange value sent by the server BigInteger K, the shared secret
IOException
com.maverick.ssh.SshException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||