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
Modifier and TypeClassDescriptionstatic class
PBEWithMD5AndDESstatic class
PBEWithSHA1AndDESstatic class
PBEWithSHAAnd2-KeyTripleDES-CBCstatic class
PBEWithSHAAnd3-KeyTripleDES-CBCstatic class
OldPBEWithSHAAnd3-KeyTripleDES-CBCstatic class
OldPBEWithSHAAndTwofish-CBCNested classes/interfaces inherited from interface org.bouncycastle.jce.provider.BrokenPBE
BrokenPBE.Util
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
BrokenJCEBlockCipher
(BlockCipher engine) protected
BrokenJCEBlockCipher
(BlockCipher engine, int pbeType, int pbeHash, int pbeKeySize, int pbeIvSize) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
engineGetKeySize
(Key key) protected int
engineGetOutputSize
(int inputLen) protected AlgorithmParameters
protected void
engineInit
(int opmode, Key key, AlgorithmParameters params, SecureRandom random) protected void
engineInit
(int opmode, Key key, SecureRandom random) protected void
engineInit
(int opmode, Key key, AlgorithmParameterSpec params, 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
-
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
-