public class DhExchange extends Object
| Constructor and Description |
|---|
DhExchange() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
calculateH(byte[] clientversion,
byte[] serverversion,
byte[] clientKexPayload,
byte[] serverKexPayload,
byte[] hostKey) |
BigInteger |
getE() |
BigInteger |
getK() |
void |
init(int group,
SecureRandom rnd) |
void |
setF(BigInteger f) |
public void init(int group,
SecureRandom rnd)
public BigInteger getE()
IllegalStateExceptionpublic BigInteger getK()
IllegalStateExceptionpublic void setF(BigInteger f)
f - public byte[] calculateH(byte[] clientversion,
byte[] serverversion,
byte[] clientKexPayload,
byte[] serverKexPayload,
byte[] hostKey)
throws UnsupportedEncodingException
UnsupportedEncodingExceptionCopyright © 2013. All Rights Reserved.