Class DHBase

  • Direct Known Subclasses:
    Curve25519DH, DH, ECDH

    public abstract class DHBase
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected javax.crypto.KeyAgreement agreement  
      private byte[] e  
      protected java.security.KeyPairGenerator generator  
      private java.math.BigInteger K  
    • Constructor Summary

      Constructors 
      Constructor Description
      DHBase​(java.lang.String generator, java.lang.String agreement)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) abstract void computeK​(byte[] f)  
      byte[] getE()  
      java.math.BigInteger getK()  
      abstract void init​(java.security.spec.AlgorithmParameterSpec params, Factory<Random> randomFactory)  
      (package private) void setE​(byte[] e)  
      (package private) void setK​(java.math.BigInteger k)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • generator

        protected final java.security.KeyPairGenerator generator
      • agreement

        protected final javax.crypto.KeyAgreement agreement
      • e

        private byte[] e
      • K

        private java.math.BigInteger K
    • Constructor Detail

      • DHBase

        public DHBase​(java.lang.String generator,
                      java.lang.String agreement)
    • Method Detail

      • computeK

        abstract void computeK​(byte[] f)
                        throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • init

        public abstract void init​(java.security.spec.AlgorithmParameterSpec params,
                                  Factory<Random> randomFactory)
                           throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • setE

        void setE​(byte[] e)
      • setK

        void setK​(java.math.BigInteger k)
      • getE

        public byte[] getE()
      • getK

        public java.math.BigInteger getK()