public class DhGroupExchange extends Object
Constructor and Description |
---|
DhGroupExchange(BigInteger p,
BigInteger g)
Deprecated.
|
DhGroupExchange(String algorithm,
BigInteger p,
BigInteger g) |
Modifier and Type | Method and Description |
---|---|
byte[] |
calculateH(byte[] clientversion,
byte[] serverversion,
byte[] clientKexPayload,
byte[] serverKexPayload,
byte[] hostKey,
DHGexParameters para) |
BigInteger |
getE() |
String |
getHashAlgorithm() |
BigInteger |
getK() |
void |
init(SecureRandom rnd) |
void |
setF(BigInteger f)
Sets f and calculates the shared secret.
|
@Deprecated public DhGroupExchange(BigInteger p, BigInteger g)
public DhGroupExchange(String algorithm, BigInteger p, BigInteger g)
public void init(SecureRandom rnd)
public BigInteger getE()
public BigInteger getK()
public void setF(BigInteger f)
f
- f.public byte[] calculateH(byte[] clientversion, byte[] serverversion, byte[] clientKexPayload, byte[] serverKexPayload, byte[] hostKey, DHGexParameters para)
public String getHashAlgorithm()
Copyright © 2020. All rights reserved.