public abstract class AbstractDHG extends 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.
|
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.
|
protected abstract void |
initDH(DH dh) |
boolean |
next(Message msg,
SSHPacket packet)
Process the next packet
|
public byte[] getH()
getH in interface KeyExchangepublic BigInteger getK()
getK in interface KeyExchangepublic Digest getHash()
KeyExchangegetHash in interface KeyExchangepublic PublicKey getHostKey()
getHostKey in interface KeyExchangepublic void init(Transport trans, String V_S, String V_C, byte[] I_S, byte[] I_C) throws 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 packetGeneralSecurityExceptionTransportException - if there is an error sending a packetpublic boolean next(Message msg, SSHPacket packet) throws GeneralSecurityException, TransportException
KeyExchangenext in interface KeyExchangemsg - message identifierpacket - the packetGeneralSecurityExceptionTransportException - if there is an error sending a packetprotected abstract void initDH(DH dh) throws GeneralSecurityException
GeneralSecurityExceptionCopyright © 2009–2014. All rights reserved.