Package com.trilead.ssh2.crypto.dh
Class DhGroupExchange
java.lang.Object
com.trilead.ssh2.crypto.dh.DhGroupExchange
DhGroupExchange.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
calculateH
(byte[] clientversion, byte[] serverversion, byte[] clientKexPayload, byte[] serverKexPayload, byte[] hostKey, DHGexParameters para) getE()
getK()
void
init
(SecureRandom rnd) void
setF
(BigInteger f) Sets f and calculates the shared secret.
-
Constructor Details
-
DhGroupExchange
-
-
Method Details
-
init
-
getE
- Returns:
- Returns the e.
-
getK
- Returns:
- Returns the shared secret k.
-
setF
Sets f and calculates the shared secret. -
calculateH
public byte[] calculateH(byte[] clientversion, byte[] serverversion, byte[] clientKexPayload, byte[] serverKexPayload, byte[] hostKey, DHGexParameters para)
-