Save This Page
Home » crypto-143 » org.bouncycastle.crypto » [javadoc | source]
org.bouncycastle.crypto
public class: KeyGenerationParameters [javadoc | source]
java.lang.Object
   org.bouncycastle.crypto.KeyGenerationParameters

Direct Known Subclasses:
    ECKeyGenerationParameters, DHKeyGenerationParameters, GOST3410KeyGenerationParameters, RSAKeyGenerationParameters, NaccacheSternKeyGenerationParameters, DSAKeyGenerationParameters, ElGamalKeyGenerationParameters

The base class for parameters to key generators.
Constructor:
 public KeyGenerationParameters(SecureRandom random,
    int strength) 
    initialise the generator with a source of randomness and a strength (in bits).
    Parameters:
    random - the random byte source.
    strength - the size, in bits, of the keys we want to produce.
Method from org.bouncycastle.crypto.KeyGenerationParameters Summary:
getRandom,   getStrength
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.bouncycastle.crypto.KeyGenerationParameters Detail:
 public SecureRandom getRandom() 
    return the random source associated with this generator.
 public int getStrength() 
    return the bit strength for keys produced by this generator,