Package org.bouncycastle.crypto.general
Class RSA.KeyGenParameters
java.lang.Object
org.bouncycastle.crypto.general.GeneralParameters<GeneralAlgorithm>
org.bouncycastle.crypto.general.RSA.KeyGenParameters
- All Implemented Interfaces:
Parameters
- Enclosing class:
- RSA
RSA key pair generation parameters for non-FIPS usages.
-
Constructor Summary
ConstructorsConstructorDescriptionKeyGenParameters
(BigInteger publicExponent, int keySize) Base constructor.KeyGenParameters
(BigInteger publicExponent, int keySize, int certainty) Base constructor with certainty.KeyGenParameters
(RSA.SignatureParameters parameters, BigInteger publicExponent, int keySize) Constructor for a key targeted to a specific signature algorithm.KeyGenParameters
(RSA.WrapParameters parameters, BigInteger publicExponent, int keySize) Constructor for a key targeted to a specific wrap algorithm. -
Method Summary
Modifier and TypeMethodDescriptionint
int
Methods inherited from class org.bouncycastle.crypto.general.GeneralParameters
getAlgorithm
-
Constructor Details
-
KeyGenParameters
Base constructor.- Parameters:
publicExponent
- the public exponent to use.keySize
- the key size (in bits).
-
KeyGenParameters
Base constructor with certainty.- Parameters:
publicExponent
- the public exponent to use.keySize
- the key size (in bits).certainty
- certainty to use for prime number calculation.
-
KeyGenParameters
Constructor for a key targeted to a specific signature algorithm.- Parameters:
parameters
- the signature parameter set containing the algorithm.publicExponent
- the public exponent to use.keySize
- the key size (in bits).
-
KeyGenParameters
Constructor for a key targeted to a specific wrap algorithm.- Parameters:
parameters
- the wrap parameter set containing the algorithm.publicExponent
- the public exponent to use.keySize
- the key size (in bits).
-
-
Method Details
-
getPublicExponent
-
getKeySize
public int getKeySize() -
getCertainty
public int getCertainty()
-