Package com.jcraft.jsch
Class DHG1
- java.lang.Object
-
- com.jcraft.jsch.KeyExchange
-
- com.jcraft.jsch.DHG1
-
public class DHG1 extends KeyExchange
-
-
Field Summary
Fields Modifier and Type Field Description private Buffer
buf
(package private) DH
dh
(package private) byte[]
e
(package private) static byte[]
g
(package private) byte[]
I_C
(package private) byte[]
I_S
(package private) static byte[]
p
private Packet
packet
private static int
SSH_MSG_KEXDH_INIT
private static int
SSH_MSG_KEXDH_REPLY
private int
state
(package private) byte[]
V_C
(package private) byte[]
V_S
-
Fields inherited from class com.jcraft.jsch.KeyExchange
DSS, ECDSA, enc_c2s, enc_s2c, H, K, K_S, kex, lang_c2s, lang_s2c, mac_c2s, mac_s2c, PROPOSAL_COMP_ALGS_CTOS, PROPOSAL_COMP_ALGS_STOC, PROPOSAL_ENC_ALGS_CTOS, PROPOSAL_ENC_ALGS_STOC, PROPOSAL_KEX_ALGS, PROPOSAL_LANG_CTOS, PROPOSAL_LANG_STOC, PROPOSAL_MAC_ALGS_CTOS, PROPOSAL_MAC_ALGS_STOC, PROPOSAL_MAX, PROPOSAL_SERVER_HOST_KEY_ALGS, RSA, server_host_key, session, sha, STATE_END
-
-
Constructor Summary
Constructors Constructor Description DHG1()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getState()
void
init(Session session, byte[] V_S, byte[] V_C, byte[] I_S, byte[] I_C)
boolean
next(Buffer _buf)
-
Methods inherited from class com.jcraft.jsch.KeyExchange
getFingerPrint, getH, getHash, getHostKey, getK, getKeyAlgorithName, getKeyType, guess, normalize, verify
-
-
-
-
Field Detail
-
g
static final byte[] g
-
p
static final byte[] p
-
SSH_MSG_KEXDH_INIT
private static final int SSH_MSG_KEXDH_INIT
- See Also:
- Constant Field Values
-
SSH_MSG_KEXDH_REPLY
private static final int SSH_MSG_KEXDH_REPLY
- See Also:
- Constant Field Values
-
state
private int state
-
dh
DH dh
-
V_S
byte[] V_S
-
V_C
byte[] V_C
-
I_S
byte[] I_S
-
I_C
byte[] I_C
-
e
byte[] e
-
buf
private Buffer buf
-
packet
private Packet packet
-
-
Method Detail
-
init
public void init(Session session, byte[] V_S, byte[] V_C, byte[] I_S, byte[] I_C) throws java.lang.Exception
- Specified by:
init
in classKeyExchange
- Throws:
java.lang.Exception
-
next
public boolean next(Buffer _buf) throws java.lang.Exception
- Specified by:
next
in classKeyExchange
- Throws:
java.lang.Exception
-
getState
public int getState()
- Specified by:
getState
in classKeyExchange
-
-