public static final class FipsTripleDES.KeyGenerator extends FipsSymmetricKeyGenerator
| Constructor and Description |
|---|
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.
|
KeyGenerator(int keySizeInBits,
java.security.SecureRandom random)
Constructor to generate a general purpose Triple-DES key.
|
| Modifier and Type | Method and Description |
|---|---|
SymmetricKey |
generateKey()
Return a newly generated symmetric key.
|
public KeyGenerator(int keySizeInBits,
java.security.SecureRandom random)
keySizeInBits - size of the key in bits.random - secure random to use in key construction.public KeyGenerator(FipsParameters parameterSet, int keySizeInBits, java.security.SecureRandom random)
parameterSet - FIPS algorithm key is for,keySizeInBits - size of the key in bits.random - secure random to use in key construction.public SymmetricKey generateKey()
SymmetricKeyGenerator