public class

NaccacheSternKeyGenerationParameters

extends KeyGenerationParameters
java.lang.Object
   ↳ org.bouncycastle.crypto.KeyGenerationParameters
     ↳ org.bouncycastle.crypto.params.NaccacheSternKeyGenerationParameters

Class Overview

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

Summary

Public Constructors
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.
Public Methods
int getCertainty()
int getCntSmallPrimes()
boolean isDebug()
[Expand]
Inherited Methods
From class org.bouncycastle.crypto.KeyGenerationParameters
From class java.lang.Object

Public Constructors

public NaccacheSternKeyGenerationParameters (SecureRandom random, int strength, int certainty, int cntSmallPrimes)

Parameters for generating a NaccacheStern KeyPair.

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

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

Parameters for a NaccacheStern KeyPair.

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)

Public Methods

public int getCertainty ()

Returns
  • Returns the certainty.

public int getCntSmallPrimes ()

Returns
  • Returns the cntSmallPrimes.

public boolean isDebug ()