Top Description Fields Constructors Methods
org.bouncycastle.crypto.params

public Class NaccacheSternKeyGenerationParameters

extends KeyGenerationParameters
Class Inheritance
Imports
java.security.SecureRandom, org.bouncycastle.crypto.KeyGenerationParameters

Parameters for NaccacheStern public private key generation. For details on this cipher, please see https://www.gemplus.com/smart/rd/publications/pdf/NS98pkcs.pdf

Field Summary

Modifier and TypeField and Description
private int
private int
private boolean

Constructor Summary

AccessConstructor and Description
public
NaccacheSternKeyGenerationParameters(SecureRandom
The source of randomness
random
,
int
The desired strength of the Key in Bits
strength
,
int
the probability that the generated primes are not really prime as integer: 2^(-certainty) is then the probability
certainty
,
int
How many small key factors are desired
cntSmallPrimes
)

Parameters for generating a NaccacheStern KeyPair.

public
NaccacheSternKeyGenerationParameters(SecureRandom
The source of randomness
random
,
int
The desired strength of the Key in Bits
strength
,
int
the probability that the generated primes are not really prime as integer: 2^(-certainty) is then the probability
certainty
,
int
How many small key factors are desired
cntSmallPrimes
,
boolean
Turn debugging on or off (reveals secret information, use with caution)
debug
)

Parameters for a NaccacheStern KeyPair.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

Returns the certainty.
getCertainty
()

public int

Returns:

Returns the cntSmallPrimes.
getCntSmallPrimes
()

public boolean
Inherited from org.bouncycastle.crypto.KeyGenerationParameters:
getRandomgetStrength

Field Detail

certaintyback to summary
private int certainty
cntSmallPrimesback to summary
private int cntSmallPrimes
debugback to summary
private boolean debug

Constructor Detail

NaccacheSternKeyGenerationParametersback to summary
public NaccacheSternKeyGenerationParameters(SecureRandom random, int strength, int certainty, int cntSmallPrimes)

Parameters for generating a NaccacheStern KeyPair.

Parameters
random:SecureRandom

The source of randomness

strength:int

The desired strength of the Key in Bits

certainty:int

the probability that the generated primes are not really prime as integer: 2^(-certainty) is then the probability

cntSmallPrimes:int

How many small key factors are desired

NaccacheSternKeyGenerationParametersback to summary
public NaccacheSternKeyGenerationParameters(SecureRandom random, int strength, int certainty, int cntSmallPrimes, boolean debug)

Parameters for a NaccacheStern KeyPair.

Parameters
random:SecureRandom

The source of randomness

strength:int

The desired strength of the Key in Bits

certainty:int

the probability that the generated primes are not really prime as integer: 2^(-certainty) is then the probability

cntSmallPrimes:int

How many small key factors are desired

debug:boolean

Turn debugging on or off (reveals secret information, use with caution)

Method Detail

getCertaintyback to summary
public int getCertainty()
Returns:int

Returns the certainty.

getCntSmallPrimesback to summary
public int getCntSmallPrimes()
Returns:int

Returns the cntSmallPrimes.

isDebugback to summary
public boolean isDebug()