|
|||||||||
| 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.rc2.interfaces.RC2KeyGenerator
|
+--de.flexiprovider.core.rc2.RC2KeyGenerator
This class generates new keys for the RC2 block cipher. The default key size is 64 bits.
| Constructor Summary | |
RC2KeyGenerator()
|
|
| Method Summary | |
SecretKey |
generateKey()
Generate an RC2 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 this key generator with the given key size and source of randomness. |
void |
init(SecureRandom random)
Initialize the key generator with the given source of randomness. |
| Methods inherited from class de.flexiprovider.core.rc2.interfaces.RC2KeyGenerator |
engineInit |
| Methods inherited from class de.flexiprovider.api.keys.SecretKeyGenerator |
engineGenerateKey, engineInit, engineInit, init, init, init |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public RC2KeyGenerator()
| 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 given parameters are null or not an
instance of RC2KeyGenParameterSpec.
public void init(int keySize,
SecureRandom random)
init in class SecretKeyGeneratorkeySize - the key size in bitsrandom - the source of randomnesspublic void init(SecureRandom random)
init in class SecretKeyGeneratorrandom - the source of randomnesspublic SecretKey generateKey()
generateKey in class SecretKeyGeneratorRC2Key
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||