Class DESede.KeyGenerator
java.lang.Object
javax.crypto.KeyGeneratorSpi
org.bouncycastle.jcajce.provider.symmetric.util.BaseKeyGenerator
org.bouncycastle.jcajce.provider.symmetric.DESede.KeyGenerator
- Enclosing class:
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). If you give it a size, you'll get just what you
asked for.
-
Field Summary
Fields inherited from class org.bouncycastle.jcajce.provider.symmetric.util.BaseKeyGenerator
algName, defaultKeySize, engine, keySize, uninitialised
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected SecretKey
protected void
engineInit
(int keySize, SecureRandom random) Methods inherited from class org.bouncycastle.jcajce.provider.symmetric.util.BaseKeyGenerator
engineInit, engineInit
-
Constructor Details
-
KeyGenerator
public KeyGenerator()
-
-
Method Details
-
engineInit
- Overrides:
engineInit
in classBaseKeyGenerator
-
engineGenerateKey
- Overrides:
engineGenerateKey
in classBaseKeyGenerator
-