[PYTHON-CRYPTO] pycrypto with different encryption client

Sascha Silbe sascha-ml-cryptography-python-crypto at SILBE.ORG
Mon May 28 13:59:30 CEST 2007


On Mon, May 28, 2007 at 05:08:59AM +0200, Ti Lyte wrote:

> Wondering if the IV has anything to do with it, i know the first round 
> in CBC using the IV which none of the javascript clients allow you to 
> set.
A quick glance over the code (aes.js:485..486) suggests that the first 
block of "ciphertext" produced by rijndaelEncrypt() is the IV. So in 
order to decrypt this data it should suffice to take the first block of 
"ciphertext", set it as IV, and decrypt the remaining blocks. Haven't 
tested it, though.

CU Sascha

-- 
http://sascha.silbe.org/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-crypto/attachments/20070528/cf8cb9f7/attachment.pgp>


More information about the python-crypto mailing list