Package com.trilead.ssh2.crypto.dh
Class DhExchange
java.lang.Object
com.trilead.ssh2.crypto.dh.DhExchange
public class DhExchange extends Object
DhExchange.
- Version:
- $Id: DhExchange.java,v 1.2 2008/04/01 12:38:09 cplattne Exp $
- Author:
- Christian Plattner, plattner@trilead.com
-
Constructor Summary
Constructors Constructor Description DhExchange()Deprecated.DhExchange(String hashAlgorightm) -
Method Summary
Modifier and Type Method Description byte[]calculateH(byte[] clientversion, byte[] serverversion, byte[] clientKexPayload, byte[] serverKexPayload, byte[] hostKey)BigIntegergetE()StringgetHashAlgorithm()BigIntegergetK()voidinit(int group, SecureRandom rnd)voidsetF(BigInteger f)
-
Constructor Details
-
DhExchange
Deprecated. -
DhExchange
-
-
Method Details
-
init
-
getE
- Returns:
- Returns the e.
-
getK
- Returns:
- Returns the shared secret k.
-
setF
- Parameters:
f- f
-
calculateH
public byte[] calculateH(byte[] clientversion, byte[] serverversion, byte[] clientKexPayload, byte[] serverKexPayload, byte[] hostKey) throws UnsupportedEncodingException- Throws:
UnsupportedEncodingException
-
getHashAlgorithm
-