Package com.trilead.ssh2.crypto.dh
Class DhExchange
java.lang.Object
com.trilead.ssh2.crypto.dh.DhExchange
DhExchange.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
calculateH
(byte[] clientversion, byte[] serverversion, byte[] clientKexPayload, byte[] serverKexPayload, byte[] hostKey) getE()
getK()
void
init
(int group, SecureRandom rnd) void
setF
(BigInteger f)
-
Constructor Details
-
DhExchange
public DhExchange()
-
-
Method Details
-
init
-
getE
- Returns:
- Returns the e.
- Throws:
IllegalStateException
-
getK
- Returns:
- Returns the shared secret k.
- Throws:
IllegalStateException
-
setF
- Parameters:
f
-
-
calculateH
public byte[] calculateH(byte[] clientversion, byte[] serverversion, byte[] clientKexPayload, byte[] serverKexPayload, byte[] hostKey) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-