| Modifier and Type | Field and Description |
|---|---|
| private static final BigInteger | |
| private RsaKeyGenerationParameters |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private BigInteger | Returns: A prime p, with (p-1) relatively prime to ethe bit-length of the returned prime bitlength, BigInteger the RSA public exponent e, BigInteger sqrdBound)Choose a random prime value for use with RSA |
| public AsymmetricCipherKeyPair | generateKeyPair()
Implements org. |
| private static int | |
| public void | init(KeyGenerationParameters
the parameters the key pair is to be initialised with. param)Implements org. |
| private boolean |
| ONE | back to summary |
|---|---|
| private static final BigInteger ONE | |
| param | back to summary |
|---|---|
| private RsaKeyGenerationParameters param | |
| RsaKeyPairGenerator | back to summary |
|---|---|
| pack-priv RsaKeyPairGenerator() | |
| chooseRandomPrime | back to summary |
|---|---|
| private BigInteger chooseRandomPrime(int bitlength, BigInteger e, BigInteger sqrdBound) Choose a random prime value for use with RSA
| |
| generateKeyPair | back to summary |
|---|---|
| public AsymmetricCipherKeyPair generateKeyPair() Implements org. Doc from org. return an AsymmetricCipherKeyPair containing the generated keys.
| |
| getNumberOfIterations | back to summary |
|---|---|
| private static int getNumberOfIterations(int bits, int certainty) | |
| init | back to summary |
|---|---|
| public void init(KeyGenerationParameters param) Implements org. Doc from org. intialise the key pair generator.
| |
| isProbablePrime | back to summary |
|---|---|
| private boolean isProbablePrime(BigInteger x, int iterations) | |