CramerShoupKeyGenerationParameters
, DHKeyGenerationParameters
, DSAKeyGenerationParameters
, ECKeyGenerationParameters
, ElGamalKeyGenerationParameters
, GMSSKeyGenerationParameters
, GOST3410KeyGenerationParameters
, McElieceCCA2KeyGenerationParameters
, McElieceKeyGenerationParameters
, NaccacheSternKeyGenerationParameters
, NTRUEncryptionKeyGenerationParameters
, NTRUSigningKeyGenerationParameters
, RainbowKeyGenerationParameters
, RSAKeyGenerationParameters
, SPHINCS256KeyGenerationParameters
, XMSSKeyGenerationParameters
, XMSSMTKeyGenerationParameters
public class KeyGenerationParameters
extends java.lang.Object
Constructor | Description |
---|---|
KeyGenerationParameters(java.security.SecureRandom random,
int strength) |
initialise the generator with a source of randomness
and a strength (in bits).
|
Modifier and Type | Method | Description |
---|---|---|
java.security.SecureRandom |
getRandom() |
return the random source associated with this
generator.
|
int |
getStrength() |
return the bit strength for keys produced by this generator,
|
public KeyGenerationParameters(java.security.SecureRandom random, int strength)
random
- the random byte source.strength
- the size, in bits, of the keys we want to produce.public java.security.SecureRandom getRandom()
public int getStrength()