public class DhGroupExchange extends Object
Constructor and Description |
---|
DhGroupExchange(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() |
BigInteger |
getK() |
void |
init(SecureRandom rnd) |
void |
setF(BigInteger f)
Sets f and calculates the shared secret.
|
public DhGroupExchange(BigInteger p, BigInteger g)
public void init(SecureRandom rnd)
public BigInteger getE()
public BigInteger getK()
public void setF(BigInteger f)
public byte[] calculateH(byte[] clientversion, byte[] serverversion, byte[] clientKexPayload, byte[] serverKexPayload, byte[] hostKey, DHGexParameters para)
Copyright © 2022. All rights reserved.