summaryrefslogtreecommitdiff
path: root/pipermail/pycrypto/2016/000886.html
diff options
context:
space:
mode:
Diffstat (limited to 'pipermail/pycrypto/2016/000886.html')
-rw-r--r--pipermail/pycrypto/2016/000886.html271
1 files changed, 271 insertions, 0 deletions
diff --git a/pipermail/pycrypto/2016/000886.html b/pipermail/pycrypto/2016/000886.html
new file mode 100644
index 0000000..0f8f88b
--- /dev/null
+++ b/pipermail/pycrypto/2016/000886.html
@@ -0,0 +1,271 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [pycrypto] pycryptodome
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:pycrypto%40lists.dlitz.net?Subject=Re%3A%20%5Bpycrypto%5D%20pycryptodome&In-Reply-To=%3CCAEncD4dBpwc3Tn-9WcS8qfhS5nTD7xUSD3eVwQth1zZ%3DAYv43Q%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=utf-8">
+ <LINK REL="Previous" HREF="000885.html">
+ <LINK REL="Next" HREF="000887.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[pycrypto] pycryptodome</H1>
+ <B>Dave Pawson</B>
+ <A HREF="mailto:pycrypto%40lists.dlitz.net?Subject=Re%3A%20%5Bpycrypto%5D%20pycryptodome&In-Reply-To=%3CCAEncD4dBpwc3Tn-9WcS8qfhS5nTD7xUSD3eVwQth1zZ%3DAYv43Q%40mail.gmail.com%3E"
+ TITLE="[pycrypto] pycryptodome">dave.pawson at gmail.com
+ </A><BR>
+ <I>Thu Dec 8 16:51:01 UTC 2016</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="000885.html">[pycrypto] pycryptodome
+</A></li>
+ <LI>Next message: <A HREF="000887.html">[pycrypto] pycryptodome
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#886">[ date ]</a>
+ <a href="thread.html#886">[ thread ]</a>
+ <a href="subject.html#886">[ subject ]</a>
+ <a href="author.html#886">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>Subtle. Seems access to pip 3 is via
+
+# python3 -m pip list | grep crypto
+DEPRECATION: The default format will switch to columns in the future.
+You can use --format=(legacy|columns) (or define a
+format=(legacy|columns) in your pip.conf under the [list] section) to
+disable this warning.
+pycrypto (2.6.1)
+
+
+So 3 seems to have pycrypto 2.6.1... maybe.
+
+regards
+
+
+
+On 8 December 2016 at 16:47, Dave Pawson &lt;<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">dave.pawson at gmail.com</A>&gt; wrote:
+&gt;<i> On 8 December 2016 at 12:46, Martin Falatic &lt;<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">martin at falatic.com</A>&gt; wrote:
+</I>&gt;&gt;<i> When you run `pip2.7 list` (pretty sure that's what you need for python2,
+</I>&gt;&gt;<i> or `pip list` may be the defacto python2 pip on Fedora) and `pip3.5 list`
+</I>&gt;&gt;<i> (for python3), what are you seeing in the area of &quot;pycrypto*&quot; for each of
+</I>&gt;&gt;<i> these? I'm hopeful that once you have the proper libs installed for
+</I>&gt;&gt;<i> python3 via pip3.5 things should work better.
+</I>&gt;<i>
+</I>&gt;<i> pip2 list | grep crypt
+</I>&gt;<i> pycryptodomex (3.4.3)
+</I>&gt;<i>
+</I>&gt;<i>
+</I>&gt;<i> No such thing as pip3.x
+</I>&gt;<i>
+</I>&gt;<i> dnf install python3-pip
+</I>&gt;<i> Last metadata expiration check: 0:00:48 ago on Thu Dec 8 16:40:04 2016.
+</I>&gt;<i> Package python3-pip-8.1.2-2.fc25.noarch is already installed, skipping.
+</I>&gt;<i> Dependencies resolved.
+</I>&gt;<i> Nothing to do.
+</I>&gt;<i>
+</I>&gt;<i> dnf info python3-pip
+</I>&gt;<i> Last metadata expiration check: 0:03:38 ago on Thu Dec 8 16:40:04 2016.
+</I>&gt;<i> Installed Packages
+</I>&gt;<i> Name : python3-pip
+</I>&gt;<i> Arch : noarch
+</I>&gt;<i> Epoch : 0
+</I>&gt;<i> Version : 8.1.2
+</I>&gt;<i> Release : 2.fc25
+</I>&gt;<i> Size : 8.6 M
+</I>&gt;<i> Repo : @System
+</I>&gt;<i> From repo : fedora
+</I>&gt;<i> Summary : A tool for installing and managing Python3 packages
+</I>&gt;<i> URL : <A HREF="http://www.pip-installer.org">http://www.pip-installer.org</A>
+</I>&gt;<i> License : MIT
+</I>&gt;<i> Description : Pip is a replacement for `easy_install
+</I>&gt;<i> : &lt;<A HREF="http://peak.telecommunity.com/DevCenter/EasyInstall">http://peak.telecommunity.com/DevCenter/EasyInstall</A>&gt;`_.
+</I>&gt;<i> It uses mostly the
+</I>&gt;<i> : same techniques for finding packages, so packages that were made
+</I>&gt;<i> : easy_installable should be pip-installable as well.
+</I>&gt;<i>
+</I>&gt;<i>
+</I>&gt;<i> Looks like python3-pip is pip?
+</I>&gt;<i>
+</I>&gt;<i> Yet
+</I>&gt;<i>
+</I>&gt;<i> # pip -V
+</I>&gt;<i> pip 9.0.1 from /usr/lib/python2.7/site-packages (python 2.7)
+</I>&gt;<i>
+</I>&gt;<i>
+</I>&gt;<i> So (possibly?) there is a pip looking at python3.
+</I>&gt;<i>
+</I>&gt;<i>
+</I>&gt;<i>
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> Normally you'd use the pip variant for python3 (e.g., pip3.5) to install
+</I>&gt;&gt;<i> packages for python3. Can you give that a look and retry?
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> Note that I'm not an expert on pycryptodome - my understanding is that
+</I>&gt;&gt;<i> pycryptodome can be used instead of pycrypto, and it seems to work fine on
+</I>&gt;&gt;<i> Windows (and I don't have reason to think it'd be any different on Linux).
+</I>&gt;&gt;<i> I have no experience with pycryptodomex currently. I have pycryptodome
+</I>&gt;&gt;<i> installed on python 2.7 and 3.5 on my Windows box (and pycrypto NOT
+</I>&gt;&gt;<i> installed on either) and the test you described ran fine for both.
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> That said, if this continues, what version of Fedora are you running? I
+</I>&gt;&gt;<i> can stand up a VM and see for myself.
+</I>&gt;<i>
+</I>&gt;<i> Latest - Fedora 25.
+</I>&gt;<i>
+</I>&gt;<i> Is there a separate mailing list for pycryptodome?
+</I>&gt;<i> Perhaps I should ask there?
+</I>&gt;<i>
+</I>&gt;<i> Tks. Dave
+</I>&gt;<i>
+</I>&gt;<i>
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> - M
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> On Thu, December 8, 2016 01:44, Dave Pawson wrote:
+</I>&gt;&gt;&gt;<i> Additional information.
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> pip install pycryptodomex Requirement already satisfied: pycryptodomex in
+</I>&gt;&gt;&gt;<i> /usr/lib64/python2.7/site-packages
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> Yet...
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> File &quot;/usr/lib64/python3.5/site-packages/Crypto/Cipher/blockalgo.py&quot;,
+</I>&gt;&gt;&gt;<i> line 141, in __init__ self._cipher = factory.new(key, *args, **kwargs)
+</I>&gt;&gt;&gt;<i> ValueError: IV must be 16 bytes long
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> So (since I'm using python3) it's picking up the Crypto library from
+</I>&gt;&gt;&gt;<i> python 3.5 and pip is installing it in python 2.7
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> <A HREF="https://pycryptodome.readthedocs.io/en/latest/src/installation.html#windo">https://pycryptodome.readthedocs.io/en/latest/src/installation.html#windo</A>
+</I>&gt;&gt;&gt;<i> ws-from-sources-python-3-5-and-newer
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> (aside. Yum no longer used in Fedora, just replace with dnf)
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> python3 -m Cryptodome.Selftest /usr/bin/python3: Error while finding spec
+</I>&gt;&gt;&gt;<i> for 'Cryptodome.Selftest' (ImportError: No module named 'Cryptodome')
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> regards Dave
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> On 8 December 2016 at 09:20, Dave Pawson &lt;<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">dave.pawson at gmail.com</A>&gt; wrote:
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;<i> <A HREF="https://pycryptodome.readthedocs.io/en/latest/src/installation.html">https://pycryptodome.readthedocs.io/en/latest/src/installation.html</A>
+</I>&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;<i> python3 -m Cryptodome.SelfTest /usr/bin/python3: Error while finding
+</I>&gt;&gt;&gt;&gt;<i> spec for 'Cryptodome.SelfTest' (ImportError: No module named
+</I>&gt;&gt;&gt;&gt;<i> 'Cryptodome')
+</I>&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;<i> <A HREF="https://pycryptodome.readthedocs.io/en/latest/src/examples.html">https://pycryptodome.readthedocs.io/en/latest/src/examples.html</A>
+</I>&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;<i> example
+</I>&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;<i> python3 exp1.py Traceback (most recent call last):
+</I>&gt;&gt;&gt;&gt;<i> File &quot;exp1.py&quot;, line 12, in &lt;module&gt;
+</I>&gt;&gt;&gt;&gt;<i> cipher = AES.new(key, AES.MODE_EAX) AttributeError: module
+</I>&gt;&gt;&gt;&gt;<i> 'Crypto.Cipher.AES' has no attribute 'MODE_EAX'
+</I>&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;<i> which seems to be true
+</I>&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;<i> dir(AES) ['AESCipher', 'MODE_CBC', 'MODE_CFB', 'MODE_CTR', 'MODE_ECB',
+</I>&gt;&gt;&gt;&gt;<i> 'MODE_OFB', 'MODE_OPENPGP', 'MODE_PGP', '_AES', '__builtins__',
+</I>&gt;&gt;&gt;&gt;<i> '__cached__', '__doc__', '__file__', '__loader__', '__name__',
+</I>&gt;&gt;&gt;&gt;<i> '__package__', '__revision__', '__spec__', 'block_size', 'blockalgo',
+</I>&gt;&gt;&gt;&gt;<i> 'key_size', 'new']
+</I>&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;<i> Bugs in docs? Library?
+</I>&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;<i> Suggestions please.
+</I>&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;<i> regards
+</I>&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;&gt;<i> --
+</I>&gt;&gt;&gt;&gt;<i> Dave Pawson
+</I>&gt;&gt;&gt;&gt;<i> XSLT XSL-FO FAQ.
+</I>&gt;&gt;&gt;&gt;<i> Docbook FAQ.
+</I>&gt;&gt;&gt;&gt;<i> <A HREF="http://www.dpawson.co.uk">http://www.dpawson.co.uk</A>
+</I>&gt;&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i> --
+</I>&gt;&gt;&gt;<i> Dave Pawson
+</I>&gt;&gt;&gt;<i> XSLT XSL-FO FAQ.
+</I>&gt;&gt;&gt;<i> Docbook FAQ.
+</I>&gt;&gt;&gt;<i> <A HREF="http://www.dpawson.co.uk">http://www.dpawson.co.uk</A>
+</I>&gt;&gt;&gt;<i> _______________________________________________
+</I>&gt;&gt;&gt;<i> pycrypto mailing list <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A>
+</I>&gt;&gt;&gt;<i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</A>
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;&gt;<i>
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i>
+</I>&gt;&gt;<i> _______________________________________________
+</I>&gt;&gt;<i> pycrypto mailing list
+</I>&gt;&gt;<i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">pycrypto at lists.dlitz.net</A>
+</I>&gt;&gt;<i> <A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</A>
+</I>&gt;<i>
+</I>&gt;<i>
+</I>&gt;<i>
+</I>&gt;<i> --
+</I>&gt;<i> Dave Pawson
+</I>&gt;<i> XSLT XSL-FO FAQ.
+</I>&gt;<i> Docbook FAQ.
+</I>&gt;<i> <A HREF="http://www.dpawson.co.uk">http://www.dpawson.co.uk</A>
+</I>
+
+
+--
+Dave Pawson
+XSLT XSL-FO FAQ.
+Docbook FAQ.
+<A HREF="http://www.dpawson.co.uk">http://www.dpawson.co.uk</A>
+</PRE>
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="000885.html">[pycrypto] pycryptodome
+</A></li>
+ <LI>Next message: <A HREF="000887.html">[pycrypto] pycryptodome
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#886">[ date ]</a>
+ <a href="thread.html#886">[ thread ]</a>
+ <a href="subject.html#886">[ subject ]</a>
+ <a href="author.html#886">[ 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>