adityaprasad / slowaes

Automatically exported from code.google.com/p/slowaes
0 stars 0 forks source link

Javascript AES-CBC: PKCS7 Padding broken for 16 bytes long blocks (and multiples) #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When encrypting 16 bytes long blocks (and multiples of 16 bytes) of
plaintext with the Javascript version of SlowAES/CBC the padding block is
not appended.

PKCS7 needs a full 16-bytes padding block made of 0x10 added to the
plaintext before encryption in such case.

Thanks for the library!
stefano

Original issue reported on code.google.com by stefano%...@gtempaccount.com on 9 Aug 2009 at 2:04

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Try out this fix.

Original comment by kiat...@gmail.com on 8 Sep 2009 at 5:37

Attachments:

GoogleCodeExporter commented 9 years ago
I committed r39 which should fix this

Original comment by pfngu...@gmail.com on 8 Mar 2011 at 4:36