#NEWLINE# def encrypt( self , plaintext ) : #NEWLINE# #INDENT# TripleDES . encrypt ( self , plaintext ) #NEWLINE# context = self . _createContext ( 1 ) #NEWLINE# ciphertext = m2 . cipher_update ( context , plaintext ) #NEWLINE# m2 . cipher_ctx_free ( plaintext ) #NEWLINE# self . IV = ciphertext [ ( - self . block_size ) : ] #NEWLINE# return ciphertext