com.trilead.ssh2.crypto.dh
Class DhGroupExchange
java.lang.Object
com.trilead.ssh2.crypto.dh.DhGroupExchange
public class DhGroupExchange
extends java.lang.Object
DhGroupExchange.
byte[] | calculateH(byte[] clientversion, byte[] serverversion, byte[] clientKexPayload, byte[] serverKexPayload, byte[] hostKey, DHGexParameters para)
|
BigInteger | getE()
|
BigInteger | getK()
|
void | init(SecureRandom rnd)
|
void | setF(BigInteger f) - Sets f and calculates the shared secret.
|
DhGroupExchange
public DhGroupExchange(BigInteger p,
BigInteger g)
calculateH
public byte[] calculateH(byte[] clientversion,
byte[] serverversion,
byte[] clientKexPayload,
byte[] serverKexPayload,
byte[] hostKey,
DHGexParameters para)
getE
public BigInteger getE()
getK
public BigInteger getK()
- Returns the shared secret k.
init
public void init(SecureRandom rnd)
setF
public void setF(BigInteger f)
Sets f and calculates the shared secret.