Package com.itextpdf.kernel.crypto
Class AESCipherCBCnoPad
java.lang.Object
com.itextpdf.kernel.crypto.AESCipherCBCnoPad
Creates an AES Cipher with CBC and no padding.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final IBouncyCastleFactory
private static Cipher
private static final String
-
Constructor Summary
ConstructorsConstructorDescriptionAESCipherCBCnoPad
(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
-
Field Details
-
CIPHER_WITHOUT_PADDING
- See Also:
-
BOUNCY_CASTLE_FACTORY
-
cipher
-
-
Constructor Details
-
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
-
-
Method Details
-
processBlock
public byte[] processBlock(byte[] inp, int inpOff, int inpLen)
-