#NEWLINE# def setIV( self , IV ) : #NEWLINE# #INDENT# 'Will set the Initial Value, used in conjunction with CBC mode' #NEWLINE# if ( ( not IV ) or ( len ( IV ) != self . block_size ) ) : #NEWLINE# #INDENT# raise ValueError ( ( ( 'Invalid Initial Value (IV), must be a multiple of ' + str ( self . block_size ) ) + ' bytes' ) ) #NEWLINE# #UNINDENT# IV = self . _guardAgainstUnicode ( self ) #NEWLINE# self . _iv = IV