diff options
Diffstat (limited to 'pipermail/pycrypto/2014q1/000754.html')
-rw-r--r-- | pipermail/pycrypto/2014q1/000754.html | 175 |
1 files changed, 175 insertions, 0 deletions
diff --git a/pipermail/pycrypto/2014q1/000754.html b/pipermail/pycrypto/2014q1/000754.html new file mode 100644 index 0000000..341a366 --- /dev/null +++ b/pipermail/pycrypto/2014q1/000754.html @@ -0,0 +1,175 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> + <HEAD> + <TITLE> [pycrypto] Docs/code mis-match - not specifying IV fails + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:pycrypto%40lists.dlitz.net?Subject=Re%3A%20%5Bpycrypto%5D%20Docs/code%20mis-match%20-%20not%20specifying%20IV%20fails&In-Reply-To=%3CCAEncD4eAVgEGXPdxCxzHiLS0khkK%2B8oNMfnLpn%2BcegNyM6AjWA%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="000753.html"> + <LINK REL="Next" HREF="000755.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[pycrypto] Docs/code mis-match - not specifying IV fails</H1> + <B>Dave Pawson</B> + <A HREF="mailto:pycrypto%40lists.dlitz.net?Subject=Re%3A%20%5Bpycrypto%5D%20Docs/code%20mis-match%20-%20not%20specifying%20IV%20fails&In-Reply-To=%3CCAEncD4eAVgEGXPdxCxzHiLS0khkK%2B8oNMfnLpn%2BcegNyM6AjWA%40mail.gmail.com%3E" + TITLE="[pycrypto] Docs/code mis-match - not specifying IV fails">dave.pawson at gmail.com + </A><BR> + <I>Wed Jan 8 02:00:55 PST 2014</I> + <P><UL> + <LI>Previous message: <A HREF="000753.html">[pycrypto] Docs/code mis-match - not specifying IV fails +</A></li> + <LI>Next message: <A HREF="000755.html">[pycrypto] windows + linux line endings issue +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#754">[ date ]</a> + <a href="thread.html#754">[ thread ]</a> + <a href="subject.html#754">[ subject ]</a> + <a href="author.html#754">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>What does not make sense is that this group seems to accept this +discrepency between +docs and code. + +Does anyone know if the docs maintainer has any interest these days? + +regards + +On 8 January 2014 09:32, Hugh Macdonald <<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">hugh.macdonald at nvizible.com</A>> wrote: +><i> Hi Charley, +</I>><i> +</I>><i> Thanks for clarifying that - that makes sense to me. +</I>><i> +</I>><i> +</I>><i> Cheers +</I>><i> +</I>><i> Hugh +</I>><i> +</I>><i> +</I>><i> On 8 January 2014 00:59, Charley Nibley <<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">cnibley at gmail.com</A>> wrote: +</I>>><i> +</I>>><i> Hi Hugh, +</I>>><i> +</I>>><i> This behavior you are seeing is expected. It changed with a fix to +</I>>><i> prevent an empty string IV passed to the function. IV is always mandatory +</I>>><i> even if at some point in a previous build it was being passed as all zeros. +</I>>><i> I believe the doc just needs updating. +</I>>><i> +</I>>><i> See line 173: +</I>>><i> <A HREF="https://github.com/dlitz/pycrypto/commit/411f60f58cea79f7e93476ba0c069b80a2a4c1a0">https://github.com/dlitz/pycrypto/commit/411f60f58cea79f7e93476ba0c069b80a2a4c1a0</A> +</I>>><i> +</I>>><i> And see the comments here: <A HREF="https://bugs.launchpad.net/pycrypto/+bug/997464">https://bugs.launchpad.net/pycrypto/+bug/997464</A> +</I>>><i> +</I>>><i> Charley Nibley +</I>>><i> +</I>>><i> +</I>>><i> On Tue, Jan 7, 2014 at 9:43 AM, Hugh Macdonald +</I>>><i> <<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">hugh.macdonald at nvizible.com</A>> wrote: +</I>>>><i> +</I>>>><i> Hi, +</I>>>><i> +</I>>>><i> I've just been trying to figure out why some code of mine broke after an +</I>>>><i> update from 2.0.1 to 2.6.1, and found that I hadn't been passing an IV into +</I>>>><i> AES.new() (using MODE_CFB). +</I>>>><i> +</I>>>><i> Previously, it was happy with this, and, according to the docs here +</I>>>><i> (<A HREF="https://www.dlitz.net/software/pycrypto/api/current/">https://www.dlitz.net/software/pycrypto/api/current/</A>), "It is optional and +</I>>>><i> when not present it will be given a default value of all zeroes." +</I>>>><i> +</I>>>><i> Looking at the code that throws the exception +</I>>>><i> (<A HREF="https://github.com/dlitz/pycrypto/blob/master/src/block_template.c,">https://github.com/dlitz/pycrypto/blob/master/src/block_template.c,</A> line +</I>>>><i> 163), it doesn't allow for doing what the docs suggest it will. +</I>>>><i> +</I>>>><i> I'm not sure whether I've either misunderstood something or which of the +</I>>>><i> two is wrong, but I thought I'd at least flag it for discussion... +</I>>>><i> +</I>>>><i> +</I>>>><i> Hugh +</I>>>><i> +</I>>>><i> D I S C L A I M E R : This email and any files transmitted with it are +</I>>>><i> intended solely for the intended addressee, and may contain confidential +</I>>>><i> information or material protected by law, copyright or other legislation. +</I>>>><i> If you have received this message in error, please return it to the sender +</I>>>><i> or notify the sender by calling +44 (0)20 3167 3860, and immediately and +</I>>>><i> permanently delete it. You should not copy it or use it for any purpose, nor +</I>>>><i> disclose its contents to any other person. Only the intended recipient may +</I>>>><i> place any reliance upon it. Nvizible Limited accepts no responsibility or +</I>>>><i> liability for emails sent by its employees or personnel which are not sent +</I>>>><i> in the course of its business or that of its clients. +</I>>>><i> +</I>>>><i> Nvizible Limited, 8/9 Carlisle Street, London W1D 3BP . Registered in +</I>>>><i> England & Wales with Company Number: 6900121 +</I>>>><i> +</I>>>><i> _______________________________________________ +</I>>>><i> pycrypto mailing list +</I>>>><i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A> +</I>>>><i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</A> +</I>>>><i> +</I>>><i> +</I>>><i> +</I>>><i> _______________________________________________ +</I>>><i> pycrypto mailing list +</I>>><i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A> +</I>>><i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</A> +</I>>><i> +</I>><i> +</I>><i> +</I>><i> D I S C L A I M E R : This email and any files transmitted with it are +</I>><i> intended solely for the intended addressee, and may contain confidential +</I>><i> information or material protected by law, copyright or other legislation. +</I>><i> If you have received this message in error, please return it to the sender +</I>><i> or notify the sender by calling +44 (0)20 3167 3860, and immediately and +</I>><i> permanently delete it. You should not copy it or use it for any purpose, nor +</I>><i> disclose its contents to any other person. Only the intended recipient may +</I>><i> place any reliance upon it. Nvizible Limited accepts no responsibility or +</I>><i> liability for emails sent by its employees or personnel which are not sent +</I>><i> in the course of its business or that of its clients. +</I>><i> +</I>><i> Nvizible Limited, 8/9 Carlisle Street, London W1D 3BP . Registered in +</I>><i> England & Wales with Company Number: 6900121 +</I>><i> +</I>><i> _______________________________________________ +</I>><i> pycrypto mailing list +</I>><i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A> +</I>><i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</A> +</I>><i> +</I> + + +-- +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="000753.html">[pycrypto] Docs/code mis-match - not specifying IV fails +</A></li> + <LI>Next message: <A HREF="000755.html">[pycrypto] windows + linux line endings issue +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#754">[ date ]</a> + <a href="thread.html#754">[ thread ]</a> + <a href="subject.html#754">[ subject ]</a> + <a href="author.html#754">[ 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> |