限定符和类型 | 字段和说明 |
---|---|
protected int |
DSS |
protected int |
ECDSA |
protected byte[] |
H |
protected byte[] |
K |
protected byte[] |
K_S |
protected int |
RSA |
protected Session |
session |
protected HASH |
sha |
static int |
STATE_END |
构造器和说明 |
---|
KeyExchange() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getFingerPrint() |
java.lang.String |
getKeyAlgorithName() |
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) |
protected boolean |
verify(java.lang.String alg,
byte[] K_S,
int index,
byte[] sig_of_H) |
public static final int STATE_END
protected Session session
protected HASH sha
protected byte[] K
protected byte[] H
protected byte[] K_S
protected final int RSA
protected final int DSS
protected final int ECDSA
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 int getState()
public java.lang.String getKeyType()
public java.lang.String getKeyAlgorithName()
protected static java.lang.String[] guess(byte[] I_S, byte[] I_C)
public java.lang.String getFingerPrint()
protected byte[] normalize(byte[] secret)
protected boolean verify(java.lang.String alg, byte[] K_S, int index, byte[] sig_of_H) throws java.lang.Exception
java.lang.Exception