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
public class BrokenJCEBlockCipher extends java.lang.Object implements BrokenPBE
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBrokenJCEBlockCipher.BrokePBEWithMD5AndDESPBEWithMD5AndDESstatic classBrokenJCEBlockCipher.BrokePBEWithSHA1AndDESPBEWithSHA1AndDESstatic classBrokenJCEBlockCipher.BrokePBEWithSHAAndDES2KeyPBEWithSHAAnd2-KeyTripleDES-CBCstatic classBrokenJCEBlockCipher.BrokePBEWithSHAAndDES3KeyPBEWithSHAAnd3-KeyTripleDES-CBCstatic classBrokenJCEBlockCipher.OldPBEWithSHAAndDES3KeyOldPBEWithSHAAnd3-KeyTripleDES-CBCstatic classBrokenJCEBlockCipher.OldPBEWithSHAAndTwofishOldPBEWithSHAAndTwofish-CBC-
Nested classes/interfaces inherited from interface org.bouncycastle.jce.provider.BrokenPBE
BrokenPBE.Util
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBrokenJCEBlockCipher(BlockCipher engine)protectedBrokenJCEBlockCipher(BlockCipher engine, int pbeType, int pbeHash, int pbeKeySize, int pbeIvSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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(java.security.Key key)protected intengineGetOutputSize(int inputLen)protected java.security.AlgorithmParametersengineGetParameters()protected voidengineInit(int opmode, java.security.Key key, java.security.AlgorithmParameters params, java.security.SecureRandom random)protected voidengineInit(int opmode, java.security.Key key, java.security.SecureRandom random)protected voidengineInit(int opmode, java.security.Key key, java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random)protected voidengineSetMode(java.lang.String mode)protected voidengineSetPadding(java.lang.String padding)protected java.security.KeyengineUnwrap(byte[] wrappedKey, java.lang.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(java.security.Key key)
-
-
-
Constructor Detail
-
BrokenJCEBlockCipher
protected BrokenJCEBlockCipher(BlockCipher engine)
-
BrokenJCEBlockCipher
protected BrokenJCEBlockCipher(BlockCipher engine, int pbeType, int pbeHash, int pbeKeySize, int pbeIvSize)
-
-
Method Detail
-
engineGetBlockSize
protected int engineGetBlockSize()
-
engineGetIV
protected byte[] engineGetIV()
-
engineGetKeySize
protected int engineGetKeySize(java.security.Key key)
-
engineGetOutputSize
protected int engineGetOutputSize(int inputLen)
-
engineGetParameters
protected java.security.AlgorithmParameters engineGetParameters()
-
engineSetMode
protected void engineSetMode(java.lang.String mode)
-
engineSetPadding
protected void engineSetPadding(java.lang.String padding) throws javax.crypto.NoSuchPaddingException- Throws:
javax.crypto.NoSuchPaddingException
-
engineInit
protected void engineInit(int opmode, java.security.Key key, java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random) throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException- Throws:
java.security.InvalidKeyExceptionjava.security.InvalidAlgorithmParameterException
-
engineInit
protected void engineInit(int opmode, java.security.Key key, java.security.AlgorithmParameters params, java.security.SecureRandom random) throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException- Throws:
java.security.InvalidKeyExceptionjava.security.InvalidAlgorithmParameterException
-
engineInit
protected void engineInit(int opmode, java.security.Key key, java.security.SecureRandom random) throws java.security.InvalidKeyException- Throws:
java.security.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 javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException- Throws:
javax.crypto.IllegalBlockSizeExceptionjavax.crypto.BadPaddingException
-
engineDoFinal
protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException- Throws:
javax.crypto.IllegalBlockSizeExceptionjavax.crypto.BadPaddingException
-
engineWrap
protected byte[] engineWrap(java.security.Key key) throws javax.crypto.IllegalBlockSizeException, java.security.InvalidKeyException- Throws:
javax.crypto.IllegalBlockSizeExceptionjava.security.InvalidKeyException
-
engineUnwrap
protected java.security.Key engineUnwrap(byte[] wrappedKey, java.lang.String wrappedKeyAlgorithm, int wrappedKeyType) throws java.security.InvalidKeyException- Throws:
java.security.InvalidKeyException
-
-