Class KeyExchange

    • Constructor Detail

      • KeyExchange

        public KeyExchange()
    • Method Detail

      • init

        public abstract void init​(Session session,
                                  byte[] V_S,
                                  byte[] V_C,
                                  byte[] I_S,
                                  byte[] I_C)
                           throws Exception
        Throws:
        Exception
      • getState

        public abstract int getState()
      • getKeyType

        public String getKeyType()
      • getKeyAlgorithName

        public String getKeyAlgorithName()
      • guess

        protected static String[] guess​(byte[] I_S,
                                        byte[] I_C)
      • getFingerPrint

        public String getFingerPrint()
      • normalize

        protected byte[] normalize​(byte[] secret)
      • verify

        protected boolean verify​(String alg,
                                 byte[] K_S,
                                 int index,
                                 byte[] sig_of_H)
                          throws Exception
        Throws:
        Exception