Class AESCipherCBCnoPad
java.lang.Object
com.itextpdf.kernel.crypto.AESCipherCBCnoPad
Deprecated.
the AES-CBC cipher is a low-level cryptographic primitive
that requires careful understanding to use it safely.
This class is only a thin wrapper and is not intended for general use.
Instead, use API provided by cryptography libraries directly
or rely on high-level PDF encryption functionality.
Creates an AES Cipher with CBC and no padding.
-
Constructor Summary
ConstructorsConstructorDescriptionAESCipherCBCnoPad(boolean forEncryption, byte[] key) Deprecated.Creates a new instance of AESCipher with CBC and no paddingAESCipherCBCnoPad(boolean forEncryption, byte[] key, byte[] initVector) Deprecated.Creates a new instance of AESCipher with CBC and no padding -
Method Summary
Modifier and TypeMethodDescriptionbyte[]processBlock(byte[] inp, int inpOff, int inpLen) Deprecated.
-
Constructor Details
-
AESCipherCBCnoPad
public AESCipherCBCnoPad(boolean forEncryption, byte[] key) Deprecated.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) Deprecated.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) Deprecated.
-