Modifier and Type | Field and Description |
---|---|
protected byte[] |
H |
protected byte[] |
K |
protected byte[] |
K_S |
protected Session |
session |
protected HASH |
sha |
static int |
STATE_END |
Constructor and Description |
---|
KeyExchange() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFingerPrint() |
abstract java.lang.String |
getKeyType() |
abstract int |
getState() |
protected static java.lang.String[] |
guess(byte[] I_S,
byte[] I_C) |
abstract void |
init(Session session,
byte[] V_S,
byte[] V_C,
byte[] I_S,
byte[] I_C) |
abstract boolean |
next(Buffer buf) |
protected byte[] |
normalize(byte[] secret) |
public static final int STATE_END
protected Session session
protected HASH sha
protected byte[] K
protected byte[] H
protected byte[] K_S
public abstract void init(Session session, byte[] V_S, byte[] V_C, byte[] I_S, byte[] I_C) throws java.lang.Exception
java.lang.Exception
public abstract boolean next(Buffer buf) throws java.lang.Exception
java.lang.Exception
public abstract java.lang.String getKeyType()
public abstract int getState()
protected static java.lang.String[] guess(byte[] I_S, byte[] I_C)
public java.lang.String getFingerPrint()
protected byte[] normalize(byte[] secret)