diff options
Diffstat (limited to 'pipermail/pycrypto/2012q2/000601.html')
-rw-r--r-- | pipermail/pycrypto/2012q2/000601.html | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/pipermail/pycrypto/2012q2/000601.html b/pipermail/pycrypto/2012q2/000601.html new file mode 100644 index 0000000..65280f9 --- /dev/null +++ b/pipermail/pycrypto/2012q2/000601.html @@ -0,0 +1,107 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> + <HEAD> + <TITLE> [pycrypto] Typo or bug? + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:pycrypto%40lists.dlitz.net?Subject=Re%3A%20%5Bpycrypto%5D%20Typo%20or%20bug%3F&In-Reply-To=%3CCAEncD4dw9T-fByufTh-XwoWMAAGmM3SfAiKMtjDSX88zV5bcXg%40mail.gmail.com%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <style type="text/css"> + pre { + white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */ + } + </style> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="000600.html"> + <LINK REL="Next" HREF="000602.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[pycrypto] Typo or bug?</H1> + <B>Dave Pawson</B> + <A HREF="mailto:pycrypto%40lists.dlitz.net?Subject=Re%3A%20%5Bpycrypto%5D%20Typo%20or%20bug%3F&In-Reply-To=%3CCAEncD4dw9T-fByufTh-XwoWMAAGmM3SfAiKMtjDSX88zV5bcXg%40mail.gmail.com%3E" + TITLE="[pycrypto] Typo or bug?">dave.pawson at gmail.com + </A><BR> + <I>Tue Jun 26 06:19:49 EDT 2012</I> + <P><UL> + <LI>Previous message: <A HREF="000600.html">[pycrypto] Typo or bug? +</A></li> + <LI>Next message: <A HREF="000602.html">[pycrypto] Typo or bug? +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#601">[ date ]</a> + <a href="thread.html#601">[ thread ]</a> + <a href="subject.html#601">[ subject ]</a> + <a href="author.html#601">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>On 26 June 2012 10:52, Legrandin <<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">gooksankoo at hoiptorrow.mailexpire.com</A>> wrote: +>><i>   encobj = AES.new(secret, AES.MODE_CFB) +</I>>><i>   File "/usr/lib64/python2.7/site-packages/Crypto/Cipher/blockalgo.py", +</I>>><i> line 141, in __init__ +</I>>><i>   self._cipher = factory.new(key, *args, **kwargs) +</I>>><i> ValueError: IV must be 16 bytes long +</I>>><i> +</I>>><i> So although the 'secret' is 16 bytes long, I'm getting a report saying it +</I>>><i> isn't? +</I>>><i> +</I>><i> +</I>><i> Hi Dave, +</I>><i> +</I>><i> The key is OK, but the IV is missing and it is mandatory for CFB. +</I>><i> Your code should be: +</I>><i> +</I>><i> encobj = AES.new(secret, AES.MODE_CFB, some_iv) +</I>><i> +</I>><i> where len(some_iv)==16. +</I> +Next question (bet you saw this coming)... +some_iv? Any explanation of this call please? +What should it be? + + +Sorry to sound so newbie... This code has worked well for a year or more? + + +TIA + + + + + +-- +Dave Pawson +XSLT XSL-FO FAQ. +Docbook FAQ. +<A HREF="http://www.dpawson.co.uk">http://www.dpawson.co.uk</A> +</PRE> + + + + + + + + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="000600.html">[pycrypto] Typo or bug? +</A></li> + <LI>Next message: <A HREF="000602.html">[pycrypto] Typo or bug? +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#601">[ date ]</a> + <a href="thread.html#601">[ thread ]</a> + <a href="subject.html#601">[ subject ]</a> + <a href="author.html#601">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">More information about the pycrypto +mailing list</a><br> +</body></html> |