com.sshtools.j2ssh.transport.kex
Class DhGroup1Sha1
java.lang.Object
com.sshtools.j2ssh.transport.kex.SshKeyExchange
com.sshtools.j2ssh.transport.kex.DhGroup1Sha1
public class DhGroup1Sha1
- extends SshKeyExchange
- Version:
- $Revision: 1.1 $
- Author:
- $author$
Field Summary |
private java.lang.String |
clientId
|
private byte[] |
clientKexInit
|
private javax.crypto.KeyAgreement |
dhKeyAgreement
|
private java.security.KeyPairGenerator |
dhKeyPairGen
|
private java.math.BigInteger |
e
|
private java.math.BigInteger |
f
|
private static java.math.BigInteger |
g
|
private static org.apache.commons.logging.Log |
log
|
private static java.math.BigInteger |
p
|
private java.lang.String |
serverId
|
private byte[] |
serverKexInit
|
private java.math.BigInteger |
x
|
private java.math.BigInteger |
y
|
Constructor Summary |
DhGroup1Sha1()
Creates a new DhGroup1Sha1 object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
log
private static org.apache.commons.logging.Log log
g
private static java.math.BigInteger g
p
private static java.math.BigInteger p
e
private java.math.BigInteger e
f
private java.math.BigInteger f
x
private java.math.BigInteger x
y
private java.math.BigInteger y
clientId
private java.lang.String clientId
serverId
private java.lang.String serverId
clientKexInit
private byte[] clientKexInit
serverKexInit
private byte[] serverKexInit
dhKeyPairGen
private java.security.KeyPairGenerator dhKeyPairGen
dhKeyAgreement
private javax.crypto.KeyAgreement dhKeyAgreement
DhGroup1Sha1
public DhGroup1Sha1()
- Creates a new DhGroup1Sha1 object.
onInit
protected void onInit()
throws java.io.IOException
- Specified by:
onInit
in class SshKeyExchange
- Throws:
java.io.IOException
AlgorithmNotSupportedException
performClientExchange
public void performClientExchange(java.lang.String clientId,
java.lang.String serverId,
byte[] clientKexInit,
byte[] serverKexInit)
throws java.io.IOException
- Specified by:
performClientExchange
in class SshKeyExchange
- Parameters:
clientId
- serverId
- clientKexInit
- serverKexInit
-
- Throws:
java.io.IOException
AlgorithmOperationException
KeyExchangeException
performServerExchange
public void performServerExchange(java.lang.String clientId,
java.lang.String serverId,
byte[] clientKexInit,
byte[] serverKexInit,
SshPrivateKey prvKey)
throws java.io.IOException
- Specified by:
performServerExchange
in class SshKeyExchange
- Parameters:
clientId
- serverId
- clientKexInit
- serverKexInit
- prvKey
-
- Throws:
java.io.IOException
KeyExchangeException
calculateExchangeHash
protected void calculateExchangeHash()
throws KeyExchangeException
- Throws:
KeyExchangeException