Top Fields Constructors Methods
org.bouncycastle.crypto.params

public Class DSAParameterGenerationParameters

extends Object
Class Inheritance
Imports
java.security.SecureRandom

Field Summary

Modifier and TypeField and Description
private final int
public static final int
public static final int
private final int
l

private final int
n

private final SecureRandom
private final int

Constructor Summary

AccessConstructor and Description
public
DSAParameterGenerationParameters(int
desired length of prime P in bits (the effective key size).
L
,
int
desired length of prime Q in bits.
N
,
int
certainty level for prime number generation.
certainty
,
SecureRandom
the source of randomness to use.
random
)

Construct without a usage index, this will do a random construction of G.

public
DSAParameterGenerationParameters(int
desired length of prime P in bits (the effective key size).
L
,
int
desired length of prime Q in bits.
N
,
int
certainty level for prime number generation.
certainty
,
SecureRandom
the source of randomness to use.
random
,
int
a valid usage index.
usageIndex
)

Construct for a specific usage index - this has the effect of using verifiable canonical generation of G.

Method Summary

Modifier and TypeMethod and Description
public int
public int
getL()

public int
getN()

public SecureRandom
public int
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

certaintyback to summary
private final int certainty
DIGITAL_SIGNATURE_USAGEback to summary
public static final int DIGITAL_SIGNATURE_USAGE
KEY_ESTABLISHMENT_USAGEback to summary
public static final int KEY_ESTABLISHMENT_USAGE
lback to summary
private final int l
nback to summary
private final int n
randomback to summary
private final SecureRandom random
usageIndexback to summary
private final int usageIndex

Constructor Detail

DSAParameterGenerationParametersback to summary
public DSAParameterGenerationParameters(int L, int N, int certainty, SecureRandom random)

Construct without a usage index, this will do a random construction of G.

Parameters
L:int

desired length of prime P in bits (the effective key size).

N:int

desired length of prime Q in bits.

certainty:int

certainty level for prime number generation.

random:SecureRandom

the source of randomness to use.

DSAParameterGenerationParametersback to summary
public DSAParameterGenerationParameters(int L, int N, int certainty, SecureRandom random, int usageIndex)

Construct for a specific usage index - this has the effect of using verifiable canonical generation of G.

Parameters
L:int

desired length of prime P in bits (the effective key size).

N:int

desired length of prime Q in bits.

certainty:int

certainty level for prime number generation.

random:SecureRandom

the source of randomness to use.

usageIndex:int

a valid usage index.

Method Detail

getCertaintyback to summary
public int getCertainty()
getLback to summary
public int getL()
getNback to summary
public int getN()
getRandomback to summary
public SecureRandom getRandom()
getUsageIndexback to summary
public int getUsageIndex()