|
Bouncy Castle Cryptography 1.11 API Specification: Class JCEKeyGenerator
org.bouncycastle.jce.provider
|
Inner Class Summary | |
static class |
JCEKeyGenerator.AES
AES |
static class |
JCEKeyGenerator.Blowfish
Blowfish |
static class |
JCEKeyGenerator.CAST5
CAST5 |
static class |
JCEKeyGenerator.CAST6
CAST6 |
static class |
JCEKeyGenerator.DES
DES |
static class |
JCEKeyGenerator.DESede
DESede - the default for this is to generate a key in a-b-a format that's 24 bytes long but has 16 bytes of key material (the first 8 bytes is repeated as the last 8 bytes). |
static class |
JCEKeyGenerator.IDEA
IDEA |
static class |
JCEKeyGenerator.RC2
RC2 |
static class |
JCEKeyGenerator.RC4
RC4 |
static class |
JCEKeyGenerator.RC5
RC5 |
static class |
JCEKeyGenerator.RC564
RC5 |
static class |
JCEKeyGenerator.RC6
RC6 |
static class |
JCEKeyGenerator.Rijndael
Rijndael |
static class |
JCEKeyGenerator.Serpent
Serpent |
static class |
JCEKeyGenerator.Skipjack
SKIPJACK |
static class |
JCEKeyGenerator.Twofish
Twofish |
Field Summary | |
protected java.lang.String |
algName
|
protected int |
defaultKeySize
|
protected CipherKeyGenerator |
engine
|
protected int |
keySize
|
protected boolean |
uninitialised
|
Constructor Summary | |
protected |
JCEKeyGenerator(java.lang.String algName,
int defaultKeySize,
CipherKeyGenerator engine)
|
Method Summary | |
protected SecretKey |
engineGenerateKey()
Generates a secret key. |
protected void |
engineInit(java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random)
Initializes the key generator with the specified parameter set and a user-provided source of randomness. |
protected void |
engineInit(int keySize,
java.security.SecureRandom random)
Initializes this key generator for a certain keysize, using the given source of randomness. |
protected void |
engineInit(java.security.SecureRandom random)
Initializes the key generator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String algName
protected int keySize
protected int defaultKeySize
protected CipherKeyGenerator engine
protected boolean uninitialised
Constructor Detail |
protected JCEKeyGenerator(java.lang.String algName, int defaultKeySize, CipherKeyGenerator engine)
Method Detail |
protected void engineInit(java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random) throws java.security.InvalidAlgorithmParameterException
KeyGeneratorSpi
engineInit
in class KeyGeneratorSpi
javax.crypto.KeyGeneratorSpi
params
- the key generation parametersrandom
- the source of randomness for this key generatorjava.security.InvalidAlgorithmParameterException
- if params
is
inappropriate for this key generatorprotected void engineInit(java.security.SecureRandom random)
KeyGeneratorSpi
engineInit
in class KeyGeneratorSpi
javax.crypto.KeyGeneratorSpi
random
- the source of randomness for this generatorprotected void engineInit(int keySize, java.security.SecureRandom random)
KeyGeneratorSpi
engineInit
in class KeyGeneratorSpi
javax.crypto.KeyGeneratorSpi
keysize
- the keysize. This is an algorithm-specific metric, specified in number of bits.random
- the source of randomness for this key generator.java.security.InvalidParameterException
- if keysize is wrong or not supported.protected SecretKey engineGenerateKey()
KeyGeneratorSpi
engineGenerateKey
in class KeyGeneratorSpi
javax.crypto.KeyGeneratorSpi
|
Bouncy Castle Cryptography 1.11 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |