From: SourceForge.net <no...@so...> - 2008-08-24 00:55:56
|
Bugs item #2070522, was opened at 2008-08-24 00:56 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=120937&aid=2070522&group_id=20937 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Encryption modes not functioning properly Initial Comment: Modes of encryption/decryption other than 1 and 4 do not seem to function properly for any of the various ciphers in the toolkit. It seems to be the first block which comes out incorrect but mode 5 does not function at all. Example: plain = 'Block001Block002Block003Block004Block005 Block006Block007Block008Block009Block010' for x in range(1,6): ... AESobj = AES.new('1234567812345678',x) ... ciph = AESobj.encrypt(plain) ... AESobj.decrypt(ciph) print "" ... 'Block001Block002Block003Block004Block005 Block006Block007Block008Block009Block010' '\xf6\x8c5n\xcc\xc2\x12\x840p\xd3,\xe2\xac{\xe5Block003Block004Block005 Block006Block007Block008Block009Block010' '( -\xd7\xa6\n\x0f\xaa\x14]\xa203b\x9eBlock003 Block004Block005Block006Block007Block008 Block009Block010' 'L\x17\xd0\x93\x9b\x8ad\xe7Block002Block003Block004 Block005Block006Block007Block008Block009Block010' '\x06\x83\xd1KwZ\xd0\x0bn\x88\x1cc\xcd\x99yV\xc4\x15\xdc\x8b\xf8\xd3\x7f8\xd8 \xdaj\xa8\x05\xb2\x86_UG\xe0#\xad\xc8d\xe5E\xb3\xa2io\x00B&\xab\x85\xac\xbdT\xb5m\xa2S#\xbb7\x8c\xad\xe4\xe6D\xbd<\x83C|V\xd4D[\xdd\xf3\x82' Also, I get memory errors when setting RC5 rounds to higher than 49. Example 1: >>> RC5obj = RC5.new('123456781234567812345678',1,rounds=100) Segmentation fault Example 2: >>> RC5obj = RC5.new('123456781234567812345678',3,rounds=255) *** glibc detected *** python: malloc(): memory corruption: 0x000000000080c050 *** Also, AllOrNothing protocol produces some list entries that are only 7 bytes instead of 8 and so the undigest operation always fails. Sorry if this is some error in implementation on my part I'm new to programming/cryptography/Linux. Also just to note the example usages at www.amk.ca use a different format to specify the mode than the toolkit demanded of me in practice (accepting only an integer). I have tried installations both through the Adept Package manager and as installed by the scripts available at amk.ca with the same results. Thanks, Edward John Carscallen ej_...@ho... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=120937&aid=2070522&group_id=20937 |