Package com.trilead.ssh2.crypto.dh
Class DhGroupExchange
java.lang.Object
com.trilead.ssh2.crypto.dh.DhGroupExchange
DhGroupExchange.
- Version:
- $Id: DhGroupExchange.java,v 1.1 2007/10/15 12:49:57 cplattne Exp $
- Author:
- Christian Plattner, plattner@trilead.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]calculateH(String hashAlgo, byte[] clientversion, byte[] serverversion, byte[] clientKexPayload, byte[] serverKexPayload, byte[] hostKey, DHGexParameters para) getE()getK()voidinit(SecureRandom rnd) voidsetF(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.- Parameters:
f- f.
-
calculateH
public byte[] calculateH(String hashAlgo, byte[] clientversion, byte[] serverversion, byte[] clientKexPayload, byte[] serverKexPayload, byte[] hostKey, DHGexParameters para)
-