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

public final Class RC2

extends Object
Class Inheritance
Imports
java.io.IOException, java.security.AlgorithmParameters, .InvalidAlgorithmParameterException, .SecureRandom, java.security.spec.AlgorithmParameterSpec, .InvalidParameterSpecException, javax.crypto.spec.IvParameterSpec, .RC2ParameterSpec, org.bouncycastle.asn1.ASN1Primitive, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, .RC2CBCParameter, org.bouncycastle.crypto.CipherKeyGenerator, .CryptoServicesRegistrar, org.bouncycastle.crypto.engines.RC2Engine, .RC2WrapEngine, org.bouncycastle.crypto.macs.CBCBlockCipherMac, .CFBBlockCipherMac, org.bouncycastle.crypto.modes.CBCBlockCipher, org.bouncycastle.jcajce.provider.config.ConfigurableProvider, org.bouncycastle.jcajce.provider.symmetric.util.BaseAlgorithmParameterGenerator, .BaseAlgorithmParameters, .BaseBlockCipher, .BaseKeyGenerator, .BaseMac, .BaseWrapCipher, .PBESecretKeyFactory, org.bouncycastle.jcajce.provider.util.AlgorithmProvider, org.bouncycastle.util.Arrays

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class
RC2.CBC

RC2CBC

public static class
public static class
public static class
public static class
public static class
public static class
RC2.PBEWithMD2KeyFactory

PBEWithMD2AndRC2

public static class
RC2.PBEWithMD5AndRC2

PBEWithMD5AndRC2

public static class
RC2.PBEWithMD5KeyFactory

PBEWithMD5AndRC2

public static class
RC2.PBEWithSHA1AndRC2

PBEWithSHA1AndRC2

public static class
RC2.PBEWithSHA1KeyFactory

PBEWithSHA1AndRC2

public static class
RC2.PBEWithSHAAnd128BitKeyFactory

PBEWithSHAAnd128BitRC2-CBC

public static class
RC2.PBEWithSHAAnd128BitRC2

PBEWithSHAAnd128BitRC2-CBC

public static class
RC2.PBEWithSHAAnd40BitKeyFactory

PBEWithSHAAnd40BitRC2-CBC

public static class
RC2.PBEWithSHAAnd40BitRC2

PBEWithSHAAnd40BitRC2-CBC

public static class

Constructor Summary

AccessConstructor and Description
private
RC2()

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

RC2back to summary
private RC2()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class RC2.AlgParamGen

extends BaseAlgorithmParameterGenerator
Class Inheritance

Field Summary

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

Field Detail

specback to summary
pack-priv RC2ParameterSpec spec

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 RC2.AlgParams

extends BaseAlgorithmParameters
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final short[]
private byte[]
private int
private static final short[]

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

ekbback to summary
private static final short[] ekb
ivback to summary
private byte[] iv
parameterVersionback to summary
private int parameterVersion
tableback to summary
private static final short[] table

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 RC2.CBC

extends BaseBlockCipher
Class Inheritance

RC2CBC

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 RC2.CBCMAC

extends BaseMac
Class Inheritance

RC2

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseMac:
engineDoFinalengineGetMacLengthengineInitengineResetengineUpdateengineUpdate

Constructor Detail

CBCMACback to summary
public CBCMAC()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class RC2.CFB8MAC

extends BaseMac
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseMac:
engineDoFinalengineGetMacLengthengineInitengineResetengineUpdateengineUpdate

Constructor Detail

CFB8MACback to summary
public CFB8MAC()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class RC2.ECB

extends BaseBlockCipher
Class Inheritance

RC2

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 RC2.KeyGenerator

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

KeyGeneratorback to summary
public KeyGenerator()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class RC2.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.

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

public Class RC2.PBEWithMD2KeyFactory

extends PBESecretKeyFactory
Class Inheritance

PBEWithMD2AndRC2

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.PBESecretKeyFactory:
engineGenerateSecret

Constructor Detail

PBEWithMD2KeyFactoryback to summary
public PBEWithMD2KeyFactory()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class RC2.PBEWithMD5AndRC2

extends BaseBlockCipher
Class Inheritance

PBEWithMD5AndRC2

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Constructor Detail

PBEWithMD5AndRC2back to summary
public PBEWithMD5AndRC2()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class RC2.PBEWithMD5KeyFactory

extends PBESecretKeyFactory
Class Inheritance

PBEWithMD5AndRC2

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.PBESecretKeyFactory:
engineGenerateSecret

Constructor Detail

PBEWithMD5KeyFactoryback to summary
public PBEWithMD5KeyFactory()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class RC2.PBEWithSHA1AndRC2

extends BaseBlockCipher
Class Inheritance

PBEWithSHA1AndRC2

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Constructor Detail

PBEWithSHA1AndRC2back to summary
public PBEWithSHA1AndRC2()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class RC2.PBEWithSHA1KeyFactory

extends PBESecretKeyFactory
Class Inheritance

PBEWithSHA1AndRC2

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.PBESecretKeyFactory:
engineGenerateSecret

Constructor Detail

PBEWithSHA1KeyFactoryback to summary
public PBEWithSHA1KeyFactory()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class RC2.PBEWithSHAAnd128BitKeyFactory

extends PBESecretKeyFactory
Class Inheritance

PBEWithSHAAnd128BitRC2-CBC

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.PBESecretKeyFactory:
engineGenerateSecret

Constructor Detail

PBEWithSHAAnd128BitKeyFactoryback to summary
public PBEWithSHAAnd128BitKeyFactory()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class RC2.PBEWithSHAAnd128BitRC2

extends BaseBlockCipher
Class Inheritance

PBEWithSHAAnd128BitRC2-CBC

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Constructor Detail

PBEWithSHAAnd128BitRC2back to summary
public PBEWithSHAAnd128BitRC2()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class RC2.PBEWithSHAAnd40BitKeyFactory

extends PBESecretKeyFactory
Class Inheritance

PBEWithSHAAnd40BitRC2-CBC

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.PBESecretKeyFactory:
engineGenerateSecret

Constructor Detail

PBEWithSHAAnd40BitKeyFactoryback to summary
public PBEWithSHAAnd40BitKeyFactory()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class RC2.PBEWithSHAAnd40BitRC2

extends BaseBlockCipher
Class Inheritance

PBEWithSHAAnd40BitRC2-CBC

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Constructor Detail

PBEWithSHAAnd40BitRC2back to summary
public PBEWithSHAAnd40BitRC2()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class RC2.Wrap

extends BaseWrapCipher
Class Inheritance

Field Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseWrapCipher:
engineParamspbeHashpbeIvSizepbeKeySizepbeTypewrapEngine

Constructor Summary

AccessConstructor and Description
public
Wrap()

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseWrapCipher:
createParametersInstanceengineDoFinalengineDoFinalengineGetBlockSizeengineGetIVengineGetKeySizeengineGetOutputSizeengineGetParametersengineInitengineInitengineInitengineSetModeengineSetPaddingengineUnwrapengineUpdateengineUpdateengineWrap

Constructor Detail

Wrapback to summary
public Wrap()