public class BrokenJCEBlockCipher extends java.lang.Object implements BrokenPBE
Modifier and Type | Class and Description |
---|---|
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
|
BrokenPBE.Util
Modifier | Constructor and Description |
---|---|
protected |
BrokenJCEBlockCipher(BlockCipher engine) |
protected |
BrokenJCEBlockCipher(BlockCipher engine,
int pbeType,
int pbeHash,
int pbeKeySize,
int pbeIvSize) |
Modifier and Type | Method and Description |
---|---|
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(java.security.Key key) |
protected int |
engineGetOutputSize(int inputLen) |
protected java.security.AlgorithmParameters |
engineGetParameters() |
protected void |
engineInit(int opmode,
java.security.Key key,
java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random) |
protected void |
engineInit(int opmode,
java.security.Key key,
java.security.AlgorithmParameters params,
java.security.SecureRandom random) |
protected void |
engineInit(int opmode,
java.security.Key key,
java.security.SecureRandom random) |
protected void |
engineSetMode(java.lang.String mode) |
protected void |
engineSetPadding(java.lang.String padding) |
protected java.security.Key |
engineUnwrap(byte[] wrappedKey,
java.lang.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(java.security.Key key) |
protected BrokenJCEBlockCipher(BlockCipher engine)
protected BrokenJCEBlockCipher(BlockCipher engine, int pbeType, int pbeHash, int pbeKeySize, int pbeIvSize)
protected int engineGetBlockSize()
protected byte[] engineGetIV()
protected int engineGetKeySize(java.security.Key key)
protected int engineGetOutputSize(int inputLen)
protected java.security.AlgorithmParameters engineGetParameters()
protected void engineSetMode(java.lang.String mode)
protected void engineSetPadding(java.lang.String padding) throws javax.crypto.NoSuchPaddingException
javax.crypto.NoSuchPaddingException
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
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException
protected void engineInit(int opmode, java.security.Key key, java.security.AlgorithmParameters params, java.security.SecureRandom random) throws java.security.InvalidKeyException, java.security.InvalidAlgorithmParameterException
java.security.InvalidKeyException
java.security.InvalidAlgorithmParameterException
protected void engineInit(int opmode, java.security.Key key, java.security.SecureRandom random) throws java.security.InvalidKeyException
java.security.InvalidKeyException
protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen)
protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)
protected byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) throws javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException
protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws javax.crypto.IllegalBlockSizeException, javax.crypto.BadPaddingException
javax.crypto.IllegalBlockSizeException
javax.crypto.BadPaddingException
protected byte[] engineWrap(java.security.Key key) throws javax.crypto.IllegalBlockSizeException, java.security.InvalidKeyException
javax.crypto.IllegalBlockSizeException
java.security.InvalidKeyException
protected java.security.Key engineUnwrap(byte[] wrappedKey, java.lang.String wrappedKeyAlgorithm, int wrappedKeyType) throws java.security.InvalidKeyException
java.security.InvalidKeyException