Class DHGEX

    • Field Detail

      • SSH_MSG_KEX_DH_GEX_GROUP

        private static final int SSH_MSG_KEX_DH_GEX_GROUP
        See Also:
        Constant Field Values
      • SSH_MSG_KEX_DH_GEX_INIT

        private static final int SSH_MSG_KEX_DH_GEX_INIT
        See Also:
        Constant Field Values
      • SSH_MSG_KEX_DH_GEX_REPLY

        private static final int SSH_MSG_KEX_DH_GEX_REPLY
        See Also:
        Constant Field Values
      • SSH_MSG_KEX_DH_GEX_REQUEST

        private static final int SSH_MSG_KEX_DH_GEX_REQUEST
        See Also:
        Constant Field Values
      • min

        static int min
      • preferred

        static int preferred
      • max

        int max
      • 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
      • packet

        private Packet packet
      • p

        private byte[] p
      • g

        private byte[] g
      • e

        private byte[] e
      • hash

        protected java.lang.String hash
    • Constructor Detail

      • DHGEX

        public DHGEX()
    • 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 class KeyExchange
        Throws:
        java.lang.Exception
      • next

        public boolean next​(Buffer _buf)
                     throws java.lang.Exception
        Specified by:
        next in class KeyExchange
        Throws:
        java.lang.Exception
      • check2048

        protected int check2048​(java.lang.Class c,
                                int _max)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception