public abstract class AbstractDHG extends java.lang.Object implements KeyExchange
DH class in the| Constructor and Description |
|---|
AbstractDHG() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getH() |
Digest |
getHash()
The message digest used by this key exchange algorithm.
|
java.security.PublicKey |
getHostKey() |
java.math.BigInteger |
getK() |
void |
init(Transport trans,
java.lang.String V_S,
java.lang.String V_C,
byte[] I_S,
byte[] I_C)
Initialize the key exchange algorithm.
|
protected abstract void |
initDH(DH dh) |
boolean |
next(Message msg,
SSHPacket packet)
Process the next packet
|
public byte[] getH()
getH in interface KeyExchangepublic java.math.BigInteger getK()
getK in interface KeyExchangepublic Digest getHash()
KeyExchangegetHash in interface KeyExchangepublic java.security.PublicKey getHostKey()
getHostKey in interface KeyExchangepublic void init(Transport trans, java.lang.String V_S, java.lang.String V_C, byte[] I_S, byte[] I_C) throws java.security.GeneralSecurityException, TransportException
KeyExchangeinit in interface KeyExchangetrans - the transportV_S - the server identification stringV_C - the client identification stringI_S - the server key init packetI_C - the client key init packetjava.security.GeneralSecurityExceptionTransportException - if there is an error sending a packetpublic boolean next(Message msg, SSHPacket packet) throws java.security.GeneralSecurityException, TransportException
KeyExchangenext in interface KeyExchangemsg - message identifierpacket - the packetjava.security.GeneralSecurityExceptionTransportException - if there is an error sending a packetprotected abstract void initDH(DH dh) throws java.security.GeneralSecurityException
java.security.GeneralSecurityException