Package com.lowagie.text.pdf.crypto
Class AESCipher
java.lang.Object
com.lowagie.text.pdf.crypto.AESCipher
Creates an AES Cipher with CBC and padding PKCS5/7.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher
-
Constructor Summary
ConstructorsConstructorDescriptionAESCipher
(boolean forEncryption, byte[] key, byte[] iv) Creates a new instance of AESCipher -
Method Summary
-
Field Details
-
bp
private final org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher bp
-
-
Constructor Details
-
AESCipher
public AESCipher(boolean forEncryption, byte[] key, byte[] iv) Creates a new instance of AESCipher- Parameters:
forEncryption
- If it is for encryptionkey
- Bytes for keyiv
- An initialization vector
-
-
Method Details
-
update
public byte[] update(byte[] inp, int inpOff, int inpLen) -
doFinal
public byte[] doFinal()
-