Package com.itextpdf.kernel.crypto
Class AESCipherCBCnoPad
- java.lang.Object
-
- com.itextpdf.kernel.crypto.AESCipherCBCnoPad
-
public class AESCipherCBCnoPad extends java.lang.Object
Creates an AES Cipher with CBC and no padding.
-
-
Field Summary
Fields Modifier and Type Field Description private static IBouncyCastleFactory
BOUNCY_CASTLE_FACTORY
private javax.crypto.Cipher
cipher
private static java.lang.String
CIPHER_WITHOUT_PADDING
-
Constructor Summary
Constructors Constructor Description AESCipherCBCnoPad(boolean forEncryption, byte[] key)
Creates a new instance of AESCipher with CBC and no paddingAESCipherCBCnoPad(boolean forEncryption, byte[] key, byte[] initVector)
Creates a new instance of AESCipher with CBC and no padding
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
processBlock(byte[] inp, int inpOff, int inpLen)
-
-
-
Field Detail
-
CIPHER_WITHOUT_PADDING
private static final java.lang.String CIPHER_WITHOUT_PADDING
- See Also:
- Constant Field Values
-
BOUNCY_CASTLE_FACTORY
private static final IBouncyCastleFactory BOUNCY_CASTLE_FACTORY
-
cipher
private final javax.crypto.Cipher cipher
-
-
Constructor Detail
-
AESCipherCBCnoPad
public AESCipherCBCnoPad(boolean forEncryption, byte[] key)
Creates a new instance of AESCipher with CBC and no padding- Parameters:
forEncryption
- if true the cipher is initialised for encryption, if false for decryptionkey
- the key to be used in the cipher
-
AESCipherCBCnoPad
public AESCipherCBCnoPad(boolean forEncryption, byte[] key, byte[] initVector)
Creates a new instance of AESCipher with CBC and no padding- Parameters:
forEncryption
- if true the cipher is initialised for encryption, if false for decryptionkey
- the key to be used in the cipherinitVector
- initialization vector to be used in cipher
-
-