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

"SourceForge.net" <[email protected]> Mon, 09 May 2005 07:06:26 -0700
Newsgroups gmane.comp.python.cryptography.cvs
Message-ID <[email protected]>
Bugs item #1198296, was opened at 2005-05-09 09:41
Message generated for change (Comment added) made by akuchling
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=120937&aid=1198296&group_id=20937

Category: None
Group: None
>Status: Closed
>Resolution: Wont Fix
Priority: 5
Submitted By: Magnus Therning (mtherning)
>Assigned to: A.M. Kuchling (akuchling)
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'
  >>>


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

>Comment By: A.M. Kuchling (akuchling)
Date: 2005-05-09 10:06

Message:
Logged In: YES 
user_id=11375

Not a bug -- PGP feedback mode is stateful, so you can't mix
encryption and decryption on the same object.


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

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