public class

DHParameters

extends Object
implements CipherParameters
java.lang.Object
   ↳ org.bouncycastle.crypto.params.DHParameters

Summary

Public Constructors
DHParameters(BigInteger p, BigInteger g)
DHParameters(BigInteger p, BigInteger g, BigInteger q)
DHParameters(BigInteger p, BigInteger g, BigInteger q, int l)
DHParameters(BigInteger p, BigInteger g, BigInteger q, int m, int l)
DHParameters(BigInteger p, BigInteger g, BigInteger q, BigInteger j, DHValidationParameters validation)
DHParameters(BigInteger p, BigInteger g, BigInteger q, int m, int l, BigInteger j, DHValidationParameters validation)
Public Methods
boolean equals(Object obj)
BigInteger getG()
BigInteger getJ()
Return the subgroup factor J.
int getL()
Return the private value length in bits - if set, zero otherwise
int getM()
Return the minimum length of the private value.
BigInteger getP()
BigInteger getQ()
DHValidationParameters getValidationParameters()
int hashCode()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DHParameters (BigInteger p, BigInteger g)

public DHParameters (BigInteger p, BigInteger g, BigInteger q)

public DHParameters (BigInteger p, BigInteger g, BigInteger q, int l)

public DHParameters (BigInteger p, BigInteger g, BigInteger q, int m, int l)

public DHParameters (BigInteger p, BigInteger g, BigInteger q, BigInteger j, DHValidationParameters validation)

public DHParameters (BigInteger p, BigInteger g, BigInteger q, int m, int l, BigInteger j, DHValidationParameters validation)

Public Methods

public boolean equals (Object obj)

public BigInteger getG ()

public BigInteger getJ ()

Return the subgroup factor J.

Returns
  • subgroup factor

public int getL ()

Return the private value length in bits - if set, zero otherwise

Returns
  • the private value length in bits, zero otherwise.

public int getM ()

Return the minimum length of the private value.

Returns
  • the minimum length of the private value in bits.

public BigInteger getP ()

public BigInteger getQ ()

public DHValidationParameters getValidationParameters ()

public int hashCode ()