Class KeyGenerationParameters
java.lang.Object
org.bouncycastle.crypto.KeyGenerationParameters
- Direct Known Subclasses:
BIKEKeyGenerationParameters, CMCEKeyGenerationParameters, CramerShoupKeyGenerationParameters, DHKeyGenerationParameters, DilithiumKeyGenerationParameters, DSAKeyGenerationParameters, ECCSIKeyGenerationParameters, ECKeyGenerationParameters, Ed25519KeyGenerationParameters, Ed448KeyGenerationParameters, ElGamalKeyGenerationParameters, FalconKeyGenerationParameters, FrodoKeyGenerationParameters, GOST3410KeyGenerationParameters, HQCKeyGenerationParameters, HSSKeyGenerationParameters, LMSKeyGenerationParameters, MayoKeyGenerationParameters, MLDSAKeyGenerationParameters, MLKEMKeyGenerationParameters, NaccacheSternKeyGenerationParameters, NTRUKeyGenerationParameters, NTRULPRimeKeyGenerationParameters, PicnicKeyGenerationParameters, RainbowKeyGenerationParameters, RSAKeyGenerationParameters, SABERKeyGenerationParameters, SLHDSAKeyGenerationParameters, SnovaKeyGenerationParameters, SNTRUPrimeKeyGenerationParameters, SPHINCS256KeyGenerationParameters, SPHINCSPlusKeyGenerationParameters, X25519KeyGenerationParameters, X448KeyGenerationParameters, XMSSKeyGenerationParameters, XMSSMTKeyGenerationParameters, XWingKeyGenerationParameters
The base class for parameters to key generators.
-
Constructor Summary
ConstructorsConstructorDescriptionKeyGenerationParameters(SecureRandom random, int strength) initialise the generator with a source of randomness and a strength (in bits). -
Method Summary
Modifier and TypeMethodDescriptionreturn the random source associated with this generator.intreturn the bit strength for keys produced by this generator,
-
Constructor Details
-
KeyGenerationParameters
initialise the generator with a source of randomness and a strength (in bits).- Parameters:
random- the random byte source.strength- the size, in bits, of the keys we want to produce.
-
-
Method Details
-
getRandom
return the random source associated with this generator.- Returns:
- the generators random source.
-
getStrength
public int getStrength()return the bit strength for keys produced by this generator,- Returns:
- the strength of the keys this generator produces (in bits).
-