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()
IllegalStateException
public BigInteger getK()
IllegalStateException
public void setF(BigInteger f)
f
- public byte[] calculateH(byte[] clientversion, byte[] serverversion, byte[] clientKexPayload, byte[] serverKexPayload, byte[] hostKey) throws UnsupportedEncodingException
UnsupportedEncodingException
Copyright © 2018. All rights reserved.