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

public Class BrokenJCEBlockCipher

extends Object
implements BrokenPBE
Class Inheritance
All Implemented Interfaces
org.bouncycastle.jce.provider.BrokenPBE
Known Direct Subclasses
org.bouncycastle.jce.provider.BrokenJCEBlockCipher.BrokePBEWithMD5AndDES, org.bouncycastle.jce.provider.BrokenJCEBlockCipher.BrokePBEWithSHA1AndDES, org.bouncycastle.jce.provider.BrokenJCEBlockCipher.BrokePBEWithSHAAndDES3Key, org.bouncycastle.jce.provider.BrokenJCEBlockCipher.OldPBEWithSHAAndDES3Key, org.bouncycastle.jce.provider.BrokenJCEBlockCipher.BrokePBEWithSHAAndDES2Key, org.bouncycastle.jce.provider.BrokenJCEBlockCipher.OldPBEWithSHAAndTwofish
Imports
java.security.AlgorithmParameters, .InvalidAlgorithmParameterException, .InvalidKeyException, .Key, .KeyFactory, .NoSuchAlgorithmException, .NoSuchProviderException, .SecureRandom, java.security.spec.AlgorithmParameterSpec, .InvalidKeySpecException, .PKCS8EncodedKeySpec, .X509EncodedKeySpec, javax.crypto.BadPaddingException, .Cipher, .IllegalBlockSizeException, .NoSuchPaddingException, javax.crypto.spec.IvParameterSpec, .PBEParameterSpec, .RC2ParameterSpec, .RC5ParameterSpec, .SecretKeySpec, org.bouncycastle.crypto.BlockCipher, .BufferedBlockCipher, .CipherParameters, .CryptoServicesRegistrar, .DataLengthException, .InvalidCipherTextException, org.bouncycastle.crypto.engines.DESEngine, .DESedeEngine, .TwofishEngine, org.bouncycastle.crypto.modes.CBCBlockCipher, .CFBBlockCipher, .CTSBlockCipher, .OFBBlockCipher, org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher, org.bouncycastle.crypto.params.KeyParameter, .ParametersWithIV, .RC2Parameters, .RC5Parameters, org.bouncycastle.jcajce.provider.symmetric.util.BCPBEKey, org.bouncycastle.util.Strings

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class
BrokenJCEBlockCipher.BrokePBEWithSHAAndDES2Key

PBEWithSHAAnd2-KeyTripleDES-CBC

public static class
BrokenJCEBlockCipher.BrokePBEWithSHAAndDES3Key

PBEWithSHAAnd3-KeyTripleDES-CBC

public static class
BrokenJCEBlockCipher.OldPBEWithSHAAndDES3Key

OldPBEWithSHAAnd3-KeyTripleDES-CBC

public static class

Field Summary

Modifier and TypeField and Description
private Class<T>[]
private BufferedBlockCipher
private AlgorithmParameters
private int
private ParametersWithIV
private int
private int
private int
private int

Constructor Summary

AccessConstructor and Description
protected
protected
BrokenJCEBlockCipher(BlockCipher engine, int pbeType, int pbeHash, int pbeKeySize, int pbeIvSize)

Method Summary

Modifier and TypeMethod and Description
protected byte[]
engineDoFinal(byte[] input, int inputOffset, int inputLen)

protected int
engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)

protected int
protected byte[]
protected int
protected int
engineGetOutputSize(int inputLen)

protected AlgorithmParameters
protected void
engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)

protected void
engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)

protected void
engineInit(int opmode, Key key, SecureRandom random)

protected void
protected void
protected Key
engineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType)

protected byte[]
engineUpdate(byte[] input, int inputOffset, int inputLen)

protected int
engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)

protected byte[]
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

availableSpecsback to summary
private Class<T>[] availableSpecs
cipherback to summary
private BufferedBlockCipher cipher
engineParamsback to summary
private AlgorithmParameters engineParams
ivLengthback to summary
private int ivLength
ivParamback to summary
private ParametersWithIV ivParam
pbeHashback to summary
private int pbeHash
pbeIvSizeback to summary
private int pbeIvSize
pbeKeySizeback to summary
private int pbeKeySize
pbeTypeback to summary
private int pbeType

Constructor Detail

BrokenJCEBlockCipherback to summary
protected BrokenJCEBlockCipher(BlockCipher engine)
BrokenJCEBlockCipherback to summary
protected BrokenJCEBlockCipher(BlockCipher engine, int pbeType, int pbeHash, int pbeKeySize, int pbeIvSize)

Method Detail

