<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
I _need_ to decrypt some data that _is_ encrypted with AES using 128
bit CFB. i.e. feeback size is 128 bits.<br>
<br>
I tried MODE_CFB with PyCrypto but the data did not decrypt
correctly.<br>
Reading the docs a little closer I see that PyCrypto only seems to
implement 8 bit CFB.<br>
<br>
Is there any way to set the feedback size to 128 (or other sizes:
64, 32, 16 or 8 bits) ??<br>
<br>
Just for reference, I am porting some VB code to python, and the
equivalent VB decryption code is :<br>
<blockquote>Dim myAes as New RijndaelManaged()<br>
myAes.FeebackSize = 128<br>
myAes.Mode = CipherMode.CFB<br>
myAes.Key = key<br>
myAes.IV = iv<br>
myAes.Padding = PaddingMode.None<br>
</blockquote>
<br>
If there is no way of doing this with PyCrypto, then I guess I will
have to fall back to using ECB and doing the feedback myself. Not
too difficult, but it would be nice if PyCrypto had the option of
specifying the CFB Feeback size :)<br>
<br>
Thanks, Brendan.<br>
<br>
</body>
</html>