public class NaccacheSternKeyGenerationParameters extends KeyGenerationParameters
| Constructor and Description |
|---|
NaccacheSternKeyGenerationParameters(java.security.SecureRandom random,
int strength,
int certainty,
int cntSmallPrimes)
Parameters for generating a NaccacheStern KeyPair.
|
NaccacheSternKeyGenerationParameters(java.security.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, getStrengthpublic NaccacheSternKeyGenerationParameters(java.security.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(java.security.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)