org.bouncycastle.crypto
public class KeyGenerationParameters extends Object
| Constructor Summary | |
|---|---|
| KeyGenerationParameters(SecureRandom random, int strength)
initialise the generator with a source of randomness
and a strength (in bits).
| |
| Method Summary | |
|---|---|
| SecureRandom | getRandom()
return the random source associated with this
generator.
|
| int | getStrength()
return the bit strength for keys produced by this generator,
|
Parameters: random the random byte source. strength the size, in bits, of the keys we want to produce.
Returns: the generators random source.
Returns: the strength of the keys this generator produces (in bits).