org.bouncycastle.crypto.params
Class NaccacheSternKeyGenerationParameters
public class NaccacheSternKeyGenerationParameters
Parameters for NaccacheStern public private key generation. For details on
this cipher, please see
http://www.gemplus.com/smart/rd/publications/pdf/NS98pkcs.pdf
NaccacheSternKeyGenerationParameters
public NaccacheSternKeyGenerationParameters(SecureRandom random,
int strength,
int certainty,
int cntSmallPrimes)
Parameters for generating a NaccacheStern KeyPair.
random
- The source of randomnessstrength
- The desired strength of the Key in Bitscertainty
- the probability that the generated primes are not really prime
as integer: 2^(-certainty) is then the probabilitycntSmallPrimes
- How many small key factors are desired
NaccacheSternKeyGenerationParameters
public NaccacheSternKeyGenerationParameters(SecureRandom random,
int strength,
int certainty,
int cntSmallPrimes,
boolean debug)
Parameters for a NaccacheStern KeyPair.
random
- The source of randomnessstrength
- The desired strength of the Key in Bitscertainty
- the probability that the generated primes are not really prime
as integer: 2^(-certainty) is then the probabilitycntSmallPrimes
- How many small key factors are desireddebug
- Turn debugging on or off (reveals secret information, use with
caution)
getCertainty
public int getCertainty()
getCntSmallPrimes
public int getCntSmallPrimes()
- Returns the cntSmallPrimes.
isDebug
public boolean isDebug()