|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.crypto.generators.RSAKeyPairGenerator
an RSA key pair generator.
| Constructor Summary | |
RSAKeyPairGenerator()
|
|
| Method Summary | |
protected java.math.BigInteger |
chooseRandomPrime(int bitlength,
java.math.BigInteger e,
java.math.BigInteger sqrdBound)
Choose a random prime value for use with RSA |
AsymmetricCipherKeyPair |
generateKeyPair()
return an AsymmetricCipherKeyPair containing the generated keys. |
void |
init(KeyGenerationParameters param)
intialise the key pair generator. |
protected boolean |
isProbablePrime(java.math.BigInteger x)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RSAKeyPairGenerator()
| Method Detail |
public void init(KeyGenerationParameters param)
AsymmetricCipherKeyPairGenerator
init in interface AsymmetricCipherKeyPairGeneratorparam - the parameters the key pair is to be initialised with.public AsymmetricCipherKeyPair generateKeyPair()
AsymmetricCipherKeyPairGenerator
generateKeyPair in interface AsymmetricCipherKeyPairGenerator
protected java.math.BigInteger chooseRandomPrime(int bitlength,
java.math.BigInteger e,
java.math.BigInteger sqrdBound)
bitlength - the bit-length of the returned primee - the RSA public exponent
protected boolean isProbablePrime(java.math.BigInteger x)
|
Bouncy Castle Cryptography Library 1.82 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||