Package org.bouncycastle.crypto.fips
Class FipsTripleDES.KeyGenerator
- java.lang.Object
-
- org.bouncycastle.crypto.fips.FipsSymmetricKeyGenerator
-
- org.bouncycastle.crypto.fips.FipsTripleDES.KeyGenerator
-
- All Implemented Interfaces:
SymmetricKeyGenerator
- Enclosing class:
- FipsTripleDES
public static final class FipsTripleDES.KeyGenerator extends FipsSymmetricKeyGenerator
Triple-DES key generator.
-
-
Constructor Summary
Constructors Constructor Description KeyGenerator(int keySizeInBits, java.security.SecureRandom random)Constructor to generate a general purpose Triple-DES key.KeyGenerator(FipsParameters parameterSet, int keySizeInBits, java.security.SecureRandom random)Constructor to generate a specific purpose Triple-DES key for an algorithm in a particular parameter set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SymmetricKeygenerateKey()Return a newly generated symmetric key.
-
-
-
Constructor Detail
-
KeyGenerator
public KeyGenerator(int keySizeInBits, java.security.SecureRandom random)Constructor to generate a general purpose Triple-DES key.- Parameters:
keySizeInBits- size of the key in bits.random- secure random to use in key construction.
-
KeyGenerator
public KeyGenerator(FipsParameters parameterSet, int keySizeInBits, java.security.SecureRandom random)
Constructor to generate a specific purpose Triple-DES key for an algorithm in a particular parameter set.- Parameters:
parameterSet- FIPS algorithm key is for,keySizeInBits- size of the key in bits.random- secure random to use in key construction.
-
-
Method Detail
-
generateKey
public SymmetricKey generateKey()
Description copied from interface:SymmetricKeyGeneratorReturn a newly generated symmetric key.- Returns:
- a new symmetric key.
-
-