|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--javax.crypto.KeyGeneratorSpi
|
+--com.ibm.crypto.fips.provider.DESedeKeyGenerator
This class generates a Triple DES key.
| Constructor Summary | |
|---|---|
DESedeKeyGenerator()
Verify the JCE framework in the constructor. |
|
| Method Summary | |
|---|---|
protected javax.crypto.SecretKey |
engineGenerateKey()
Generates the Triple DES key. |
protected void |
engineInit(java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random)
Initializes this key generator with the specified parameter set and a user-provided source of randomness. |
protected void |
engineInit(int keysize,
java.security.SecureRandom random)
Initializes this key generator for a certain keysize, using the given source of randomness. |
protected void |
engineInit(java.security.SecureRandom random)
Initializes this key generator. |
protected javax.crypto.SecretKey |
internalGenerateKey()
Generates the Triple DES key. |
protected void |
internalInit(java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random)
Initializes this key generator with the specified parameter set and a user-provided source of randomness. |
protected void |
internalInit(int keysize,
java.security.SecureRandom random)
Initializes this key generator for a certain keysize, using the given source of randomness. |
protected void |
internalInit(java.security.SecureRandom random)
Initializes this key generator. |
boolean |
isFipsApproved()
Module identifies if the cryptographic operation (algorithm) is FIPS certified |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DESedeKeyGenerator()
java.lang.SecurityException - if fails to verify
the JCE framework.| Method Detail |
public boolean isFipsApproved()
AlgorithmStatusisFipsApproved in interface AlgorithmStatusAlgorithmStatus.isFipsApproved()protected void engineInit(java.security.SecureRandom random)
engineInit in class javax.crypto.KeyGeneratorSpirandom - the source of randomness for this generatorFIPSRuntimeException - if SelfTest.isFipsRunnable returns false.protected void internalInit(java.security.SecureRandom random)
random - the source of randomness for this generator
protected void engineInit(java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random)
throws java.security.InvalidAlgorithmParameterException
engineInit in class javax.crypto.KeyGeneratorSpiparams - the key generation parametersrandom - the source of randomness for this key generatorjava.security.InvalidAlgorithmParameterException - if params is
inappropriate for this key generatorFIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
protected void internalInit(java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random)
throws java.security.InvalidAlgorithmParameterException
params - the key generation parametersrandom - the source of randomness for this key generatorjava.security.InvalidAlgorithmParameterException - if params is
inappropriate for this key generator
protected void engineInit(int keysize,
java.security.SecureRandom random)
engineInit in class javax.crypto.KeyGeneratorSpikeysize - the keysize. This is an algorithm-specific
metric specified in number of bits. A keysize with 112 bits of entropy
corresponds to a Triple DES key with 2 intermediate keys, and a keysize
with 168 bits of entropy corresponds to a Triple DES key with 3
intermediate keys.random - the source of randomness for this key generatorFIPSRuntimeException - if SelfTest.isFipsRunnable returns false.
protected void internalInit(int keysize,
java.security.SecureRandom random)
keysize - the keysize. This is an algorithm-specific
metric specified in number of bits. A keysize with 112 bits of entropy
corresponds to a Triple DES key with 2 intermediate keys, and a keysize
with 168 bits of entropy corresponds to a Triple DES key with 3
intermediate keys.random - the source of randomness for this key generatorprotected javax.crypto.SecretKey engineGenerateKey()
engineGenerateKey in class javax.crypto.KeyGeneratorSpiFIPSRuntimeException - if SelfTest.isFipsRunnable returns false.protected javax.crypto.SecretKey internalGenerateKey()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||