public class DhExchange extends Object
Constructor and Description |
---|
DhExchange()
Deprecated.
|
DhExchange(String hashAlgorightm) |
Modifier and Type | Method and Description |
---|---|
byte[] |
calculateH(byte[] clientversion,
byte[] serverversion,
byte[] clientKexPayload,
byte[] serverKexPayload,
byte[] hostKey) |
BigInteger |
getE() |
String |
getHashAlgorithm() |
BigInteger |
getK() |
void |
init(int group,
SecureRandom rnd) |
void |
setF(BigInteger f) |
@Deprecated public DhExchange()
public DhExchange(String hashAlgorightm)
public void init(int group, SecureRandom rnd)
public BigInteger getE()
public BigInteger getK()
public void setF(BigInteger f)
f
- fpublic byte[] calculateH(byte[] clientversion, byte[] serverversion, byte[] clientKexPayload, byte[] serverKexPayload, byte[] hostKey) throws UnsupportedEncodingException
UnsupportedEncodingException
public String getHashAlgorithm()
Copyright © 2020. All rights reserved.