|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.security.AlgorithmParameterGeneratorSpi de.fhg.igd.crypto.RC2ParameterGenerator
public class RC2ParameterGenerator
This class generates parameters for RC2 according to RFC 2311 and RFC 2268. Encoding and Decoding conforms to ASN.1/DER as set forth in said RFCs. The RC2ParameterSpec and subclasses thereof are supported for initialising the parameters.
DESParameters
,
AlgorithmParameterSpec
Field Summary | |
---|---|
protected SecureRandom |
rnd_
The source of randomness used to generate IVs. |
protected int |
size_
The key size. |
Constructor Summary | |
---|---|
RC2ParameterGenerator()
|
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_
protected int size_
Constructor Detail |
---|
public RC2ParameterGenerator()
Method Detail |
---|
protected void engineInit(int size, SecureRandom random)
engineInit
in class AlgorithmParameterGeneratorSpi
size
- the size (number of bits).random
- the source of randomness.protected void engineInit(AlgorithmParameterSpec spec, SecureRandom random) throws InvalidAlgorithmParameterException
engineInit
in class AlgorithmParameterGeneratorSpi
spec
- 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 |