public class DhGroupExchange
extends java.lang.Object
Constructor and Description |
---|
DhGroupExchange(java.math.BigInteger p,
java.math.BigInteger g) |
Modifier and Type | Method and Description |
---|---|
byte[] |
calculateH(byte[] clientversion,
byte[] serverversion,
byte[] clientKexPayload,
byte[] serverKexPayload,
byte[] hostKey,
DHGexParameters para) |
java.math.BigInteger |
getE() |
java.math.BigInteger |
getK() |
void |
init(java.security.SecureRandom rnd) |
void |
setF(java.math.BigInteger f)
Sets f and calculates the shared secret.
|
public DhGroupExchange(java.math.BigInteger p, java.math.BigInteger g)
public void init(java.security.SecureRandom rnd)
public java.math.BigInteger getE()
public java.math.BigInteger getK()
public void setF(java.math.BigInteger f)
public byte[] calculateH(byte[] clientversion, byte[] serverversion, byte[] clientKexPayload, byte[] serverKexPayload, byte[] hostKey, DHGexParameters para)
Copyright © 2013. All Rights Reserved.