com.lowagie.text.pdf.crypto

Class AESCipher

public class AESCipher extends Object

Creates an AES Cipher with CBC and padding PKCS5/7.

Author: Paulo Soares (psoares@consiste.pt)

Field Summary
PaddedBufferedBlockCipherbp
Constructor Summary
AESCipher(boolean forEncryption, byte[] key, byte[] iv)
Creates a new instance of AESCipher
Method Summary
byte[]doFinal()
byte[]update(byte[] inp, int inpOff, int inpLen)

Field Detail

bp

private PaddedBufferedBlockCipher bp

Constructor Detail

AESCipher

public AESCipher(boolean forEncryption, byte[] key, byte[] iv)
Creates a new instance of AESCipher

Method Detail

doFinal

public byte[] doFinal()

update

public byte[] update(byte[] inp, int inpOff, int inpLen)