public interface KeyExchange
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.
|
boolean |
next(Message msg,
SSHPacket buffer)
Process the next packet
|
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
trans
- 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.GeneralSecurityException
TransportException
- if there is an error sending a packetbyte[] getH()
java.math.BigInteger getK()
Digest getHash()
java.security.PublicKey getHostKey()
boolean next(Message msg, SSHPacket buffer) throws java.security.GeneralSecurityException, TransportException
msg
- message identifierbuffer
- the packetjava.security.GeneralSecurityException
TransportException
- if there is an error sending a packet