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

public Class AlgorithmParameterGeneratorSpi

extends BaseAlgorithmParameterGeneratorSpi
Class Inheritance
Imports
java.security.AlgorithmParameters, .InvalidAlgorithmParameterException, .SecureRandom, java.security.spec.AlgorithmParameterSpec, org.bouncycastle.crypto.CryptoServicesRegistrar, org.bouncycastle.crypto.generators.GOST3410ParametersGenerator, org.bouncycastle.crypto.params.GOST3410Parameters, org.bouncycastle.jcajce.provider.asymmetric.util.BaseAlgorithmParameterGeneratorSpi, org.bouncycastle.jce.spec.GOST3410ParameterSpec, .GOST3410PublicKeyParameterSetSpec

Field Summary

Modifier and TypeField and Description
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

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.