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  
      protected java.security.KeyPairGenerator generator  
    • Constructor Summary

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

      Modifier and Type Method Description
      byte[] getE()  
      java.math.BigInteger getK()  
      abstract 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

      • generator

        protected final java.security.KeyPairGenerator generator
      • agreement

        protected final javax.crypto.KeyAgreement agreement
    • Constructor Detail

      • DHBase

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

      • init

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

        public byte[] getE()
      • getK

        public java.math.BigInteger getK()