|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.security.AlgorithmParameterGeneratorSpi
de.fhg.igd.crypto.DESParameterGenerator
public class DESParameterGenerator
This class generates parameters for DESede according to RFC 2311. Encoding and Decoding conforms to ASN.1/DER as set forth in said RFC. The IvParameterSpec and subclasses thereof are supported for initialising the parameters.
DESParameters,
AlgorithmParameterSpec| Field Summary | |
|---|---|
protected SecureRandom |
rnd_
The source of randomness used to generate IVs. |
| Constructor Summary | |
|---|---|
DESParameterGenerator()
|
|
| Method Summary | |
|---|---|
protected AlgorithmParameters |
engineGenerateParameters()
Generates the parameters. |
protected void |
engineInit(AlgorithmParameterSpec spec,
SecureRandom random)
Initializes this parameter generator with a set of algorithm-specific parameter generation values. |
protected void |
engineInit(int size,
SecureRandom random)
Initializes this parameter generator for a certain size and source of randomness. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SecureRandom rnd_
| Constructor Detail |
|---|
public DESParameterGenerator()
| Method Detail |
|---|
protected void engineInit(int size,
SecureRandom random)
engineInit in class AlgorithmParameterGeneratorSpisize - the size (number of bits).random - the source of randomness.
protected void engineInit(AlgorithmParameterSpec spec,
SecureRandom random)
throws InvalidAlgorithmParameterException
engineInit in class AlgorithmParameterGeneratorSpispec - The set of algorithm-specific parameter
generation values.random - the source of randomness.
InvalidAlgorithmParameterException - if the
given parameter generation values are inappropriate
for this parameter generator.protected AlgorithmParameters engineGenerateParameters()
engineGenerateParameters in class AlgorithmParameterGeneratorSpi
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||