Package com.trilead.ssh2.crypto.dh
Class DhExchange
java.lang.Object
com.trilead.ssh2.crypto.dh.DhExchange
DhExchange.
- Version:
- $Id: DhExchange.java,v 1.2 2008/04/01 12:38:09 cplattne Exp $
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) BigInteger
(package private) BigInteger
(package private) static final BigInteger
private final String
(package private) BigInteger
private static final Logger
(package private) BigInteger
(package private) static final BigInteger
(package private) static final BigInteger
(package private) BigInteger
-
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)
-
Field Details
-
log
-
p1
-
p14
-
g
-
p
-
e
-
x
-
f
-
k
-
hashAlgorithm
-
-
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
-