Class DSAValidationParameters
java.lang.Object
org.bouncycastle.crypto.asymmetric.DSAValidationParameters
Validation parameters for confirming DSA parameter generation.
-
Constructor Summary
ConstructorsConstructorDescriptionDSAValidationParameters
(byte[] seed) Base constructor - a seed, the counter will be set to -1.DSAValidationParameters
(byte[] seed, int counter) Constructor with a seed and a (p, q) counter for it.DSAValidationParameters
(byte[] seed, int counter, int usageIndex) Base constructor with a seed, counter, and usage index. -
Method Summary
-
Constructor Details
-
DSAValidationParameters
public DSAValidationParameters(byte[] seed) Base constructor - a seed, the counter will be set to -1.- Parameters:
seed
- the seed used to generate the parameters.
-
DSAValidationParameters
public DSAValidationParameters(byte[] seed, int counter) Constructor with a seed and a (p, q) counter for it.- Parameters:
seed
- the seed used to generate the parameters.counter
- the counter value associated with using the seed to generate the parameters.
-
DSAValidationParameters
public DSAValidationParameters(byte[] seed, int counter, int usageIndex) Base constructor with a seed, counter, and usage index.- Parameters:
seed
- the seed value.counter
- (p, q) counter - -1 if not avaliable.usageIndex
- the usage index.
-
-
Method Details
-
getCounter
public int getCounter()Return the (p, q) counter value.- Returns:
- the (p, q) counter value, -1 if unavailable.
-
getSeed
public byte[] getSeed()Return the seed used for the parameter generation.- Returns:
- the seed array.
-
getUsageIndex
public int getUsageIndex()Return the usage index, -1 if none given.- Returns:
- the usage index.
-
hashCode
public int hashCode() -
equals
-