iTextSharp.text.pdf.crypto.AESCipherCBCnoPad.AESCipherCBCnoPad C# (CSharp) Method

AESCipherCBCnoPad() public method

public AESCipherCBCnoPad ( bool forEncryption, byte key ) : System
forEncryption bool
key byte
return System
        public AESCipherCBCnoPad(bool forEncryption, byte[] key)
        {
            IBlockCipher aes = new AesFastEngine();
            cbc = new CbcBlockCipher(aes);
            KeyParameter kp = new KeyParameter(key);
            cbc.Init(forEncryption, kp);
        }