Class FipsDH.DomainGenParameters

  • All Implemented Interfaces:
    Parameters
    Enclosing class:
    FipsDH

    public static final class FipsDH.DomainGenParameters
    extends FipsParameters
    Parameters for generating Diffie-Hellman domain parameters.
    • Constructor Summary

      Constructors 
      Constructor Description
      DomainGenParameters​(int strength)
      Construct just from strength (L) with a default value for N (160 for 1024, 256 for greater) and a default certainty.
      DomainGenParameters​(int strength, int certainty)
      Construct just from strength (L) with a default value for N (160 for 1024, 256 for greater).
      DomainGenParameters​(int L, int N, int certainty)
      Construct without a usage index, this will do a random construction of G.
      DomainGenParameters​(int L, int N, int certainty, int usageIndex)
      Construct for a specific usage index - this has the effect of using verifiable canonical generation of G.
      DomainGenParameters​(java.math.BigInteger p, java.math.BigInteger q)
      Construct from initial prime values, this will do a random construction of G.
      DomainGenParameters​(java.math.BigInteger p, java.math.BigInteger q, byte[] seed, int usageIndex)
      Construct for a specific usage index and initial prime values - this has the effect of using verifiable canonical generation of G.
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • DomainGenParameters

        public DomainGenParameters​(int strength)
        Construct just from strength (L) with a default value for N (160 for 1024, 256 for greater) and a default certainty.
        Parameters:
        strength - desired length of prime P in bits (the effective key size).
      • DomainGenParameters

        public DomainGenParameters​(int strength,
                                   int certainty)
        Construct just from strength (L) with a default value for N (160 for 1024, 256 for greater).
        Parameters:
        strength - desired length of prime P in bits (the effective key size).
        certainty - certainty level for prime number generation.
      • DomainGenParameters

        public DomainGenParameters​(int L,
                                   int N,
                                   int certainty)
        Construct without a usage index, this will do a random construction of G.
        Parameters:
        L - desired length of prime P in bits (the effective key size).
        N - desired length of prime Q in bits.
        certainty - certainty level for prime number generation.
      • DomainGenParameters

        public DomainGenParameters​(int L,
                                   int N,
                                   int certainty,
                                   int usageIndex)
        Construct for a specific usage index - this has the effect of using verifiable canonical generation of G.
        Parameters:
        L - desired length of prime P in bits (the effective key size).
        N - desired length of prime Q in bits.
        certainty - certainty level for prime number generation.
        usageIndex - a valid usage index.
      • DomainGenParameters

        public DomainGenParameters​(java.math.BigInteger p,
                                   java.math.BigInteger q)
        Construct from initial prime values, this will do a random construction of G.
        Parameters:
        p - the prime P.
        q - the prime Q.
      • DomainGenParameters

        public DomainGenParameters​(java.math.BigInteger p,
                                   java.math.BigInteger q,
                                   byte[] seed,
                                   int usageIndex)
        Construct for a specific usage index and initial prime values - this has the effect of using verifiable canonical generation of G.
        Parameters:
        p - the prime P.
        q - the prime Q.
        seed - seed used in the generation of (p, q).
        usageIndex - a valid usage index.