[ pycrypto-Bugs-1198296 ] AES must be called twice to get predictable results

"SourceForge.net" <[email protected]> Mon, 09 May 2005 06:41:20 -0700
Newsgroups gmane.comp.python.cryptography.cvs
Message-ID <[email protected]>
Bugs item #1198296, was opened at 2005-05-09 15:41
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=1198296&group_id=20937

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Magnus Therning (mtherning)
Assigned to: Nobody/Anonymous (nobody)
Summary: AES must be called twice to get predictable results

Initial Comment:
As illustrated by the following python code:

  >>> from Crypto.Cipher import AES
  >>> cb = AES.new('0' * 16, AES.MODE_PGP)
  >>> cb.decrypt(cb.encrypt('1' * 32))
  '\xa9\x9d\xda\x82\x94\xe3\xacL111111111111111111111111'
  >>> cb.decrypt(cb.encrypt('1' * 32))
  '11111111111111111111111111111111'
  >>>


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=120937&aid=1198296&group_id=20937


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20