public abstract class AbstractDHGex extends AbstractDH
dhdigest, H, hostKey, trans| Constructor and Description |
|---|
AbstractDHGex(Digest digest) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
next(Message msg,
SSHPacket buffer)
Process the next packet
|
getKgetH, getHash, getHostKey, initializedBufferpublic AbstractDHGex(Digest digest)
public 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 KeyExchangeinit in class KeyExchangeBasetrans - 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 buffer) throws java.security.GeneralSecurityException, TransportException
KeyExchangemsg - message identifierbuffer - the packetjava.security.GeneralSecurityExceptionTransportException - if there is an error sending a packet