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

public final Class DESede

extends Object
Class Inheritance
Imports
java.security.AlgorithmParameters, .InvalidAlgorithmParameterException, .SecureRandom, java.security.spec.AlgorithmParameterSpec, .InvalidKeySpecException, .KeySpec, javax.crypto.SecretKey, javax.crypto.spec.DESedeKeySpec, .IvParameterSpec, .SecretKeySpec, org.bouncycastle.asn1.oiw.OIWObjectIdentifiers, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, org.bouncycastle.crypto.CryptoServicesRegistrar, .KeyGenerationParameters, org.bouncycastle.crypto.engines.DESedeEngine, .DESedeWrapEngine, .RFC3211WrapEngine, org.bouncycastle.crypto.generators.DESedeKeyGenerator, org.bouncycastle.crypto.macs.CBCBlockCipherMac, .CFBBlockCipherMac, .CMac, org.bouncycastle.crypto.modes.CBCBlockCipher, org.bouncycastle.crypto.paddings.ISO7816d4Padding, org.bouncycastle.jcajce.provider.config.ConfigurableProvider, org.bouncycastle.jcajce.provider.symmetric.util.BaseAlgorithmParameterGenerator, .BaseBlockCipher, .BaseKeyGenerator, .BaseMac, .BaseSecretKeyFactory, .BaseWrapCipher, 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
DESede.DESede64with7816d4

DESede64with7816-4Padding

public static class
DESede.DESedeCFB8

DESede CFB8

public static class
public static class
public static class
DESede.KeyGenerator

DESede - the default for this is to generate a key in a-b-a format that's 24 bytes long but has 16 bytes of key material (the first 8 bytes is repeated as the last 8 bytes).

public static class
DESede.KeyGenerator3

generate a desEDE key in the a-b-c format.

public static class
public static class
DESede.PBEWithSHAAndDES2Key

PBEWithSHAAnd2-KeyTripleDES-CBC

public static class
DESede.PBEWithSHAAndDES2KeyFactory

PBEWithSHAAnd2-KeyTripleDES-CBC

public static class
DESede.PBEWithSHAAndDES3Key

PBEWithSHAAnd3-KeyTripleDES-CBC

public static class
DESede.PBEWithSHAAndDES3KeyFactory

PBEWithSHAAnd3-KeyTripleDES-CBC

public static class
public static class

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DESedeback to summary
private DESede()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class DESede.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 DESede.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 DESede.CBCMAC

extends BaseMac
Class Inheritance

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 DESede.CMAC

extends BaseMac
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
CMAC()

Method Summary

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

Constructor Detail

CMACback to summary
public CMAC()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class DESede.DESede64

extends BaseMac
Class Inheritance

DESede64

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Constructor Detail

DESede64back to summary
public DESede64()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class DESede.DESede64with7816d4

extends BaseMac
Class Inheritance

DESede64with7816-4Padding

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Constructor Detail

DESede64with7816d4back to summary
public DESede64with7816d4()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class DESede.DESedeCFB8

extends BaseMac
Class Inheritance

DESede CFB8

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Constructor Detail

DESedeCFB8back to summary
public DESedeCFB8()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class DESede.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 DESede.KeyFactory

extends BaseSecretKeyFactory
Class Inheritance

Field Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseSecretKeyFactory:
algNamealgOid

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected SecretKey
engineGenerateSecret(KeySpec
the specification (key material) of the secret key
keySpec
)

Overrides org.bouncycastle.jcajce.provider.symmetric.util.BaseSecretKeyFactory.engineGenerateSecret.

Generates a SecretKey object from the provided key specification (key material).
protected KeySpec
engineGetKeySpec(SecretKey
the key
key
,
Class<T>
the requested format in which the key material shall be returned
keySpec
)

Overrides org.bouncycastle.jcajce.provider.symmetric.util.BaseSecretKeyFactory.engineGetKeySpec.

Returns a specification (key material) of the given key object in the requested format.
Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseSecretKeyFactory:
engineTranslateKey

Constructor Detail

KeyFactoryback to summary
public KeyFactory()

Method Detail

engineGenerateSecretback to summary
protected SecretKey engineGenerateSecret(KeySpec keySpec) throws InvalidKeySpecException

Overrides org.bouncycastle.jcajce.provider.symmetric.util.BaseSecretKeyFactory.engineGenerateSecret.

Doc from javax.crypto.SecretKeyFactorySpi.engineGenerateSecret.

Generates a SecretKey object from the provided key specification (key material).

Parameters
keySpec:KeySpec

the specification (key material) of the secret key

Returns:SecretKey

the secret key

