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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE> [pycrypto] Remove DSA because 1024bit is not safe
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:pycrypto%40lists.dlitz.net?Subject=Re%3A%20%5Bpycrypto%5D%20Remove%20DSA%20because%201024bit%20is%20not%20safe&In-Reply-To=%3C5106B53E.7030308%40dlitz.net%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="000649.html">
<LINK REL="Next" HREF="000652.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[pycrypto] Remove DSA because 1024bit is not safe</H1>
<B>Dwayne Litzenberger</B>
<A HREF="mailto:pycrypto%40lists.dlitz.net?Subject=Re%3A%20%5Bpycrypto%5D%20Remove%20DSA%20because%201024bit%20is%20not%20safe&In-Reply-To=%3C5106B53E.7030308%40dlitz.net%3E"
TITLE="[pycrypto] Remove DSA because 1024bit is not safe">dlitz at dlitz.net
</A><BR>
<I>Mon Jan 28 09:28:30 PST 2013</I>
<P><UL>
<LI>Previous message: <A HREF="000649.html">[pycrypto] Remove DSA because 1024bit is not safe
</A></li>
<LI>Next message: <A HREF="000652.html">[pycrypto] Hash: Remove "oid" attributes; add "name" attribute
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#650">[ date ]</a>
<a href="thread.html#650">[ thread ]</a>
<a href="subject.html#650">[ subject ]</a>
<a href="author.html#650">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>That said, we should probably support the newer spec:
>>> from Crypto.PublicKey import DSA
>>> DSA.generate(3072)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/Crypto/PublicKey/DSA.py",
line 337, in generate
raise ValueError("Number of bits in p must be a multiple of 64
between 512 and 1024, not %d bits" % (bits,))
ValueError: Number of bits in p must be a multiple of 64 between 512
and 1024, not 3072 bits
On 01/28/2013 02:21 AM, Legrandin wrote:
><i> I think you are looking at an older FIPS 186 spec.
</I>><i> The current one allows 3072 bits for DSA.
</I>><i>
</I>><i> Besides that, DSA is based on a different hard problem than RSA.
</I>><i> A 1024 bit DSA signature is somewhat more secure than a 1024 bit RSA
</I>><i> signature.
</I>><i>
</I>><i> 2012/12/12 . <<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">dcMhOYBdpZkH at web.de</A> <mailto:<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">dcMhOYBdpZkH at web.de</A>>>
</I>><i>
</I>><i> It is important to consider 1024bit DSA - NIST says this too - not
</I>><i> secure anymore, or do you want your messages to be readable within
</I>><i> your lifetime?.
</I>><i> Since DSA max. key size is 1024bit it's time to think
</I>><i> about removing it completely from pycrypto and use RSA or ECC
</I>><i> (with your
</I>><i> own curves, not NIST's untrustable ones).
</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> <mailto:<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> _______________________________________________
</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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <<A HREF="http://lists.dlitz.net/pipermail/pycrypto/attachments/20130128/fb41841c/attachment.html">http://lists.dlitz.net/pipermail/pycrypto/attachments/20130128/fb41841c/attachment.html</A>>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="000649.html">[pycrypto] Remove DSA because 1024bit is not safe
</A></li>
<LI>Next message: <A HREF="000652.html">[pycrypto] Hash: Remove "oid" attributes; add "name" attribute
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#650">[ date ]</a>
<a href="thread.html#650">[ thread ]</a>
<a href="subject.html#650">[ subject ]</a>
<a href="author.html#650">[ 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>
|