diff options
Diffstat (limited to 'pipermail/pycrypto/attachments/20100721/d5baa07b/attachment-0001.html')
-rw-r--r-- | pipermail/pycrypto/attachments/20100721/d5baa07b/attachment-0001.html | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/pipermail/pycrypto/attachments/20100721/d5baa07b/attachment-0001.html b/pipermail/pycrypto/attachments/20100721/d5baa07b/attachment-0001.html new file mode 100644 index 0000000..6435c60 --- /dev/null +++ b/pipermail/pycrypto/attachments/20100721/d5baa07b/attachment-0001.html @@ -0,0 +1,40 @@ +<tt> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><br> +<html><br> + <head><br> +<br> + <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><br> + </head><br> + <body text="#000000" bgcolor="#ffffff"><br> + I _need_ to decrypt some data that _is_ encrypted with AES using 128<br> + bit CFB.&nbsp; i.e. feeback size is 128 bits.<br><br> + <br><br> + I tried MODE_CFB with PyCrypto but the data did not decrypt<br> + correctly.<br><br> + Reading the docs a little closer I see that PyCrypto only seems to<br> + implement 8 bit CFB.<br><br> + <br><br> + Is there any way to set the feedback size to 128 (or other sizes:<br> + 64, 32, 16 or 8 bits) ??<br><br> + <br><br> + Just for reference, I am porting some VB code to python, and the<br> + equivalent VB decryption code is :<br><br> + <blockquote>Dim myAes as New RijndaelManaged()<br><br> + myAes.FeebackSize = 128<br><br> + myAes.Mode = CipherMode.CFB<br><br> + myAes.Key = key<br><br> + myAes.IV = iv<br><br> + myAes.Padding = PaddingMode.None<br><br> + </blockquote><br> + <br><br> + If there is no way of doing this with PyCrypto, then I guess I will<br> + have to fall back to using ECB and doing the feedback myself.&nbsp; Not<br> + too difficult, but it would be nice if PyCrypto had the option of<br> + specifying the CFB Feeback size :)<br><br> + <br><br> + Thanks, Brendan.<br><br> + <br><br> + </body><br> +</html><br> + +</tt> |