Exceptions
InvalidKeySpecException:
if the given key specification is inappropriate for this secret-key factory to produce a secret key.
engineGetKeySpecback to summary
protected KeySpec engineGetKeySpec(SecretKey key, Class<T> keySpec) throws InvalidKeySpecException

Overrides org.bouncycastle.jcajce.provider.symmetric.util.BaseSecretKeyFactory.engineGetKeySpec.

Doc from javax.crypto.SecretKeyFactorySpi.engineGetKeySpec.

Returns a specification (key material) of the given key object in the requested format.

Parameters
key:SecretKey

the key

keySpec:Class<T>

the requested format in which the key material shall be returned

Returns:KeySpec

the underlying key specification (key material) in the requested format

Exceptions
InvalidKeySpecException:
if the requested key specification is inappropriate for the given key (e.g., the algorithms associated with key and keySpec do not match, or key references a key on a cryptographic hardware device whereas keySpec is the specification of a software-based key), or the given key cannot be dealt with (e.g., the given key has an algorithm or format not supported by this secret-key factory).
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class DESede.KeyGenerator

extends BaseKeyGenerator
Class Inheritance

DESede - the default for this is to generate a key in a-b-a format that's 24 bytes long but has 16 bytes of key material (the first 8 bytes is repeated as the last 8 bytes). If you give it a size, you'll get just what you asked for.

Field Summary

Modifier and TypeField and Description
private boolean
Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseKeyGenerator:
algNamedefaultKeySizeenginekeySizeuninitialised

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected SecretKey
protected void
engineInit(int
the keysize. This is an algorithm-specific metric, specified in number of bits.
keySize
,
SecureRandom
the source of randomness for this key generator
random
)

Overrides org.bouncycastle.jcajce.provider.symmetric.util.BaseKeyGenerator.engineInit.

Initializes this key generator for a certain keysize, using the given source of randomness.
Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseKeyGenerator:
engineInitengineInit

Field Detail

keySizeSetback to summary
private boolean keySizeSet

Constructor Detail

KeyGeneratorback to summary
public KeyGenerator()

Method Detail

engineGenerateKeyback to summary
protected SecretKey engineGenerateKey()

Overrides org.bouncycastle.jcajce.provider.symmetric.util.BaseKeyGenerator.engineGenerateKey.

Doc from javax.crypto.KeyGeneratorSpi.engineGenerateKey.

Generates a secret key.

Returns:SecretKey

the new key

engineInitback to summary
protected void engineInit(int keySize, SecureRandom random)

Overrides org.bouncycastle.jcajce.provider.symmetric.util.BaseKeyGenerator.engineInit.

Doc from javax.crypto.KeyGeneratorSpi.engineInit.

Initializes this key generator for a certain keysize, using the given source of randomness.

Parameters
keySize:int

the keysize. This is an algorithm-specific metric, specified in number of bits.

random:SecureRandom

the source of randomness for this key generator

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

public Class DESede.KeyGenerator3

extends BaseKeyGenerator
Class Inheritance

generate a desEDE key in the a-b-c format.

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

KeyGenerator3back to summary
public KeyGenerator3()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class DESede.Mappings

extends AlgorithmProvider
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final String
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void

Field Detail

PACKAGEback to summary
private static final String PACKAGE
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 DESede.PBEWithSHAAndDES2Key

extends BaseBlockCipher
Class Inheritance

PBEWithSHAAnd2-KeyTripleDES-CBC

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Constructor Detail

PBEWithSHAAndDES2Keyback to summary
public PBEWithSHAAndDES2Key()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class DESede.PBEWithSHAAndDES2KeyFactory

extends DESPBEKeyFactory
Class Inheritance

PBEWithSHAAnd2-KeyTripleDES-CBC

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.DES.DESPBEKeyFactory:
engineGenerateSecret

Constructor Detail

PBEWithSHAAndDES2KeyFactoryback to summary
public PBEWithSHAAndDES2KeyFactory()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class DESede.PBEWithSHAAndDES3Key

extends BaseBlockCipher
Class Inheritance

PBEWithSHAAnd3-KeyTripleDES-CBC

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Constructor Detail

PBEWithSHAAndDES3Keyback to summary
public PBEWithSHAAndDES3Key()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class DESede.PBEWithSHAAndDES3KeyFactory

extends DESPBEKeyFactory
Class Inheritance

PBEWithSHAAnd3-KeyTripleDES-CBC

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jcajce.provider.symmetric.DES.DESPBEKeyFactory:
engineGenerateSecret

Constructor Detail

PBEWithSHAAndDES3KeyFactoryback to summary
public PBEWithSHAAndDES3KeyFactory()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class DESede.RFC3211

extends BaseWrapCipher
Class Inheritance

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Constructor Detail

RFC3211back to summary
public RFC3211()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class DESede.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()