com.mindbright.ssh2
public abstract class SSH2KEXDHGroupNumSHA1 extends SSH2KeyExchanger
Modifier and Type | Field and Description |
---|---|
protected java.math.BigInteger |
clientE |
protected javax.crypto.interfaces.DHPrivateKey |
dhPrivateKey |
protected javax.crypto.interfaces.DHPublicKey |
dhPublicKey |
protected byte[] |
exchangeHash_H |
protected java.math.BigInteger |
serverF |
protected byte[] |
serverHostKey |
protected java.security.KeyPair |
serverKey |
protected java.security.MessageDigest |
sha1 |
protected byte[] |
sharedSecret_K |
protected SSH2Transport |
transport |
Constructor and Description |
---|
SSH2KEXDHGroupNumSHA1() |
Modifier and Type | Method and Description |
---|---|
protected void |
computeExchangeHash_H() |
protected void |
computeSharedSecret_K(javax.crypto.spec.DHPublicKeySpec peerPubSpec) |
protected java.security.MessageDigest |
createHash() |
protected void |
generateDHKeyPair(javax.crypto.spec.DHParameterSpec dhParams) |
byte[] |
getExchangeHash_H() |
java.security.MessageDigest |
getExchangeHashAlgorithm() |
abstract java.math.BigInteger |
getGroupG() |
abstract java.math.BigInteger |
getGroupP() |
abstract java.lang.String |
getName() |
byte[] |
getSharedSecret_K() |
void |
init(SSH2Transport transport) |
void |
init(SSH2Transport transport,
java.security.KeyPair serverKey) |
void |
processKEXMethodPDU(SSH2TransportPDU pdu) |
protected void |
sendDHINIT(int type) |
getHostKeyAlgorithms, getInstance
protected SSH2Transport transport
protected javax.crypto.interfaces.DHPublicKey dhPublicKey
protected javax.crypto.interfaces.DHPrivateKey dhPrivateKey
protected byte[] serverHostKey
protected java.math.BigInteger serverF
protected java.math.BigInteger clientE
protected byte[] sharedSecret_K
protected byte[] exchangeHash_H
protected java.security.MessageDigest sha1
protected java.security.KeyPair serverKey
public abstract java.math.BigInteger getGroupP()
public abstract java.math.BigInteger getGroupG()
public abstract java.lang.String getName()
public void init(SSH2Transport transport) throws SSH2Exception
init
in class SSH2KeyExchanger
SSH2Exception
public void init(SSH2Transport transport, java.security.KeyPair serverKey) throws SSH2Exception
SSH2Exception
public void processKEXMethodPDU(SSH2TransportPDU pdu) throws SSH2Exception
processKEXMethodPDU
in class SSH2KeyExchanger
SSH2Exception
public java.security.MessageDigest getExchangeHashAlgorithm()
getExchangeHashAlgorithm
in class SSH2KeyExchanger
public byte[] getSharedSecret_K()
getSharedSecret_K
in class SSH2KeyExchanger
public byte[] getExchangeHash_H()
getExchangeHash_H
in class SSH2KeyExchanger
protected void computeExchangeHash_H()
protected void computeSharedSecret_K(javax.crypto.spec.DHPublicKeySpec peerPubSpec) throws SSH2Exception
SSH2Exception
protected void sendDHINIT(int type) throws SSH2Exception
SSH2Exception
protected java.security.MessageDigest createHash() throws SSH2Exception
SSH2Exception
protected void generateDHKeyPair(javax.crypto.spec.DHParameterSpec dhParams) throws SSH2Exception
SSH2Exception