DHParameterspublic class DHParameters extends Object implements org.bouncycastle.crypto.CipherParameters
Fields Summary |
---|
private BigInteger | g | private BigInteger | p | private BigInteger | q | private int | j | private DHValidationParameters | validation |
Methods Summary |
---|
public boolean | equals(java.lang.Object obj)
if (!(obj instanceof DHParameters))
{
return false;
}
DHParameters pm = (DHParameters)obj;
if (this.getValidationParameters() != null)
{
if (!this.getValidationParameters().equals(pm.getValidationParameters()))
{
return false;
}
}
else
{
if (pm.getValidationParameters() != null)
{
return false;
}
}
if (this.getQ() != null)
{
if (!this.getQ().equals(pm.getQ()))
{
return false;
}
}
else
{
if (pm.getQ() != null)
{
return false;
}
}
return (j == pm.getJ()) && pm.getP().equals(p) && pm.getG().equals(g);
| public java.math.BigInteger | getG()
return g;
| public int | getJ()
return j;
| public java.math.BigInteger | getP()
return p;
| public java.math.BigInteger | getQ()
return q;
| public DHValidationParameters | getValidationParameters()
return validation;
|
|