public class DHValidationParameters
extends java.lang.Object
| Constructor and Description |
|---|
DHValidationParameters(byte[] seed)
Base constructor - a seed, the counter will be set to -1.
|
DHValidationParameters(byte[] seed,
int counter)
Constructor with a seed and a (p, q) counter for it.
|
DHValidationParameters(byte[] seed,
int counter,
int usageIndex)
Base constructor with a seed, counter, and usage index.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
getCounter()
Return the (p, q) counter value.
|
byte[] |
getSeed()
Return the seed used for the parameter generation.
|
int |
getUsageIndex()
Return the usage index, -1 if none given.
|
int |
hashCode() |
public DHValidationParameters(byte[] seed)
seed - the seed used to generate the parameters.public DHValidationParameters(byte[] seed,
int counter)
seed - the seed used to generate the parameters.counter - the counter value associated with using the seed to generate the parameters.public DHValidationParameters(byte[] seed,
int counter,
int usageIndex)
seed - the seed value.counter - (p, q) counter - -1 if not avaliable.usageIndex - the usage index.public int getCounter()
public byte[] getSeed()
public int getUsageIndex()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Object