|
|||||||||
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.DESKeyGenerator
This class generates a DES key.
Constructor Summary | |
---|---|
DESKeyGenerator()
Verify the JCE framework in the constructor. |
Method Summary | |
---|---|
protected javax.crypto.SecretKey |
engineGenerateKey()
Generates the 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 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 DESKeyGenerator()
java.lang.SecurityException
- if fails to verify
the JCE framework.Method Detail |
public boolean isFipsApproved()
AlgorithmStatus
isFipsApproved
in interface AlgorithmStatus
AlgorithmStatus.isFipsApproved()
protected void engineInit(java.security.SecureRandom random)
engineInit
in class javax.crypto.KeyGeneratorSpi
random
- 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 generatorprotected void engineInit(java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random) throws java.security.InvalidAlgorithmParameterException
engineInit
in class javax.crypto.KeyGeneratorSpi
params
- 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 generatorprotected void engineInit(int keysize, java.security.SecureRandom random)
engineInit
in class javax.crypto.KeyGeneratorSpi
keysize
- the keysize. This is an algorithm-specific
metric specified in number of bits.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.random
- the source of randomness for this key generatorprotected javax.crypto.SecretKey engineGenerateKey()
engineGenerateKey
in class javax.crypto.KeyGeneratorSpi
FIPSRuntimeException
- 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 |