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

public final Class DES

extends Object
Class Inheritance
Imports
java.security.AlgorithmParameters, .InvalidAlgorithmParameterException, .SecureRandom, java.security.spec.AlgorithmParameterSpec, .InvalidKeySpecException, .KeySpec, javax.crypto.SecretKey, javax.crypto.spec.DESKeySpec, .IvParameterSpec, .PBEKeySpec, .SecretKeySpec, org.bouncycastle.asn1.ASN1ObjectIdentifier, org.bouncycastle.asn1.oiw.OIWObjectIdentifiers, org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers, org.bouncycastle.crypto.CipherParameters, .CryptoServicesRegistrar, .KeyGenerationParameters, .PasswordConverter, org.bouncycastle.crypto.engines.DESEngine, .RFC3211WrapEngine, org.bouncycastle.crypto.generators.DESKeyGenerator, org.bouncycastle.crypto.macs.CBCBlockCipherMac, .CFBBlockCipherMac, .CMac, .ISO9797Alg3Mac, org.bouncycastle.crypto.modes.CBCBlockCipher, org.bouncycastle.crypto.paddings.ISO7816d4Padding, org.bouncycastle.crypto.params.DESParameters, .KeyParameter, .ParametersWithIV, org.bouncycastle.jcajce.PBKDF1Key, org.bouncycastle.jcajce.provider.config.ConfigurableProvider, org.bouncycastle.jcajce.provider.symmetric.util.BCPBEKey, .BaseAlgorithmParameterGenerator, .BaseBlockCipher, .BaseKeyGenerator, .BaseMac, .BaseSecretKeyFactory, .BaseWrapCipher, .PBE, 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
DES.DES64

DES64

public static class
DES.DES64with7816d4

DES64with7816-4Padding

public static class
DES.DES9797Alg3

DES9797Alg3

public static class
DES.DES9797Alg3with7816d4

DES9797Alg3with7816-4Padding

public static class
DES.DESCFB8

DES CFB8

public static class
public static class
public static class
public static class
DES.KeyGenerator

DES - 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
public static class
DES.PBEWithMD2

PBEWithMD2AndDES

public static class
DES.PBEWithMD2KeyFactory

PBEWithMD2AndDES

public static class
DES.PBEWithMD5

PBEWithMD5AndDES

public static class
DES.PBEWithMD5KeyFactory

PBEWithMD5AndDES

public static class
DES.PBEWithSHA1

PBEWithSHA1AndDES

public static class
DES.PBEWithSHA1KeyFactory

PBEWithSHA1AndDES

public static class

Constructor Summary

AccessConstructor and Description
private
DES()

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DESback to summary
private DES()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class DES.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 DES.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 DES.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 DES.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 DES.DES64

extends BaseMac
Class Inheritance

DES64

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Constructor Detail

DES64back to summary
public DES64()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class DES.DES64with7816d4

extends BaseMac
Class Inheritance

DES64with7816-4Padding

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Constructor Detail

DES64with7816d4back to summary
public DES64with7816d4()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class DES.DES9797Alg3

extends BaseMac
Class Inheritance

DES9797Alg3

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Constructor Detail

DES9797Alg3back to summary
public DES9797Alg3()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class DES.DES9797Alg3with7816d4

extends BaseMac
Class Inheritance

DES9797Alg3with7816-4Padding

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Constructor Detail

DES9797Alg3with7816d4back to summary
public DES9797Alg3with7816d4()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class DES.DESCFB8

extends BaseMac
Class Inheritance

DES CFB8

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Constructor Detail

DESCFB8back to summary
public DESCFB8()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class DES.DESPBEKeyFactory

extends BaseSecretKeyFactory
Class Inheritance
Known Direct Subclasses
org.bouncycastle.jcajce.provider.symmetric.DES.PBEWithMD2KeyFactory, org.bouncycastle.jcajce.provider.symmetric.DES.PBEWithMD5KeyFactory, org.bouncycastle.jcajce.provider.symmetric.DES.PBEWithSHA1KeyFactory, org.bouncycastle.jcajce.provider.symmetric.DESede.PBEWithSHAAndDES3KeyFactory, org.bouncycastle.jcajce.provider.symmetric.DESede.PBEWithSHAAndDES2KeyFactory

Field Summary

Modifier and TypeField and Description
private int
private boolean
private int
private int
private int
Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseSecretKeyFactory:
algNamealgOid

Constructor Summary

AccessConstructor and Description
public
DESPBEKeyFactory(String algorithm, ASN1ObjectIdentifier oid, boolean forCipher, int scheme, int digest, int keySize, int ivSize)

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).
Inherited from org.bouncycastle.jcajce.provider.symmetric.util.BaseSecretKeyFactory:
engineGetKeySpecengineTranslateKey

Field Detail

digestback to summary
private int digest
forCipherback to summary
private boolean forCipher
ivSizeback to summary
private int ivSize
keySizeback to summary
private int keySize
schemeback to summary
private int scheme

Constructor Detail

DESPBEKeyFactoryback to summary
public DESPBEKeyFactory(String algorithm, ASN1ObjectIdentifier oid, boolean forCipher, int scheme, int digest, int keySize, int ivSize)

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

public Class DES.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 DES.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 DES.KeyGenerator

extends BaseKeyGenerator
Class Inheritance

DES - 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

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

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 DES.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
private void
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

addAliasback to summary
private void addAlias(ConfigurableProvider provider, ASN1ObjectIdentifier oid, String name)
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 DES.PBEWithMD2

extends BaseBlockCipher
Class Inheritance

PBEWithMD2AndDES

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Constructor Detail

PBEWithMD2back to summary
public PBEWithMD2()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class DES.PBEWithMD2KeyFactory

extends DESPBEKeyFactory
Class Inheritance

PBEWithMD2AndDES

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Constructor Detail

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

public Class DES.PBEWithMD5

extends BaseBlockCipher
Class Inheritance

PBEWithMD5AndDES

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Constructor Detail

PBEWithMD5back to summary
public PBEWithMD5()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class DES.PBEWithMD5KeyFactory

extends DESPBEKeyFactory
Class Inheritance

PBEWithMD5AndDES

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Constructor Detail

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

public Class DES.PBEWithSHA1

extends BaseBlockCipher
Class Inheritance

PBEWithSHA1AndDES

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Constructor Detail

PBEWithSHA1back to summary
public PBEWithSHA1()
org.bouncycastle.jcajce.provider.symmetric back to summary

public Class DES.PBEWithSHA1KeyFactory

extends DESPBEKeyFactory
Class Inheritance

PBEWithSHA1AndDES

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Constructor Detail

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

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