#NEWLINE# def determinePlaintextLength( ) : #NEWLINE# #INDENT# plaintext = b'' #NEWLINE# emptyCipherLength = len ( append_and_encrypt ( plaintext ) ) #NEWLINE# maxPlaintextLength = ( emptyCipherLength - 1 ) #NEWLINE# while True : #NEWLINE# #INDENT# plaintext += b'A' #NEWLINE# thisCipherLength = len ( append_and_encrypt ( plaintext ) ) #NEWLINE# if ( thisCipherLength == emptyCipherLength ) : #NEWLINE# #INDENT# maxPlaintextLength -= 1 #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return thisCipherLength