org.bouncycastle.crypto.params

Class DHParameters

Implemented Interfaces:
CipherParameters

public class DHParameters
extends java.lang.Object
implements CipherParameters

Constructor Summary

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

Method Summary

boolean
equals(Object obj)
BigInteger
getG()
int
getJ()
Return the private value length in bits - if set, zero otherwise (use bitLength(P) - 1).
BigInteger
getP()
BigInteger
getQ()
DHValidationParameters
getValidationParameters()
int
hashCode()

Constructor Details

DHParameters

public DHParameters(BigInteger p,
                    BigInteger g)

DHParameters

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

DHParameters

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

Method Details

equals

public boolean equals(Object obj)

getG

public BigInteger getG()

getJ

public int getJ()
Return the private value length in bits - if set, zero otherwise (use bitLength(P) - 1).
Returns:
the private value length in bits, zero otherwise.

getP

public BigInteger getP()

getQ

public BigInteger getQ()

getValidationParameters

public DHValidationParameters getValidationParameters()

hashCode

public int hashCode()