engineDoFinalback to summary
protected byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) throws IllegalBlockSizeException, BadPaddingException
engineDoFinalback to summary
protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws IllegalBlockSizeException, BadPaddingException
engineGetBlockSizeback to summary
protected int engineGetBlockSize()
engineGetIVback to summary
protected byte[] engineGetIV()
engineGetKeySizeback to summary
protected int engineGetKeySize(Key key)
engineGetOutputSizeback to summary
protected int engineGetOutputSize(int inputLen)
engineGetParametersback to summary
protected AlgorithmParameters engineGetParameters()
engineInitback to summary
protected void engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException
engineInitback to summary
protected void engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException
engineInitback to summary
protected void engineInit(int opmode, Key key, SecureRandom random) throws InvalidKeyException
engineSetModeback to summary
protected void engineSetMode(String mode)
engineSetPaddingback to summary
protected void engineSetPadding(String padding) throws NoSuchPaddingException
engineUnwrapback to summary
protected Key engineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType) throws InvalidKeyException
engineUpdateback to summary
protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen)
engineUpdateback to summary
protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)
engineWrapback to summary
protected byte[] engineWrap(Key key) throws IllegalBlockSizeException, InvalidKeyException
org.bouncycastle.jce.provider back to summary

public Class BrokenJCEBlockCipher.BrokePBEWithMD5AndDES

extends BrokenJCEBlockCipher
Class Inheritance

PBEWithMD5AndDES

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jce.provider.BrokenJCEBlockCipher:
engineDoFinalengineDoFinalengineGetBlockSizeengineGetIVengineGetKeySizeengineGetOutputSizeengineGetParametersengineInitengineInitengineInitengineSetModeengineSetPaddingengineUnwrapengineUpdateengineUpdateengineWrap

Constructor Detail

BrokePBEWithMD5AndDESback to summary
public BrokePBEWithMD5AndDES()
org.bouncycastle.jce.provider back to summary

public Class BrokenJCEBlockCipher.BrokePBEWithSHA1AndDES

extends BrokenJCEBlockCipher
Class Inheritance

PBEWithSHA1AndDES

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jce.provider.BrokenJCEBlockCipher:
engineDoFinalengineDoFinalengineGetBlockSizeengineGetIVengineGetKeySizeengineGetOutputSizeengineGetParametersengineInitengineInitengineInitengineSetModeengineSetPaddingengineUnwrapengineUpdateengineUpdateengineWrap

Constructor Detail

BrokePBEWithSHA1AndDESback to summary
public BrokePBEWithSHA1AndDES()
org.bouncycastle.jce.provider back to summary

public Class BrokenJCEBlockCipher.BrokePBEWithSHAAndDES2Key

extends BrokenJCEBlockCipher
Class Inheritance

PBEWithSHAAnd2-KeyTripleDES-CBC

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jce.provider.BrokenJCEBlockCipher:
engineDoFinalengineDoFinalengineGetBlockSizeengineGetIVengineGetKeySizeengineGetOutputSizeengineGetParametersengineInitengineInitengineInitengineSetModeengineSetPaddingengineUnwrapengineUpdateengineUpdateengineWrap

Constructor Detail

BrokePBEWithSHAAndDES2Keyback to summary
public BrokePBEWithSHAAndDES2Key()
org.bouncycastle.jce.provider back to summary

public Class BrokenJCEBlockCipher.BrokePBEWithSHAAndDES3Key

extends BrokenJCEBlockCipher
Class Inheritance

PBEWithSHAAnd3-KeyTripleDES-CBC

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jce.provider.BrokenJCEBlockCipher:
engineDoFinalengineDoFinalengineGetBlockSizeengineGetIVengineGetKeySizeengineGetOutputSizeengineGetParametersengineInitengineInitengineInitengineSetModeengineSetPaddingengineUnwrapengineUpdateengineUpdateengineWrap

Constructor Detail

BrokePBEWithSHAAndDES3Keyback to summary
public BrokePBEWithSHAAndDES3Key()
org.bouncycastle.jce.provider back to summary

public Class BrokenJCEBlockCipher.OldPBEWithSHAAndDES3Key

extends BrokenJCEBlockCipher
Class Inheritance

OldPBEWithSHAAnd3-KeyTripleDES-CBC

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jce.provider.BrokenJCEBlockCipher:
engineDoFinalengineDoFinalengineGetBlockSizeengineGetIVengineGetKeySizeengineGetOutputSizeengineGetParametersengineInitengineInitengineInitengineSetModeengineSetPaddingengineUnwrapengineUpdateengineUpdateengineWrap

Constructor Detail

OldPBEWithSHAAndDES3Keyback to summary
public OldPBEWithSHAAndDES3Key()
org.bouncycastle.jce.provider back to summary

public Class BrokenJCEBlockCipher.OldPBEWithSHAAndTwofish

extends BrokenJCEBlockCipher
Class Inheritance

OldPBEWithSHAAndTwofish-CBC

Constructor Summary

AccessConstructor and Description
public

Method Summary

Inherited from org.bouncycastle.jce.provider.BrokenJCEBlockCipher:
engineDoFinalengineDoFinalengineGetBlockSizeengineGetIVengineGetKeySizeengineGetOutputSizeengineGetParametersengineInitengineInitengineInitengineSetModeengineSetPaddingengineUnwrapengineUpdateengineUpdateengineWrap

Constructor Detail

OldPBEWithSHAAndTwofishback to summary
public OldPBEWithSHAAndTwofish()