public interface KeyExchange
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getH() |
Digest |
getHash()
The message digest used by this key exchange algorithm.
|
PublicKey |
getHostKey() |
BigInteger |
getK() |
void |
init(Transport trans,
String V_S,
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, String V_S, String V_C, byte[] I_S, byte[] I_C) throws 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 packetGeneralSecurityExceptionTransportException - if there is an error sending a packetbyte[] getH()
BigInteger getK()
Digest getHash()
PublicKey getHostKey()
boolean next(Message msg, SSHPacket buffer) throws GeneralSecurityException, TransportException
msg - message identifierbuffer - the packetGeneralSecurityExceptionTransportException - if there is an error sending a packetCopyright © 2009–2014. All rights reserved.