summaryrefslogtreecommitdiff
path: root/pipermail/pycrypto/2010q4/000283.html
diff options
context:
space:
mode:
Diffstat (limited to 'pipermail/pycrypto/2010q4/000283.html')
-rw-r--r--pipermail/pycrypto/2010q4/000283.html102
1 files changed, 102 insertions, 0 deletions
diff --git a/pipermail/pycrypto/2010q4/000283.html b/pipermail/pycrypto/2010q4/000283.html
new file mode 100644
index 0000000..3fddfca
--- /dev/null
+++ b/pipermail/pycrypto/2010q4/000283.html
@@ -0,0 +1,102 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [pycrypto] RSA importKey
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:pycrypto%40lists.dlitz.net?Subject=%5Bpycrypto%5D%20RSA%20importKey&In-Reply-To=AANLkTinn5Uzn7-R_-Ax5Jk0ar%3DcAz_vO%2BCZ3DG81pPY5%40mail.gmail.com">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="000282.html">
+ <LINK REL="Next" HREF="000284.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[pycrypto] RSA importKey</H1>
+ <B>Fran&#231;ois Santy</B>
+ <A HREF="mailto:pycrypto%40lists.dlitz.net?Subject=%5Bpycrypto%5D%20RSA%20importKey&In-Reply-To=AANLkTinn5Uzn7-R_-Ax5Jk0ar%3DcAz_vO%2BCZ3DG81pPY5%40mail.gmail.com"
+ TITLE="[pycrypto] RSA importKey">francoissanty at gmail.com
+ </A><BR>
+ <I>Fri Nov 12 07:32:45 CST 2010</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="000282.html">[pycrypto] RSA importKey
+</A></li>
+ <LI>Next message: <A HREF="000284.html">[pycrypto] RSA importKey
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#283">[ date ]</a>
+ <a href="thread.html#283">[ thread ]</a>
+ <a href="subject.html#283">[ subject ]</a>
+ <a href="author.html#283">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>I have another Question concernant PyCrypto's implementation of RSA: which
+encryption mode is it using?
+I had to use PyCrypto's implementation of DES recently, and I could easily
+choose between several modes (MODE_EBC, MODE_CBC,...), but unfortunatly, I
+can't find these modes in RSA.
+
+The same question applied for the Padding options. Can I choose between
+PKCS5Padding and PKCS1Padding ?
+
+Thanks !
+
+2010/11/12 Fran&#231;ois Santy &lt;<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">francoissanty at gmail.com</A>&gt;
+
+&gt;<i> Hi everybody !
+</I>&gt;<i>
+</I>&gt;<i> I'm currently working with pycrypto and I want to import public and private
+</I>&gt;<i> keys from DER files.
+</I>&gt;<i> I found a piece of code that shows how to proceed, but it isn't working
+</I>&gt;<i> anyway !
+</I>&gt;<i> Here is the code I'm using:
+</I>&gt;<i>
+</I>&gt;<i> f = file(&quot;./public_key.der&quot;)
+</I>&gt;<i> key = RSA.importKey(f.read())
+</I>&gt;<i>
+</I>&gt;<i> It tells me *'module' object has no attribute 'importKey'. *It's rather
+</I>&gt;<i> strange since the method appears explicitely in the file
+</I>&gt;<i> /lib/Crypto/PublicKey/RSA.py*.*
+</I>&gt;<i> *
+</I>&gt;<i> *
+</I>&gt;<i> What am I doing wrong ?
+</I>&gt;<i>
+</I>&gt;<i> Thanks.
+</I>&gt;<i>
+</I>&gt;<i> --
+</I>&gt;<i> Fran&#231;ois S.
+</I>&gt;<i>
+</I>
+
+
+--
+Fran&#231;ois S.
+-------------- next part --------------
+An HTML attachment was scrubbed...
+URL: <A HREF="http://lists.dlitz.net/pipermail/pycrypto/attachments/20101112/aeeeeae8/attachment.htm">http://lists.dlitz.net/pipermail/pycrypto/attachments/20101112/aeeeeae8/attachment.htm</A>
+</PRE>
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="000282.html">[pycrypto] RSA importKey
+</A></li>
+ <LI>Next message: <A HREF="000284.html">[pycrypto] RSA importKey
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#283">[ date ]</a>
+ <a href="thread.html#283">[ thread ]</a>
+ <a href="subject.html#283">[ subject ]</a>
+ <a href="author.html#283">[ 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>