Top Fields Constructors Methods
org.bouncycastle.jcajce.provider

pack-priv Class DHAlgorithmParameterGeneratorSpi

extends AlgorithmParameterGeneratorSpi
Class Inheritance
Imports
java.security.AlgorithmParameters, .InvalidAlgorithmParameterException, .InvalidParameterException, .SecureRandom, java.security.spec.AlgorithmParameterSpec, javax.crypto.spec.DHGenParameterSpec, org.bouncycastle.crypto.CryptoServicesRegistrar, org.bouncycastle.crypto.asymmetric.DHDomainParameters, org.bouncycastle.crypto.fips.FipsDH, org.bouncycastle.jcajce.spec.DHDomainParameterSpec

Field Summary

Modifier and TypeField and Description
private final String
private final BouncyCastleFipsProvider
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.

Field Detail

algorithmback to summary
private final String algorithm
fipsProviderback to summary
private final BouncyCastleFipsProvider fipsProvider
lback to summary
private int l
randomback to summary
protected SecureRandom random
strengthback to summary
protected int strength

Constructor Detail

DHAlgorithmParameterGeneratorSpiback to summary
public DHAlgorithmParameterGeneratorSpi(BouncyCastleFipsProvider fipsProvider, String algorithm)

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.