[ pycrypto-Bugs-1559789 ] AES MODE_CBC require multiple of 16 bytes to work?
"SourceForge.net" <[email protected]> Fri, 12 Jan 2007 13:06:46 -0800
| Newsgroups | gmane.comp.python.cryptography.cvs |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1559789, was opened at 2006-09-16 15:11
Message generated for change (Comment added) made by dobesv
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=120937&aid=1559789&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: AES MODE_CBC require multiple of 16 bytes to work?
Initial Comment:
It seems to me that the CBC algorithm is implemented a
little odd...
When using the CBC mode it should be possible to pass
data with lengths not a multiple of 16?
The following code produces the error:
from Crypto.Cipher import AES
a = AES.new('abcdefghabcdefgh', AES.MODE_CBC)
a.encrypt('This is a test ')
----------------------------------------------------------------------
Comment By: Dobes V (dobesv)
Date: 2007-01-12 21:06
Message:
Logged In: YES
user_id=400635
Originator: NO
Actually, no. With CBC each block is XOR'ed with the next, one complete
block at a time.
You're probably thinking of CFB.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=120937&aid=1559789&group_id=20937
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV