|
Bouncy Castle Cryptography 1.51 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.bouncycastle.crypto.generators.RSAKeyPairGenerator
public class RSAKeyPairGenerator
an RSA key pair generator.
| Constructor Summary | |
|---|---|
RSAKeyPairGenerator()
|
|
| Method Summary | |
|---|---|
protected java.math.BigInteger |
chooseRandomPrime(int bitlength,
java.math.BigInteger e)
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. |
| 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)
bitlength - the bit-length of the returned primee - the RSA public exponent
|
Bouncy Castle Cryptography 1.51 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||