public abstract class DHECN extends KeyExchange
Modifier and Type | Field and Description |
---|---|
protected int |
key_size |
protected String |
sha_name |
Constructor and Description |
---|
DHECN() |
Modifier and Type | Method and Description |
---|---|
int |
getState()
returns the identifier of the next SSH packet expected,
or
KeyExchange.STATE_END if the KeyExchange was already
successfully finished. |
void |
init(Session session,
byte[] V_S,
byte[] V_C,
byte[] I_S,
byte[] I_C)
Initializes the key exchange object.
|
boolean |
next(Buffer _buf)
Does the next step in the key exchange algorithm.
|
getFingerPrint, getKeyAlgorithName, getKeyType, guess, normalize, verify
protected String sha_name
protected int key_size
public void init(Session session, byte[] V_S, byte[] V_C, byte[] I_S, byte[] I_C) throws Exception
KeyExchange
init
in class KeyExchange
session
- the session object.V_S
- the server's identification string sent before negotiationV_C
- the client's identification string sent before negotiationI_S
- the server's complete SSH_MSG_KEXINIT message.I_C
- the server's complete SSH_MSG_KEXINIT message.Exception
public boolean next(Buffer _buf) throws Exception
KeyExchange
next
in class KeyExchange
_buf
- the received packet. It will have the same
message-type as KeyExchange.getState()
returned before.Exception
public int getState()
KeyExchange
KeyExchange.STATE_END
if the KeyExchange was already
successfully finished.getState
in class KeyExchange
This is an inofficial Javadoc created by PaĆlo Ebermann. Have a look at the official homepage.