org.bouncycastle.crypto
Class KeyGenerationParameters
java.lang.Object
org.bouncycastle.crypto.KeyGenerationParameters
public class KeyGenerationParameters
extends java.lang.Object
The base class for parameters to key generators.
KeyGenerationParameters(SecureRandom random, int strength) - initialise the generator with a source of randomness
and a strength (in bits).
|
SecureRandom | getRandom() - return the random source associated with this
generator.
|
int | getStrength() - return the bit strength for keys produced by this generator,
|
KeyGenerationParameters
public KeyGenerationParameters(SecureRandom random,
int strength)
initialise the generator with a source of randomness
and a strength (in bits).
random
- the random byte source.strength
- the size, in bits, of the keys we want to produce.
getRandom
public SecureRandom getRandom()
return the random source associated with this
generator.
- the generators random source.
getStrength
public int getStrength()
return the bit strength for keys produced by this generator,
- the strength of the keys this generator produces (in bits).