Package org.bouncycastle.crypto.params
Class DHParameters
java.lang.Object
org.bouncycastle.crypto.params.DHParameters
- All Implemented Interfaces:
CipherParameters
-
Constructor Summary
ConstructorDescriptionDHParameters
(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, int m, int l, BigInteger j, DHValidationParameters validation) DHParameters
(BigInteger p, BigInteger g, BigInteger q, BigInteger j, DHValidationParameters validation) -
Method Summary
-
Constructor Details
-
DHParameters
-
DHParameters
-
DHParameters
-
DHParameters
-
DHParameters
public DHParameters(BigInteger p, BigInteger g, BigInteger q, BigInteger j, DHValidationParameters validation) -
DHParameters
public DHParameters(BigInteger p, BigInteger g, BigInteger q, int m, int l, BigInteger j, DHValidationParameters validation)
-
-
Method Details
-
getP
-
getG
-
getQ
-
getJ
Return the subgroup factor J.- Returns:
- subgroup factor
-
getM
public int getM()Return the minimum length of the private value.- Returns:
- the minimum length of the private value in bits.
-
getL
public int getL()Return the private value length in bits - if set, zero otherwise- Returns:
- the private value length in bits, zero otherwise.
-
getValidationParameters
-
equals
-
hashCode
public int hashCode()
-