Package org.bouncycastle.crypto.util
Class CipherKeyGeneratorFactory
java.lang.Object
org.bouncycastle.crypto.util.CipherKeyGeneratorFactory
Factory methods for generating secret key generators for symmetric ciphers.
-
Method Summary
Modifier and TypeMethodDescriptionstatic CipherKeyGenerator
createKeyGenerator
(ASN1ObjectIdentifier algorithm, SecureRandom random) Create a key generator for the passed in Object Identifier.
-
Method Details
-
createKeyGenerator
public static CipherKeyGenerator createKeyGenerator(ASN1ObjectIdentifier algorithm, SecureRandom random) throws IllegalArgumentException Create a key generator for the passed in Object Identifier.- Parameters:
algorithm
- the Object Identifier indicating the algorithn the generator is for.random
- a source of random to initialise the generator with.- Returns:
- an initialised CipherKeyGenerator.
- Throws:
IllegalArgumentException
- if the algorithm cannot be identified.
-