Top Fields Constructors Methods
org.bouncycastle.jcajce.provider.asymmetric.elgamal

public Class AlgorithmParameterGeneratorSpi

extends BaseAlgorithmParameterGeneratorSpi
Class Inheritance
Imports
java.security.AlgorithmParameters, .InvalidAlgorithmParameterException, .SecureRandom, java.security.spec.AlgorithmParameterSpec, javax.crypto.spec.DHGenParameterSpec, .DHParameterSpec, org.bouncycastle.crypto.CryptoServicesRegistrar, org.bouncycastle.crypto.generators.ElGamalParametersGenerator, org.bouncycastle.crypto.params.ElGamalParameters, org.bouncycastle.jcajce.provider.asymmetric.util.BaseAlgorithmParameterGeneratorSpi

Field Summary

Modifier and TypeField and Description
private int
l

protected SecureRandom
protected int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected AlgorithmParameters
protected void
engineInit(int
the size (number of bits).
strength
,
SecureRandom
the source of randomness.
random
)

Implements abstract java.security.AlgorithmParameterGeneratorSpi.engineInit.

Initializes this parameter generator for a certain size and source of randomness.
protected void
engineInit(AlgorithmParameterSpec
the set of algorithm-specific parameter generation values.
genParamSpec
,
SecureRandom
the source of randomness.
random
)

Implements abstract java.security.AlgorithmParameterGeneratorSpi.engineInit.

Initializes this parameter generator with a set of algorithm-specific parameter generation values.
Inherited from org.bouncycastle.jcajce.provider.asymmetric.util.BaseAlgorithmParameterGeneratorSpi:
createParametersInstance

Field Detail

lback to summary
private int l
randomback to summary
protected SecureRandom random
strengthback to summary
protected int strength

Constructor Detail

AlgorithmParameterGeneratorSpiback to summary
public AlgorithmParameterGeneratorSpi()

Method Detail

engineGenerateParametersback to summary
protected AlgorithmParameters engineGenerateParameters()

Implements abstract java.security.AlgorithmParameterGeneratorSpi.engineGenerateParameters.

Doc from java.security.AlgorithmParameterGeneratorSpi.engineGenerateParameters.

Generates the parameters.

Returns:AlgorithmParameters

the new AlgorithmParameters object.

engineInitback to summary
protected void engineInit(int strength, SecureRandom random)

Implements abstract java.security.AlgorithmParameterGeneratorSpi.engineInit.

Doc from java.security.AlgorithmParameterGeneratorSpi.engineInit.

Initializes this parameter generator for a certain size and source of randomness.

Parameters
strength:int

the size (number of bits).

random:SecureRandom

the source of randomness.

engineInitback to summary
protected void engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random) throws InvalidAlgorithmParameterException

Implements abstract java.security.AlgorithmParameterGeneratorSpi.engineInit.

Doc from java.security.AlgorithmParameterGeneratorSpi.engineInit.

Initializes this parameter generator with a set of algorithm-specific parameter generation values.

Parameters
genParamSpec:AlgorithmParameterSpec

the set of algorithm-specific parameter generation values.

random:SecureRandom

the source of randomness.

Exceptions
InvalidAlgorithmParameterException:
if the given parameter generation values are inappropriate for this parameter generator.