Class KeyExchange


  • public abstract class KeyExchange
    extends java.lang.Object
    • 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 java.lang.Exception
        Throws:
        java.lang.Exception
      • next

        public abstract boolean next​(Buffer buf)
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getState

        public abstract int getState()
      • getKeyType

        public java.lang.String getKeyType()
      • getKeyAlgorithName

        public java.lang.String getKeyAlgorithName()
      • guess

        protected static java.lang.String[] guess​(Session session,
                                                  byte[] I_S,
                                                  byte[] I_C)
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getFingerPrint

        public java.lang.String getFingerPrint()
      • normalize

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

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

        protected byte[] encodeAsMPInt​(byte[] raw)
      • encodeAsString

        protected byte[] encodeAsString​(byte[] raw)