Package org.bouncycastle.jce.provider
Class BrokenJCEBlockCipher
java.lang.Object
org.bouncycastle.jce.provider.BrokenJCEBlockCipher
- All Implemented Interfaces:
BrokenPBE
- Direct Known Subclasses:
BrokenJCEBlockCipher.BrokePBEWithMD5AndDES,BrokenJCEBlockCipher.BrokePBEWithSHA1AndDES,BrokenJCEBlockCipher.BrokePBEWithSHAAndDES2Key,BrokenJCEBlockCipher.BrokePBEWithSHAAndDES3Key,BrokenJCEBlockCipher.OldPBEWithSHAAndDES3Key,BrokenJCEBlockCipher.OldPBEWithSHAAndTwofish
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classPBEWithMD5AndDESstatic classPBEWithSHA1AndDESstatic classPBEWithSHAAnd2-KeyTripleDES-CBCstatic classPBEWithSHAAnd3-KeyTripleDES-CBCstatic classOldPBEWithSHAAnd3-KeyTripleDES-CBCstatic classOldPBEWithSHAAndTwofish-CBCNested classes/interfaces inherited from interface org.bouncycastle.jce.provider.BrokenPBE
BrokenPBE.Util -
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBrokenJCEBlockCipher(BlockCipher engine) protectedBrokenJCEBlockCipher(BlockCipher engine, int pbeType, int pbeHash, int pbeKeySize, int pbeIvSize) -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]engineDoFinal(byte[] input, int inputOffset, int inputLen) protected intengineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) protected intprotected byte[]protected intengineGetKeySize(Key key) protected intengineGetOutputSize(int inputLen) protected AlgorithmParametersprotected voidengineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) protected voidengineInit(int opmode, Key key, SecureRandom random) protected voidengineInit(int opmode, Key key, AlgorithmParameterSpec params, 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 Details
-
BrokenJCEBlockCipher
-
BrokenJCEBlockCipher
protected BrokenJCEBlockCipher(BlockCipher engine, int pbeType, int pbeHash, int pbeKeySize, int pbeIvSize)
-
-
Method Details
-
engineGetBlockSize
protected int engineGetBlockSize() -
engineGetIV
protected byte[] engineGetIV() -
engineGetKeySize
-
engineGetOutputSize
protected int engineGetOutputSize(int inputLen) -
engineGetParameters
-
engineSetMode
-
engineSetPadding
- Throws:
NoSuchPaddingException
-
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
- 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) -
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 -
engineWrap
-
engineUnwrap
protected Key engineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType) throws InvalidKeyException - Throws:
InvalidKeyException
-