public class NaccacheSternKeyGenerationParameters extends KeyGenerationParameters
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
int |
getCertainty() |
int |
getCntSmallPrimes() |
boolean |
isDebug() |
getRandom, getStrength
public NaccacheSternKeyGenerationParameters(SecureRandom random, int strength, int certainty, int cntSmallPrimes)
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 desiredpublic NaccacheSternKeyGenerationParameters(SecureRandom random, int strength, int certainty, int cntSmallPrimes, boolean debug)
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)Copyright © 2015. All rights reserved.