diff options
Diffstat (limited to 'pipermail/pycrypto/2015/000858.html')
-rw-r--r-- | pipermail/pycrypto/2015/000858.html | 123 |
1 files changed, 123 insertions, 0 deletions
diff --git a/pipermail/pycrypto/2015/000858.html b/pipermail/pycrypto/2015/000858.html new file mode 100644 index 0000000..5d33c15 --- /dev/null +++ b/pipermail/pycrypto/2015/000858.html @@ -0,0 +1,123 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> + <HEAD> + <TITLE> [pycrypto] RIPEMD-160 self-test failure + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:pycrypto%40lists.dlitz.net?Subject=Re%3A%20%5Bpycrypto%5D%20RIPEMD-160%20self-test%20failure&In-Reply-To=%3CCAJXyS%3DhP6aUBELQRe_-vi9dHtFgNU2vRFtpvLyJkAjYjT9uOBQ%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="000857.html"> + <LINK REL="Next" HREF="000859.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[pycrypto] RIPEMD-160 self-test failure</H1> + <B>Jeffery To</B> + <A HREF="mailto:pycrypto%40lists.dlitz.net?Subject=Re%3A%20%5Bpycrypto%5D%20RIPEMD-160%20self-test%20failure&In-Reply-To=%3CCAJXyS%3DhP6aUBELQRe_-vi9dHtFgNU2vRFtpvLyJkAjYjT9uOBQ%40mail.gmail.com%3E" + TITLE="[pycrypto] RIPEMD-160 self-test failure">jeffery.to at gmail.com + </A><BR> + <I>Fri Oct 30 09:27:53 PDT 2015</I> + <P><UL> + <LI>Previous message: <A HREF="000857.html">[pycrypto] RIPEMD-160 self-test failure +</A></li> + <LI>Next message: <A HREF="000859.html">[pycrypto] 2.6.1 and 2.7a1 fail to install on Python 3.5/Windows. Need a new 2.7a2 tag +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#858">[ date ]</a> + <a href="thread.html#858">[ thread ]</a> + <a href="subject.html#858">[ subject ]</a> + <a href="author.html#858">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>Thanks for your help - endianness was the issue. The tests all pass after +patching setup.py. + +Thanks again! +Jeff + +On Thu, Oct 29, 2015 at 9:50 PM, Legrandin <<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">helderijs at gmail.com</A>> wrote: + +><i> Hi, +</I>><i> +</I>><i> You most probably get PyCrypto compiled in little-endian mode but your +</I>><i> router is big endian. There is no clean way to solve this other than +</I>><i> manually forcing 'PCT_BIG_ENDIAN' to be 1 in setup.py. +</I>><i> +</I>><i> L. +</I>><i> +</I>><i> 2015-10-28 12:03 GMT+01:00 Jeffery To <<A HREF="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto">jeffery.to at gmail.com</A>>: +</I>><i> > Hi, +</I>><i> > +</I>><i> > I'm trying to cross-compile PyCrypto 2.6.1 for OpenWrt (Chaos Calmer +</I>><i> 15.05, +</I>><i> > targeting ar71xx). The library compiled without any fatal errors and I'm +</I>><i> > able to package and install on my router (TP-Link TL-MR3020). +</I>><i> > +</I>><i> > To be sure it's working correctly, I transferred setup.py to my router +</I>><i> and +</I>><i> > ran the self-test. All the tests passed except for the 9 RIPEMD-160 hash +</I>><i> > tests. The library function(s) seem to return normally, but the returned +</I>><i> > hash is incorrect, e.g.: +</I>><i> > +</I>><i> > FAIL: runTest (Crypto.SelfTest.Hash.common.HashSelfTest) +</I>><i> > RIPEMD #1: '' (empty string) +</I>><i> > ---------------------------------------------------------------------- +</I>><i> > Traceback (most recent call last): +</I>><i> > File "/usr/lib/python2.7/site-packages/Crypto/SelfTest/Hash/common.py", +</I>><i> > line 88, in runTest +</I>><i> > self.assertEqual(self.expected, out1) # h = .new(); h.update(data); +</I>><i> > h.digest() +</I>><i> > AssertionError: '9c1185a5c5e9fc54612808977ee8f548b2258d31' != +</I>><i> > '7c7c0f550ddb9e5ebf157869ea147e65cb89bb0e' +</I>><i> > +</I>><i> > I'm unsure how to proceed at this point; my searches on Google haven't +</I>><i> > returned any relevant results. What area/library/etc should I +</I>><i> > investigate/debug to fix this? Any help would be appreciated. +</I>><i> > +</I>><i> > Thanks! +</I>><i> > Jeff +</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>><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>><i> +</I>-------------- next part -------------- +An HTML attachment was scrubbed... +URL: <<A HREF="http://lists.dlitz.net/pipermail/pycrypto/attachments/20151031/158352f0/attachment.html">http://lists.dlitz.net/pipermail/pycrypto/attachments/20151031/158352f0/attachment.html</A>> +</PRE> + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="000857.html">[pycrypto] RIPEMD-160 self-test failure +</A></li> + <LI>Next message: <A HREF="000859.html">[pycrypto] 2.6.1 and 2.7a1 fail to install on Python 3.5/Windows. Need a new 2.7a2 tag +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#858">[ date ]</a> + <a href="thread.html#858">[ thread ]</a> + <a href="subject.html#858">[ subject ]</a> + <a href="author.html#858">[ 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> |