#NEWLINE# def __init__( self , factor = 1.0 , blocksper = 1 ) : #NEWLINE# #INDENT# 'Chaff(factor:float, blocksper:int)\n\n        factor is the number of message blocks to add chaff to,\n        expressed as a percentage between 0.0 and 1.0.  blocksper is\n        the number of chaff blocks to include for each block being\n        chaffed.  Thus the defaults add one chaff block to every\n        message block.  By changing the defaults, you can adjust how\n        computationally difficult it could be for an adversary to\n        brute-force crack the message.  The difficulty is expressed\n        as:\n\n            pow(blocksper, int(factor * number-of-blocks))\n\n        For ease of implementation, when factor < 1.0, only the first\n        int(factor*number-of-blocks) message blocks are chaffed.\n        ' #NEWLINE# if ( not ( 0.0 <= factor <= 1.0 ) ) : #NEWLINE# #INDENT# raise ValueError ( "'factor' must be between 0.0 and 1.0" ) #NEWLINE# #UNINDENT# if ( blocksper < 0 ) : #NEWLINE# #INDENT# raise ValueError ( "'blocksper' must be zero or more" ) #NEWLINE# #UNINDENT# self . __factor = self #NEWLINE# self . __blocksper = blocksper