Top Inners Fields Constructors Methods
org.bouncycastle.jcajce.provider

pack-priv final Class ProvCAST5

extends AlgorithmProvider
Class Inheritance
Imports
java.io.IOException, java.security.AlgorithmParameters, .InvalidAlgorithmParameterException, .SecureRandom, java.security.spec.AlgorithmParameterSpec, .InvalidKeySpecException, .InvalidParameterSpecException, javax.crypto.spec.IvParameterSpec, org.bouncycastle.asn1.ASN1OctetString, .ASN1Primitive, .ASN1Sequence, org.bouncycastle.asn1.misc.CAST5CBCParameters, .MiscObjectIdentifiers, org.bouncycastle.crypto.AuthenticationParametersWithIV, .Parameters, .ParametersWithIV, .SymmetricKeyGenerator, org.bouncycastle.crypto.general.CAST5

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Field Summary

Modifier and TypeField and Description
private Class<T>[]
private ParametersCreatorProvider<Parameters>
private static final String

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void

Field Detail

availableSpecsback to summary
private Class<T>[] availableSpecs
generalParametersCreatorProviderback to summary
private ParametersCreatorProvider<Parameters> generalParametersCreatorProvider
PREFIXback to summary
private static final String PREFIX

Constructor Detail

ProvCAST5back to summary
pack-priv ProvCAST5()

Method Detail

configureback to summary
public void configure(final BouncyCastleFipsProvider provider)

Implements abstract org.bouncycastle.jcajce.provider.AlgorithmProvider.configure.

org.bouncycastle.jcajce.provider back to summary

public Class ProvCAST5.AlgParamGen

extends BaseAlgorithmParameterGenerator
Class Inheritance

Field Summary

Inherited from org.bouncycastle.jcajce.provider.BaseAlgorithmParameterGenerator:
fipsProviderrandomstrength

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected AlgorithmParameters
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.BaseAlgorithmParameterGenerator:
engineInit

Constructor Detail

AlgParamGenback to summary
public AlgParamGen(BouncyCastleFipsProvider fipsProvider)

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(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.
org.bouncycastle.jcajce.provider back to summary

public Class ProvCAST5.AlgParams

extends BaseAlgorithmParameters
Class Inheritance

Field Summary

Modifier and TypeField and Description
private byte[]
private int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
engineInit(AlgorithmParameterSpec
the parameter specification.
paramSpec
)

Implements abstract java.security.AlgorithmParametersSpi.engineInit.

Initializes this parameters object using the parameters specified in paramSpec.
protected String
engineToString()

Implements abstract java.security.AlgorithmParametersSpi.engineToString.

Returns a formatted string describing the parameters.
protected AlgorithmParameterSpec
protected byte[]
protected void
Inherited from org.bouncycastle.jcajce.provider.BaseAlgorithmParameters:
engineGetEncodedengineGetEncodedengineGetParameterSpecengineInitengineInitisASN1FormatString

Field Detail

ivback to summary
private byte[] iv
keyLengthback to summary
private int keyLength

Constructor Detail

AlgParamsback to summary
public AlgParams()

Method Detail

engineInitback to summary
protected void engineInit(AlgorithmParameterSpec paramSpec) throws InvalidParameterSpecException

Implements abstract java.security.AlgorithmParametersSpi.engineInit.

Doc from java.security.AlgorithmParametersSpi.engineInit.

Initializes this parameters object using the parameters specified in paramSpec.

Parameters
paramSpec:AlgorithmParameterSpec

the parameter specification.

Exceptions
InvalidParameterSpecException:
if the given parameter specification is inappropriate for the initialization of this parameter object.
engineToStringback to summary
protected String engineToString()

Implements abstract java.security.AlgorithmParametersSpi.engineToString.

Doc from java.security.AlgorithmParametersSpi.engineToString.

Returns a formatted string describing the parameters.

Returns:String

a formatted string describing the parameters.

localEngineGetParameterSpecback to summary
protected AlgorithmParameterSpec localEngineGetParameterSpec(Class<T> paramSpec) throws InvalidParameterSpecException

Implements abstract org.bouncycastle.jcajce.provider.BaseAlgorithmParameters.localEngineGetParameterSpec.

localGetEncodedback to summary
protected byte[] localGetEncoded() throws IOException

Implements abstract org.bouncycastle.jcajce.provider.BaseAlgorithmParameters.localGetEncoded.

localInitback to summary
protected void localInit(byte[] params) throws IOException

Implements abstract org.bouncycastle.jcajce.provider.BaseAlgorithmParameters.localInit.