blob: 6e10e0c5d727eea7ec1d8d7364cce346e407f603 (
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
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE> [pycrypto] Documentation error in "https://www.dlitz.net/software/pycrypto/api/current/"
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:pycrypto%40lists.dlitz.net?Subject=Re%3A%20%5Bpycrypto%5D%20Documentation%20error%20in%0A%09%22https%3A//www.dlitz.net/software/pycrypto/api/current/%22&In-Reply-To=%3CCAGfh73Yy0h3m3u__SirErU%2BXL0xxC4EuQbu6f9mEkKZbiYEBeA%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="000848.html">
<LINK REL="Next" HREF="000850.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[pycrypto] Documentation error in "https://www.dlitz.net/software/pycrypto/api/current/"</H1>
<B>giomismo</B>
<A HREF="mailto:pycrypto%40lists.dlitz.net?Subject=Re%3A%20%5Bpycrypto%5D%20Documentation%20error%20in%0A%09%22https%3A//www.dlitz.net/software/pycrypto/api/current/%22&In-Reply-To=%3CCAGfh73Yy0h3m3u__SirErU%2BXL0xxC4EuQbu6f9mEkKZbiYEBeA%40mail.gmail.com%3E"
TITLE="[pycrypto] Documentation error in "https://www.dlitz.net/software/pycrypto/api/current/"">giovanniteratani+pycrypto at gmail.com
</A><BR>
<I>Tue Sep 15 03:17:18 PDT 2015</I>
<P><UL>
<LI>Previous message: <A HREF="000848.html">[pycrypto] [PATCH] PEM: Decode AES-192-CBC and AES-256-CBC keys
</A></li>
<LI>Next message: <A HREF="000850.html">[pycrypto] Availability of MODE_GCM
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#849">[ date ]</a>
<a href="thread.html#849">[ thread ]</a>
<a href="subject.html#849">[ subject ]</a>
<a href="author.html#849">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE> Hi all,
I have found a mistake in the api documentation, but as I am new to the
list I don't know if this has been noticed yet.
The error resides in "
<A HREF="https://www.dlitz.net/software/pycrypto/api/current/Crypto.PublicKey.RSA-module.html">https://www.dlitz.net/software/pycrypto/api/current/Crypto.PublicKey.RSA-module.html</A>"
at the following code (at the beginning of the web page):
>>><i> from Crypto.PublicKey import RSA>>>>>> key = RSA.generate(2048)>>> f = open('mykey.pem','w')>>> f.write(*RSA.exportKey*('PEM'))>>> f.close()...>>> f = open('mykey.pem','r')>>> key = RSA.importKey(f.read())
</I>
The write functions uses "RSA.exportKey" where it should be "*key*.exportKey".
If this is not the right place to post this issue, please redirect this
message to the one who should care about it, or tell me who is and I will
contact with him/her.
Best regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <<A HREF="http://lists.dlitz.net/pipermail/pycrypto/attachments/20150915/6fdb5629/attachment.html">http://lists.dlitz.net/pipermail/pycrypto/attachments/20150915/6fdb5629/attachment.html</A>>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="000848.html">[pycrypto] [PATCH] PEM: Decode AES-192-CBC and AES-256-CBC keys
</A></li>
<LI>Next message: <A HREF="000850.html">[pycrypto] Availability of MODE_GCM
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#849">[ date ]</a>
<a href="thread.html#849">[ thread ]</a>
<a href="subject.html#849">[ subject ]</a>
<a href="author.html#849">[ 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>
|