diff options
Diffstat (limited to 'pipermail/pycrypto/attachments/20120626/7afc9474/attachment.html')
-rw-r--r-- | pipermail/pycrypto/attachments/20120626/7afc9474/attachment.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pipermail/pycrypto/attachments/20120626/7afc9474/attachment.html b/pipermail/pycrypto/attachments/20120626/7afc9474/attachment.html new file mode 100644 index 0000000..ff82f7d --- /dev/null +++ b/pipermail/pycrypto/attachments/20120626/7afc9474/attachment.html @@ -0,0 +1,13 @@ +<tt> +<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br> + encobj = AES.new(secret, AES.MODE_CFB)<br> <br> + File "/usr/lib64/python2.7/site-packages/Crypto/Cipher/blockalgo.py",<br><br> +line 141, in __init__<br><br> + self._cipher = factory.new(key, *args, **kwargs)<br><br> +ValueError: IV must be 16 bytes long<br><br> +<br><br> +So although the 'secret' is 16 bytes long, I'm getting a report saying it isn't?<br><br></blockquote></div><br>Hi Dave,<br><br> +<br><br> +The key is OK, but the IV is missing and it is mandatory for CFB.<br>Your code should be:<br><br>encobj = AES.new(secret, AES.MODE_CFB, some_iv)<br><br>where len(some_iv)==16.<br><br> + +</tt> |