Class AESCipherCBCnoPad


  • @Deprecated
    public class AESCipherCBCnoPad
    extends java.lang.Object
    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

      Constructors 
      Constructor Description
      AESCipherCBCnoPad​(boolean forEncryption, byte[] key)
      Deprecated.
      Creates a new instance of AESCipher with CBC and no padding
      AESCipherCBCnoPad​(boolean forEncryption, byte[] key, byte[] initVector)
      Deprecated.
      Creates a new instance of AESCipher with CBC and no padding
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      byte[] processBlock​(byte[] inp, int inpOff, int inpLen)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • CIPHER_WITHOUT_PADDING

        private static final java.lang.String CIPHER_WITHOUT_PADDING
        Deprecated.
        See Also:
        Constant Field Values
      • BOUNCY_CASTLE_FACTORY

        private static final IBouncyCastleFactory BOUNCY_CASTLE_FACTORY
        Deprecated.
      • cipher

        private final javax.crypto.Cipher cipher
        Deprecated.
    • Constructor Detail

      • 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 decryption
        key - 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 decryption
        key - the key to be used in the cipher
        initVector - initialization vector to be used in cipher
    • Method Detail

      • processBlock

        public byte[] processBlock​(byte[] inp,
                                   int inpOff,
                                   int inpLen)
        Deprecated.