[ pycrypto-Bugs-1559789 ] AES MODE_CBC require multiple of 16 bytes to work?

"SourceForge.net" <[email protected]> Sat, 16 Sep 2006 08:11:08 -0700
Newsgroups gmane.comp.python.cryptography.cvs
Message-ID <[email protected]>
Bugs item #1559789, was opened at 2006-09-16 08:11
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=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
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    ')



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

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

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642