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

public final Class CAST5

extends Object
Class Inheritance
Imports
java.io.IOException, java.security.AlgorithmParameters, .InvalidAlgorithmParameterException, .SecureRandom, java.security.spec.AlgorithmParameterSpec, .InvalidParameterSpecException, javax.crypto.spec.IvParameterSpec, org.bouncycastle.asn1.ASN1InputStream, org.bouncycastle.crypto.CipherKeyGenerator, .CryptoServicesRegistrar, org.bouncycastle.crypto.engines.CAST5Engine, org.bouncycastle.crypto.modes.CBCBlockCipher, org.bouncycastle.internal.asn1.misc.CAST5CBCParameters, .MiscObjectIdentifiers, org.bouncycastle.jcajce.provider.config.ConfigurableProvider, org.bouncycastle.jcajce.provider.symmetric.util.BaseAlgorithmParameterGenerator, .BaseAlgorithmParameters, .BaseBlockCipher, .BaseKeyGenerator, org.bouncycastle.jcajce.provider.util.AlgorithmProvider

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class
public static class
public static class
public static class

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

CAST5back to summary
private CAST5()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class CAST5.AlgParamGen

extends BaseAlgorithmParameterGenerator
Class Inheritance

Field Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseAlgorithmParameterGenerator:
randomstrength

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.symmetric.util.BaseAlgorithmParameterGenerator:
createParametersInstanceengineInit

Constructor Detail

AlgParamGenback to summary
public AlgParamGen()

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.symmetric back to summary

public Class CAST5.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 byte[]
engineGetEncoded()

Implements abstract java.security.AlgorithmParametersSpi.engineGetEncoded.

Returns the parameters in their primary encoding format.

protected byte[]
engineGetEncoded(String
the name of the encoding format.
format
)

Implements abstract java.security.AlgorithmParametersSpi.engineGetEncoded.

Returns the parameters encoded in the specified format.

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 void
engineInit(byte[]
the encoded parameters.
params
)

Implements abstract java.security.AlgorithmParametersSpi.engineInit.

Imports the specified parameters and decodes them according to the primary decoding format for parameters.

protected void
engineInit(byte[]
the encoded parameters.
params
,
String
the name of the decoding format.
format
)

Implements abstract java.security.AlgorithmParametersSpi.engineInit.

Imports the parameters from params and decodes them according to the specified decoding format.

protected String
engineToString()

Implements abstract java.security.AlgorithmParametersSpi.engineToString.

Returns a formatted string describing the parameters.

protected AlgorithmParameterSpec
Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseAlgorithmParameters:
engineGetParameterSpecisASN1FormatString

Field Detail

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

Constructor Detail

AlgParamsback to summary
public AlgParams()

Method Detail

engineGetEncodedback to summary
protected byte[] engineGetEncoded()

Implements abstract java.security.AlgorithmParametersSpi.engineGetEncoded.

Doc from java.security.AlgorithmParametersSpi.engineGetEncoded.

Returns the parameters in their primary encoding format. The primary encoding format for parameters is ASN.1, if an ASN.1 specification for this type of parameters exists.

Returns:byte[]

the parameters encoded using their primary encoding format.

engineGetEncodedback to summary
protected byte[] engineGetEncoded(String format) throws IOException

Implements abstract java.security.AlgorithmParametersSpi.engineGetEncoded.

Doc from java.security.AlgorithmParametersSpi.engineGetEncoded.

Returns the parameters encoded in the specified format. If format is null, the primary encoding format for parameters is used. The primary encoding format is ASN.1, if an ASN.1 specification for these parameters exists.

Parameters
format:String

the name of the encoding format.

Returns:byte[]

the parameters encoded using the specified encoding scheme.

Exceptions
IOException:
on encoding errors.
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.
engineInitback to summary
protected void engineInit(byte[] params) throws IOException

Implements abstract java.security.AlgorithmParametersSpi.engineInit.

Doc from java.security.AlgorithmParametersSpi.engineInit.

Imports the specified parameters and decodes them according to the primary decoding format for parameters. The primary decoding format for parameters is ASN.1, if an ASN.1 specification for this type of parameters exists.

Parameters
params:byte[]

the encoded parameters.

Exceptions
IOException:
on decoding errors
engineInitback to summary
protected void engineInit(byte[] params, String format) throws IOException

Implements abstract java.security.AlgorithmParametersSpi.engineInit.

Doc from java.security.AlgorithmParametersSpi.engineInit.

Imports the parameters from params and decodes them according to the specified decoding format. If format is null, the primary decoding format for parameters is used. The primary decoding format is ASN.1, if an ASN.1 specification for these parameters exists.

Parameters
params:byte[]

the encoded parameters.

format:String

the name of the decoding format.

Exceptions
IOException:
on decoding errors
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.symmetric.util.BaseAlgorithmParameters.localEngineGetParameterSpec.

org.bouncycastle.jcajce.provider.symmetric back to summary

public Class CAST5.CBC

extends BaseBlockCipher
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
CBC()

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher:
engineDoFinalengineDoFinalengineGetBlockSizeengineGetIVengineGetKeySizeengineGetOutputSizeengineGetParametersengineInitengineInitengineInitengineSetModeengineSetPaddingengineUpdateengineUpdateengineUpdateAADengineUpdateAAD

Constructor Detail

CBCback to summary
public CBC()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class CAST5.ECB

extends BaseBlockCipher
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
ECB()

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher:
engineDoFinalengineDoFinalengineGetBlockSizeengineGetIVengineGetKeySizeengineGetOutputSizeengineGetParametersengineInitengineInitengineInitengineSetModeengineSetPaddingengineUpdateengineUpdateengineUpdateAADengineUpdateAAD

Constructor Detail

ECBback to summary
public ECB()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class CAST5.KeyGen

extends BaseKeyGenerator
Class Inheritance

Field Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseKeyGenerator:
algNamedefaultKeySizeenginekeySizeuninitialised

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseKeyGenerator:
engineGenerateKeyengineInitengineInitengineInit

Constructor Detail

KeyGenback to summary
public KeyGen()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class CAST5.Mappings

extends AlgorithmProvider
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void

Field Detail

PREFIXback to summary
private static final String PREFIX

Constructor Detail

Mappingsback to summary
public Mappings()

Method Detail

configureback to summary
public void configure(ConfigurableProvider provider)

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