Package org.bouncycastle.crypto
Class CipherKeyGenerator
java.lang.Object
org.bouncycastle.crypto.CipherKeyGenerator
- Direct Known Subclasses:
DESKeyGenerator
The base class for symmetric, or secret, cipher key generators.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
generate a secret key.void
init
(KeyGenerationParameters param) initialise the key generator.
-
Constructor Details
-
CipherKeyGenerator
public CipherKeyGenerator()
-
-
Method Details
-
init
initialise the key generator.- Parameters:
param
- the parameters to be used for key generation
-
generateKey
public byte[] generateKey()generate a secret key.- Returns:
- a byte array containing the key value.
-