<div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>I'm trying to cross-compile PyCrypto 2.6.1 for OpenWrt (Chaos Calmer 15.05, targeting ar71xx). The library compiled without any fatal errors and I'm able to package and install on my router (TP-Link TL-MR3020).<br><br></div>To be sure it's working correctly, I transferred setup.py to my router and ran the self-test. All the tests passed except for the 9 RIPEMD-160 hash tests. The library function(s) seem to return normally, but the returned hash is incorrect, e.g.:<br><br>FAIL: runTest (Crypto.SelfTest.Hash.common.HashSelfTest)<br>RIPEMD #1: '' (empty string)<br>----------------------------------------------------------------------<br>Traceback (most recent call last):<br>  File "/usr/lib/python2.7/site-packages/Crypto/SelfTest/Hash/common.py", line 88, in runTest<br>    self.assertEqual(self.expected, out1)   # h = .new(); h.update(data); h.digest()<br>AssertionError: '9c1185a5c5e9fc54612808977ee8f548b2258d31' != '7c7c0f550ddb9e5ebf157869ea147e65cb89bb0e'<br><br></div>I'm unsure how to proceed at this point; my searches on Google haven't returned any relevant results. What area/library/etc should I investigate/debug to fix this? Any help would be appreciated.<br><br></div>Thanks!<br></div>Jeff<br><br></div>