|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--javax.crypto.KeyGeneratorSpi
|
+--de.flexiprovider.api.keys.SecretKeyGenerator
|
+--de.flexiprovider.core.rc5.RC5KeyGenerator
This class generates new keys for the RC5 block cipher. The default key size is 128 bits.
| Constructor Summary | |
RC5KeyGenerator()
|
|
| Method Summary | |
SecretKey |
generateKey()
Generate an RC5 key. |
void |
init(AlgorithmParameterSpec params,
SecureRandom random)
Initialize the key generator with the given parameters and source of randomness. |
void |
init(int keySize,
SecureRandom random)
Initialize the key generator with the given key size and source of randomness. |
void |
init(SecureRandom random)
Initialize the key generator with the default key size and the given source of randomness. |
| Methods inherited from class de.flexiprovider.api.keys.SecretKeyGenerator |
engineGenerateKey, engineInit, engineInit, engineInit, init, init, init |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public RC5KeyGenerator()
| Method Detail |
public void init(AlgorithmParameterSpec params,
SecureRandom random)
throws InvalidAlgorithmParameterException
default parameters
are used.init in class SecretKeyGeneratorparams - the parametersrandom - the source of randomnessInvalidAlgorithmParameterException - if the parameters are null not an instance of
RC5KeyGenParameterSpec.
public void init(int keySize,
SecureRandom random)
init in class SecretKeyGeneratorkeySize - the key size in bytesrandom - the source of randomnesspublic void init(SecureRandom random)
init in class SecretKeyGeneratorrandom - the source of randomnesspublic SecretKey generateKey()
generateKey in class SecretKeyGeneratorRC5Key
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||