diff options
Diffstat (limited to 'pipermail/pycrypto/2014q4/000828.html')
-rw-r--r-- | pipermail/pycrypto/2014q4/000828.html | 153 |
1 files changed, 153 insertions, 0 deletions
diff --git a/pipermail/pycrypto/2014q4/000828.html b/pipermail/pycrypto/2014q4/000828.html new file mode 100644 index 0000000..45ad667 --- /dev/null +++ b/pipermail/pycrypto/2014q4/000828.html @@ -0,0 +1,153 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> + <HEAD> + <TITLE> [pycrypto] Bug in PyCrypto 2.6.1 + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:pycrypto%40lists.dlitz.net?Subject=Re%3A%20%5Bpycrypto%5D%20Bug%20in%20PyCrypto%202.6.1&In-Reply-To=%3C548AE673.4020802%40luisgf.es%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="000827.html"> + <LINK REL="Next" HREF="000830.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[pycrypto] Bug in PyCrypto 2.6.1</H1> + <B>Luis González Fernández</B> + <A HREF="mailto:pycrypto%40lists.dlitz.net?Subject=Re%3A%20%5Bpycrypto%5D%20Bug%20in%20PyCrypto%202.6.1&In-Reply-To=%3C548AE673.4020802%40luisgf.es%3E" + TITLE="[pycrypto] Bug in PyCrypto 2.6.1">luisgf at luisgf.es + </A><BR> + <I>Fri Dec 12 04:58:27 PST 2014</I> + <P><UL> + <LI>Previous message: <A HREF="000827.html">[pycrypto] Bug in PyCrypto 2.6.1 +</A></li> + <LI>Next message: <A HREF="000830.html">[pycrypto] Bug in PyCrypto 2.6.1 +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#828">[ date ]</a> + <a href="thread.html#828">[ thread ]</a> + <a href="subject.html#828">[ subject ]</a> + <a href="author.html#828">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>Hi All: + +Any news about this? + + +On 01/12/14 18:48, Lorenz Quack wrote: +><i> On 01/12/14 17:23, Mirko Dziadzka wrote: +</I>>><i> Oh, I totally agree. Either the name or the implementation has a +</I>>><i> problem. +</I>><i> +</I>><i> +1 +</I>><i> +</I>>><i> +</I>>><i> I was just pointing out that the behavior is consistent with the +</I>>><i> documentation in +</I>>><i> <A HREF="https://www.dlitz.net/software/pycrypto/api/current/Crypto.PublicKey.RSA._RSAobj-class.html#size">https://www.dlitz.net/software/pycrypto/api/current/Crypto.PublicKey.RSA._RSAobj-class.html#size</A> +</I>><i> +</I>><i> I disagree. As I showed in the code example and you pointed out in +</I>><i> your previous post there are *some* values that the key can handle +</I>><i> with more bits than reported by size(). +</I>><i> So, size() is *not* the "maximum number of bits that can be handled by +</I>><i> this key". +</I>><i> It is the maximum number of bits that is guaranteed to work for all +</I>><i> values. +</I>><i> +</I>><i> Lorenz +</I>><i> +</I>>><i> +</I>>><i> Mirko +</I>>><i> +</I>>><i> +</I>>><i> On 01.12.2014, at 17:31, Paul Koning <<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">paul_koning at dell.com</A>> wrote: +</I>>><i> +</I>>>><i> To me, key_size means the size of the key. It doesn’t mean the +</I>>>><i> largest value you can encrypt. If that is what is intended, or if +</I>>>><i> it has to stay that way for historical reasons, fine, but it needs +</I>>>><i> to be very clearly pointed out in the documentation because it is +</I>>>><i> unexpected and counterintuitive. +</I>>>><i> +</I>>>><i> paul +</I>>>><i> +</I>>>>><i> On Dec 1, 2014, at 11:13 AM, Mirko Dziadzka +</I>>>>><i> <<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">mirko.dziadzka at gmail.com</A>> wrote: +</I>>>>><i> +</I>>>>><i> HI +</I>>>>><i> +</I>>>>><i> Some thoughts about this … +</I>>>>><i> +</I>>>>>><i> _RSA.RSAobj.size.__doc__ says: Return the maximum number of bits +</I>>>>>><i> that can be handled by this key +</I>>>>><i> +</I>>>>><i> An RSA key can only encrypt data smaller than this key. So if we +</I>>>>><i> have an 2048 bit RSA key, it can encrypt some 2048 bit values, but +</I>>>>><i> not all. So 2047 should be the safe value here. +</I>>>>><i> +</I>>>>><i> IMHO this -1 is correct here. +</I>>>>><i> +</I>>>>><i> Mirko +</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> 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> 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> +-- + +-- +Luis González Fernández +<A HREF="https://www.luisgf.es">https://www.luisgf.es</A> +PGP ID: C918B80F (DD6F BFC1 FC14 4C81 34F8 EA1E 6BCB C27F C918 B80F) +Twitter: @luisgf_2001 / Jabber: <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">luisgf at mijabber.es</A> + + +-------------- next part -------------- +A non-text attachment was scrubbed... +Name: signature.asc +Type: application/pgp-signature +Size: 819 bytes +Desc: OpenPGP digital signature +URL: <<A HREF="http://lists.dlitz.net/pipermail/pycrypto/attachments/20141212/f18743c3/attachment.sig">http://lists.dlitz.net/pipermail/pycrypto/attachments/20141212/f18743c3/attachment.sig</A>> +</PRE> + + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="000827.html">[pycrypto] Bug in PyCrypto 2.6.1 +</A></li> + <LI>Next message: <A HREF="000830.html">[pycrypto] Bug in PyCrypto 2.6.1 +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#828">[ date ]</a> + <a href="thread.html#828">[ thread ]</a> + <a href="subject.html#828">[ subject ]</a> + <a href="author.html#828">[ 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> |