parameters: (self, plaintext)
return_statement: return res
docstring: Encrypt data with the key and the parameters set at initialization.
  
          A cipher object is stateful: once you have encrypted a message
          you cannot encrypt (or decrypt) another message using the same
          object.
  
          The data to encrypt can be broken up in two or
          more pieces and `encrypt` can be called multiple times.
  
          That is, the statement:
  
              >>> c.encrypt(a) + c.encrypt(b)
  
          is equivalent to:
  
               >>> c.encrypt(a+b)
  
          This function does not add any padding to the plaintext.
  
          :Parameters:
            plaintext : bytes/bytearray/memoryview
              The piece of data to encrypt.
  
          :Return:
              the encrypted data, as a byte string.
              It is as long as *plaintext* with one exception:
              when encrypting the first message chunk,
              the encypted IV is prepended to the returned ciphertext.
docstring_summary: Encrypt data with the key and the parameters set at initialization.
docstring_tokens: Encrypt data with the key and the parameters set at initialization .
function: def encrypt(self, plaintext):
          """Encrypt data with the key and the parameters set at initialization.
  
          A cipher object is stateful: once you have encrypted a message
          you cannot encrypt (or decrypt) another message using the same
          object.
  
          The data to encrypt can be broken up in two or
          more pieces and `encrypt` can be called multiple times.
  
          That is, the statement:
  
              >>> c.encrypt(a) + c.encrypt(b)
  
          is equivalent to:
  
               >>> c.encrypt(a+b)
  
          This function does not add any padding to the plaintext.
  
          :Parameters:
            plaintext : bytes/bytearray/memoryview
              The piece of data to encrypt.
  
          :Return:
              the encrypted data, as a byte string.
              It is as long as *plaintext* with one exception:
              when encrypting the first message chunk,
              the encypted IV is prepended to the returned ciphertext.
          """
  
          res = self._cipher.encrypt(plaintext)
          if not self._done_first_block:
              res = self._encrypted_IV + res
              self._done_first_block = True
          return res
function_tokens: def encrypt ( self , plaintext ) : res = self . _cipher . encrypt ( plaintext ) if not self . _done_first_block : res = self . _encrypted_IV + res self . _done_first_block = True return res