org.bouncycastle.crypto.params
public class NaccacheSternKeyGenerationParameters extends KeyGenerationParameters
Constructor Summary | |
---|---|
NaccacheSternKeyGenerationParameters(SecureRandom random, int strength, int certainty, int cntSmallPrimes)
Parameters for generating a NaccacheStern KeyPair.
| |
NaccacheSternKeyGenerationParameters(SecureRandom random, int strength, int certainty, int cntSmallPrimes, boolean debug)
Parameters for a NaccacheStern KeyPair.
|
Method Summary | |
---|---|
int | getCertainty() |
int | getCntSmallPrimes() |
boolean | isDebug() |
Parameters: random The source of randomness strength The desired strength of the Key in Bits certainty the probability that the generated primes are not really prime as integer: 2^(-certainty) is then the probability cntSmallPrimes How many small key factors are desired
Parameters: random The source of randomness strength The desired strength of the Key in Bits certainty the probability that the generated primes are not really prime as integer: 2^(-certainty) is then the probability cntSmallPrimes How many small key factors are desired debug Turn debugging on or off (reveals secret information, use with caution)
Returns: Returns the certainty.
Returns: Returns the cntSmallPrimes.