public class DhExchange
extends java.lang.Object
| Constructor and Description |
|---|
DhExchange() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
calculateH(byte[] clientversion,
byte[] serverversion,
byte[] clientKexPayload,
byte[] serverKexPayload,
byte[] hostKey) |
java.math.BigInteger |
getE() |
java.math.BigInteger |
getK() |
void |
init(int group,
java.security.SecureRandom rnd) |
void |
setF(java.math.BigInteger f) |
public void init(int group,
java.security.SecureRandom rnd)
public java.math.BigInteger getE()
java.lang.IllegalStateExceptionpublic java.math.BigInteger getK()
java.lang.IllegalStateExceptionpublic void setF(java.math.BigInteger f)
f - public byte[] calculateH(byte[] clientversion,
byte[] serverversion,
byte[] clientKexPayload,
byte[] serverKexPayload,
byte[] hostKey)
throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException