Class DH


  • public class DH
    extends DHBase
    Diffie-Hellman key generator.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.math.BigInteger g  
      private java.math.BigInteger p  
    • Constructor Summary

      Constructors 
      Constructor Description
      DH()  
    • Method Summary

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

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

      • p

        private java.math.BigInteger p
      • g

        private java.math.BigInteger g
    • Constructor Detail

      • DH

        public DH()
    • Method Detail

      • init

        public void init​(java.security.spec.AlgorithmParameterSpec params,
                         Factory<Random> randomFactory)
                  throws java.security.GeneralSecurityException
        Specified by:
        init in class DHBase
        Throws:
        java.security.GeneralSecurityException
      • computeK

        void computeK​(byte[] f)
               throws java.security.GeneralSecurityException
        Specified by:
        computeK in class DHBase
        Throws:
        java.security.GeneralSecurityException
      • getP

        public java.math.BigInteger getP()
      • getG

        public java.math.BigInteger getG()