Class AbstractDHG

    • Field Detail

      • log

        private final org.slf4j.Logger log
    • Constructor Detail

      • AbstractDHG

        public AbstractDHG​(DHBase dhBase,
                           Digest digest)
    • Method Detail

      • init

        public void init​(Transport trans,
                         java.lang.String V_S,
                         java.lang.String V_C,
                         byte[] I_S,
                         byte[] I_C)
                  throws java.security.GeneralSecurityException,
                         TransportException
        Description copied from interface: KeyExchange
        Initialize the key exchange algorithm.
        Specified by:
        init in interface KeyExchange
        Overrides:
        init in class KeyExchangeBase
        Parameters:
        trans - the transport
        V_S - the server identification string
        V_C - the client identification string
        I_S - the server key init packet
        I_C - the client key init packet
        Throws:
        java.security.GeneralSecurityException
        TransportException - if there is an error sending a packet
      • next

        public boolean next​(Message msg,
                            SSHPacket packet)
                     throws java.security.GeneralSecurityException,
                            TransportException
        Description copied from interface: KeyExchange
        Process the next packet
        Parameters:
        msg - message identifier
        packet - the packet
        Returns:
        a boolean indicating if the processing is complete or if more packets are to be received
        Throws:
        java.security.GeneralSecurityException
        TransportException - if there is an error sending a packet
      • initDH

        protected abstract void initDH​(DHBase dh)
                                throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException