#NEWLINE# def recoverPlaintext( ) : #NEWLINE# #INDENT# ( targetCipher , iv ) = encryptString ( ) #NEWLINE# targetBlocks = chunks ( targetCipher , 16 ) #NEWLINE# plaintext = b'' #NEWLINE# for i in range ( len ( targetBlocks ) ) : #NEWLINE# #INDENT# plaintext += recoverBlock ( targetBlocks [ plaintext ] , iv ) #NEWLINE# iv = targetBlocks [ i ] #NEWLINE# #UNINDENT# return plaintext