summaryrefslogtreecommitdiff
path: root/pipermail/pycrypto/2014q4/000826.html
blob: 5bc03f49d860a0c6680ab7434b93f05c9301cb83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!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=%3CE615861D-FC8C-49FD-BF43-AD72155897F4%40gmail.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="000825.html">
   <LINK REL="Next"  HREF="000827.html">
 </HEAD>
 <BODY BGCOLOR="#ffffff">
   <H1>[pycrypto] Bug in PyCrypto 2.6.1</H1>
    <B>Mirko Dziadzka</B> 
    <A HREF="mailto:pycrypto%40lists.dlitz.net?Subject=Re%3A%20%5Bpycrypto%5D%20Bug%20in%20PyCrypto%202.6.1&In-Reply-To=%3CE615861D-FC8C-49FD-BF43-AD72155897F4%40gmail.com%3E"
       TITLE="[pycrypto] Bug in PyCrypto 2.6.1">mirko.dziadzka at gmail.com
       </A><BR>
    <I>Mon Dec  1 09:23:05 PST 2014</I>
    <P><UL>
        <LI>Previous message: <A HREF="000825.html">[pycrypto] Bug in PyCrypto 2.6.1
</A></li>
        <LI>Next message: <A HREF="000827.html">[pycrypto] Bug in PyCrypto 2.6.1
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#826">[ date ]</a>
              <a href="thread.html#826">[ thread ]</a>
              <a href="subject.html#826">[ subject ]</a>
              <a href="author.html#826">[ author ]</a>
         </LI>
       </UL>
    <HR>  
<!--beginarticle-->
<PRE>Oh, I totally agree. Either the name or the implementation has a problem.

I was just pointing out that the behavior is consistent with the documentation in <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>

    Mirko


On 01.12.2014, at 17:31, Paul Koning &lt;<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">paul_koning at dell.com</A>&gt; wrote:

&gt;<i> To me, key_size means the size of the key.  It doesn&#8217;t mean the largest value you can encrypt.  If that is what is intended, or if it has to stay that way for historical reasons, fine, but it needs to be very clearly pointed out in the documentation because it is unexpected and counterintuitive.
</I>&gt;<i> 
</I>&gt;<i> 	paul
</I>&gt;<i> 
</I>&gt;&gt;<i> On Dec 1, 2014, at 11:13 AM, Mirko Dziadzka &lt;<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">mirko.dziadzka at gmail.com</A>&gt; wrote:
</I>&gt;&gt;<i> 
</I>&gt;&gt;<i> HI
</I>&gt;&gt;<i> 
</I>&gt;&gt;<i> Some thoughts about this &#8230;
</I>&gt;&gt;<i> 
</I>&gt;&gt;&gt;<i> _RSA.RSAobj.size.__doc__ says: Return the maximum number of bits that can be handled by this key
</I>&gt;&gt;<i> 
</I>&gt;&gt;<i> An RSA key can only encrypt data smaller than this key. So if we have an 2048 bit RSA key, it can encrypt some 2048 bit values, but not all. So 2047 should be the safe value here.
</I>&gt;&gt;<i> 
</I>&gt;&gt;<i> IMHO this -1 is correct here.
</I>&gt;&gt;<i> 
</I>&gt;&gt;<i> Mirko
</I>&gt;<i> 
</I>&gt;<i> _______________________________________________
</I>&gt;<i> pycrypto mailing list
</I>&gt;<i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A>
</I>&gt;<i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</A>
</I>
</PRE>


<!--endarticle-->
    <HR>
    <P><UL>
        <!--threads-->
	<LI>Previous message: <A HREF="000825.html">[pycrypto] Bug in PyCrypto 2.6.1
</A></li>
	<LI>Next message: <A HREF="000827.html">[pycrypto] Bug in PyCrypto 2.6.1
</A></li>
         <LI> <B>Messages sorted by:</B> 
              <a href="date.html#826">[ date ]</a>
              <a href="thread.html#826">[ thread ]</a>
              <a href="subject.html#826">[ subject ]</a>
              <a href="author.html#826">[ 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>