org.bouncycastle.jce.provider

Class BrokenJCEBlockCipher

Implemented Interfaces:
org.bouncycastle.jce.provider.BrokenPBE

public class BrokenJCEBlockCipher
extends java.lang.Object
implements org.bouncycastle.jce.provider.BrokenPBE

Nested Class Summary

static class
BrokenJCEBlockCipher.BrokePBEWithMD5AndDES
PBEWithMD5AndDES
static class
BrokenJCEBlockCipher.BrokePBEWithSHA1AndDES
PBEWithSHA1AndDES
static class
BrokenJCEBlockCipher.BrokePBEWithSHAAndDES2Key
PBEWithSHAAnd2-KeyTripleDES-CBC
static class
BrokenJCEBlockCipher.BrokePBEWithSHAAndDES3Key
PBEWithSHAAnd3-KeyTripleDES-CBC
static class
BrokenJCEBlockCipher.OldPBEWithSHAAndDES3Key
OldPBEWithSHAAnd3-KeyTripleDES-CBC
static class
BrokenJCEBlockCipher.OldPBEWithSHAAndTwofish
OldPBEWithSHAAndTwofish-CBC

Fields inherited from interface org.bouncycastle.jce.provider.BrokenPBE

MD5, OLD_PKCS12, PKCS12, PKCS5S1, PKCS5S2, RIPEMD160, SHA1

Constructor Summary

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

Method Summary

protected byte[]
engineDoFinal(byte[] input, int inputOffset, int inputLen)
protected int
engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)
protected int
engineGetBlockSize()
protected byte[]
engineGetIV()
protected int
engineGetKeySize(Key key)
protected int
engineGetOutputSize(int inputLen)
protected AlgorithmParameters
engineGetParameters()
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
engineSetMode(String mode)
protected void
engineSetPadding(String padding)
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[]
engineWrap(Key key)

Constructor Details

BrokenJCEBlockCipher

protected BrokenJCEBlockCipher(BlockCipher engine)


BrokenJCEBlockCipher

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

Method Details

engineDoFinal

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


engineDoFinal

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


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)
            throws InvalidKeyException,
                   InvalidAlgorithmParameterException


engineInit

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


engineInit

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


engineSetMode

protected void engineSetMode(String mode)


engineSetPadding

protected void engineSetPadding(String padding)
            throws NoSuchPaddingException


engineUnwrap

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


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)
            throws IllegalBlockSizeException,
                   java.security.InvalidKeyException