1 package org.bouncycastle.crypto;
3 import java.security.SecureRandom;
6 * The base class for parameters to key generators.
8 public class KeyGenerationParameters
10 private SecureRandom random;
14 * initialise the generator with a source of randomness
15 * and a strength (in bits).
17 * @param random the random byte source.
18 * @param strength the size, in bits, of the keys we want to produce.
20 public KeyGenerationParameters(
25 this.strength = strength;
29 * return the random source associated with this
32 * @return the generators random source.
34 public SecureRandom getRandom()
40 * return the bit strength for keys produced by this generator,
42 * @return the strength of the keys this generator produces (in bits).
44 public int getStrength()