org.bouncycastle.jce.provider

Class BrokenJCEBlockCipher

public class BrokenJCEBlockCipher extends Object implements BrokenPBE

Nested Class Summary
static classBrokenJCEBlockCipher.BrokePBEWithMD5AndDES
PBEWithMD5AndDES
static classBrokenJCEBlockCipher.BrokePBEWithSHA1AndDES
PBEWithSHA1AndDES
static classBrokenJCEBlockCipher.BrokePBEWithSHAAndDES2Key
PBEWithSHAAnd2-KeyTripleDES-CBC
static classBrokenJCEBlockCipher.BrokePBEWithSHAAndDES3Key
PBEWithSHAAnd3-KeyTripleDES-CBC
static classBrokenJCEBlockCipher.OldPBEWithSHAAndDES3Key
OldPBEWithSHAAnd3-KeyTripleDES-CBC
static classBrokenJCEBlockCipher.OldPBEWithSHAAndTwofish
OldPBEWithSHAAndTwofish-CBC
Constructor Summary
protected BrokenJCEBlockCipher(BlockCipher engine)
protected BrokenJCEBlockCipher(BlockCipher engine, int pbeType, int pbeHash, int pbeKeySize, int pbeIvSize)
Method Summary
protected byte[]engineDoFinal(byte[] input, int inputOffset, int inputLen)
protected intengineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)
protected intengineGetBlockSize()
protected byte[]engineGetIV()
protected intengineGetKeySize(Key key)
protected intengineGetOutputSize(int inputLen)
protected AlgorithmParametersengineGetParameters()
protected voidengineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)
protected voidengineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)
protected voidengineInit(int opmode, Key key, SecureRandom random)
protected voidengineSetMode(String mode)
protected voidengineSetPadding(String padding)
protected KeyengineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType)
protected byte[]engineUpdate(byte[] input, int inputOffset, int inputLen)
protected intengineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)
protected byte[]engineWrap(Key key)

Constructor Detail

BrokenJCEBlockCipher

protected BrokenJCEBlockCipher(BlockCipher engine)

BrokenJCEBlockCipher

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

Method Detail

engineDoFinal

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

engineDoFinal

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

engineGetBlockSize

protected int engineGetBlockSize()

engineGetIV

protected byte[] engineGetIV()

engineGetKeySize

protected int engineGetKeySize(Key key)

engineGetOutputSize

protected int engineGetOutputSize(int inputLen)

engineGetParameters

protected AlgorithmParameters engineGetParameters()

engineInit

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

engineInit

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

engineInit

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

engineSetMode

protected void engineSetMode(String mode)

engineSetPadding

protected void engineSetPadding(String padding)

engineUnwrap

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

engineUpdate

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

engineUpdate

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

engineWrap

protected byte[] engineWrap(Key key)