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 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BigInteger
private BigInteger
private BigInteger
private final String
private BigInteger
private BigInteger
private BigInteger
-
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.
-
Field Details
-
p
-
g
-
e
-
x
-
f
-
k
-
hashAlgorithm
-
-
Constructor Details
-
DhGroupExchange
Deprecated. -
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(byte[] clientversion, byte[] serverversion, byte[] clientKexPayload, byte[] serverKexPayload, byte[] hostKey, DHGexParameters para) -
getHashAlgorithm
-