| Modifier and Type | Field and Description |
|---|---|
| private static final BigInteger | |
| private NaccacheSternKeyGenerationParameters | |
| private static int[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static Vector | Returns: a vector containing the found primes as Integerthe number of primes to find count)Finds the first 'count' primes starting with 3 |
| public AsymmetricCipherKeyPair | generateKeyPair()
Implements org. |
| private static BigInteger | |
| private static int | |
| public void | init(KeyGenerationParameters
the parameters the key pair is to be initialised with. param)Implements org. |
| private static Vector | Returns: a new ArrayList with the permuted elements.the ArrayList to be permuted arr, SecureRandom the source of Randomness for permutation rand)Generates a permuted ArrayList from the original one. |
| ONE | back to summary |
|---|---|
| private static final BigInteger ONE | |
| param | back to summary |
|---|---|
| private NaccacheSternKeyGenerationParameters param | |
| smallPrimes | back to summary |
|---|---|
| private static int[] smallPrimes | |
| NaccacheSternKeyPairGenerator | back to summary |
|---|---|
| public NaccacheSternKeyPairGenerator() | |
| findFirstPrimes | back to summary |
|---|---|
| private static Vector Finds the first 'count' primes starting with 3
| |
| generateKeyPair | back to summary |
|---|---|
| public AsymmetricCipherKeyPair generateKeyPair() Implements org. Doc from org. return an AsymmetricCipherKeyPair containing the generated keys.
| |
| generatePrime | back to summary |
|---|---|
| private static BigInteger generatePrime(int bitLength, int certainty, SecureRandom rand) | |
| getInt | back to summary |
|---|---|
| private static int getInt(SecureRandom rand, int n) | |
| init | back to summary |
|---|---|
| public void init(KeyGenerationParameters param) Implements org. Doc from org. intialise the key pair generator.
| |
| permuteList | back to summary |
|---|---|
| private static Vector Generates a permuted ArrayList from the original one. The original List is not modified
| |