Skip to content

Instantly share code, notes, and snippets.

@tycho
Created October 7, 2013 09:10
Show Gist options
  • Save tycho/6864870 to your computer and use it in GitHub Desktop.
Save tycho/6864870 to your computer and use it in GitHub Desktop.
PyCrypto under PyPy -- WIP
$ git describe
v2.6-112-gd813e41
$ git diff
diff --git a/src/_fastmath.c b/src/_fastmath.c
index a4160d9..baf31fe 100644
--- a/src/_fastmath.c
+++ b/src/_fastmath.c
@@ -60,7 +60,7 @@
#if ULONG_MAX==0xFFFFFFFFUL
/** LLP64, like 64-bit Windows **/
#define ULONG_BITS 32
-#elif ULONG_MAC==0xFFFFFFFFFFFFFFFFUL
+#elif ULONG_MAX==0xFFFFFFFFFFFFFFFFUL
/** ILP64 and LP64, like 64-bit Unix **/
#define ULONG_BITS 64
#else
$ pypy --version
Python 2.7.3 (480845e6b1dd219d0944e30f62b01da378437c6c, Aug 08 2013, 17:02:19)
[PyPy 2.1.0 with GCC 4.8.1 20130725 (prerelease)]
$ pypy setup.py test
running test
running build
running build_py
running build_ext
running build_configure
.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.FEEE.F.EEEE...........................................................................................................FFFFFFFF....FEEFFEFFFFEFEEFFEFFFFE.........FE.FFFFFFFFF.FFFFFFFFFF.....................FFFFFF.FFFFFF.FF..FFFFFFFFFF.FFFFF.............FFFFFF.....FF................SelfTest: You can ignore the RandomPool_DeprecationWarning that follows.
.......F.....F.............................EFFFEFF....
======================================================================
ERROR: testVerify1 (Crypto.SelfTest.Cipher.test_pkcs1_15.PKCS1_15_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher/test_pkcs1_15.py", line 137, in testVerify1
pt = cipher.decrypt(t2b(test[2]), "---")
File "build/lib.linux-x86_64-2.7/Crypto/Cipher/PKCS1_v1_5.py", line 204, in decrypt
raise ValueError("Ciphertext with incorrect length.")
ValueError: Ciphertext with incorrect length.
======================================================================
ERROR: testVerify2 (Crypto.SelfTest.Cipher.test_pkcs1_15.PKCS1_15_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher/test_pkcs1_15.py", line 152, in testVerify2
self.assertEqual("---", cipher.decrypt(ct, "---"))
File "build/lib.linux-x86_64-2.7/Crypto/Cipher/PKCS1_v1_5.py", line 204, in decrypt
raise ValueError("Ciphertext with incorrect length.")
ValueError: Ciphertext with incorrect length.
======================================================================
ERROR: testDecrypt1 (Crypto.SelfTest.Cipher.test_pkcs1_oaep.PKCS1_OAEP_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py", line 301, in testDecrypt1
key = RSA.construct(comps)
File "build/lib.linux-x86_64-2.7/Crypto/PublicKey/RSA.py", line 572, in construct
key = self._math.rsa_construct(*tup)
ValueError: Unable to compute factors p and q from exponent d.
======================================================================
ERROR: testEncryptDecrypt1 (Crypto.SelfTest.Cipher.test_pkcs1_oaep.PKCS1_OAEP_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py", line 319, in testEncryptDecrypt1
pt2 = cipher.decrypt(ct)
File "build/lib.linux-x86_64-2.7/Crypto/Cipher/PKCS1_OAEP.py", line 227, in decrypt
raise ValueError("Incorrect decryption.")
ValueError: Incorrect decryption.
======================================================================
ERROR: testEncryptDecrypt2 (Crypto.SelfTest.Cipher.test_pkcs1_oaep.PKCS1_OAEP_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py", line 337, in testEncryptDecrypt2
ct = cipher.encrypt(pt)
File "build/lib.linux-x86_64-2.7/Crypto/Cipher/PKCS1_OAEP.py", line 144, in encrypt
raise ValueError("Plaintext is too long.")
ValueError: Plaintext is too long.
======================================================================
ERROR: testEncryptDecrypt3 (Crypto.SelfTest.Cipher.test_pkcs1_oaep.PKCS1_OAEP_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py", line 346, in testEncryptDecrypt3
ct = cipher.encrypt(pt)
File "build/lib.linux-x86_64-2.7/Crypto/Cipher/PKCS1_OAEP.py", line 144, in encrypt
raise ValueError("Plaintext is too long.")
ValueError: Plaintext is too long.
======================================================================
ERROR: testEncryptDecrypt4 (Crypto.SelfTest.Cipher.test_pkcs1_oaep.PKCS1_OAEP_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py", line 360, in testEncryptDecrypt4
ct = cipher.encrypt(pt)
File "build/lib.linux-x86_64-2.7/Crypto/Cipher/PKCS1_OAEP.py", line 144, in encrypt
raise ValueError("Plaintext is too long.")
ValueError: Plaintext is too long.
======================================================================
ERROR: test_construct_3tuple (Crypto.SelfTest.PublicKey.test_RSA.RSATest)
RSA (default implementation) constructed key (3-tuple)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 157, in test_construct_3tuple
rsaObj = self.rsa.construct((self.n, self.e, self.d))
File "build/lib.linux-x86_64-2.7/Crypto/PublicKey/RSA.py", line 572, in construct
key = self._math.rsa_construct(*tup)
ValueError: Unable to compute factors p and q from exponent d.
======================================================================
ERROR: test_construct_4tuple (Crypto.SelfTest.PublicKey.test_RSA.RSATest)
RSA (default implementation) constructed key (4-tuple)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 165, in test_construct_4tuple
rsaObj = self.rsa.construct((self.n, self.e, self.d, self.p))
File "build/lib.linux-x86_64-2.7/Crypto/PublicKey/RSA.py", line 572, in construct
key = self._math.rsa_construct(*tup)
ValueError: Unable to compute factors p and q from exponent d.
======================================================================
ERROR: test_factoring (Crypto.SelfTest.PublicKey.test_RSA.RSATest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 190, in test_factoring
rsaObj = self.rsa.construct([self.n, self.e, self.d])
File "build/lib.linux-x86_64-2.7/Crypto/PublicKey/RSA.py", line 572, in construct
key = self._math.rsa_construct(*tup)
ValueError: Unable to compute factors p and q from exponent d.
======================================================================
ERROR: test_serialization_compat (Crypto.SelfTest.PublicKey.test_RSA.RSATest)
RSA (default implementation) backward compatibility serialization
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 216, in test_serialization_compat
rsaObj = pickle.loads(b(self.pickled_key_2_3))
File "/opt/pypy/lib-python/2.7/pickle.py", line 1425, in loads
return Unpickler(file).load()
File "/opt/pypy/lib-python/2.7/pickle.py", line 901, in load
dispatch[key](self)
File "/opt/pypy/lib-python/2.7/pickle.py", line 1260, in load_build
setstate(state)
File "build/lib.linux-x86_64-2.7/Crypto/PublicKey/RSA.py", line 304, in __setstate__
self.key = self.implementation._math.rsa_construct(*tuple(t))
ValueError: Unable to compute factors p and q from exponent d.
======================================================================
ERROR: test_construct_3tuple (Crypto.SelfTest.PublicKey.test_RSA.RSAFastMathTest)
RSA (_fastmath implementation) constructed key (3-tuple)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 379, in test_construct_3tuple
RSATest.test_construct_3tuple(self)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 157, in test_construct_3tuple
rsaObj = self.rsa.construct((self.n, self.e, self.d))
File "build/lib.linux-x86_64-2.7/Crypto/PublicKey/RSA.py", line 572, in construct
key = self._math.rsa_construct(*tup)
ValueError: Unable to compute factors p and q from exponent d.
======================================================================
ERROR: test_construct_4tuple (Crypto.SelfTest.PublicKey.test_RSA.RSAFastMathTest)
RSA (_fastmath implementation) constructed key (4-tuple)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 383, in test_construct_4tuple
RSATest.test_construct_4tuple(self)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 165, in test_construct_4tuple
rsaObj = self.rsa.construct((self.n, self.e, self.d, self.p))
File "build/lib.linux-x86_64-2.7/Crypto/PublicKey/RSA.py", line 572, in construct
key = self._math.rsa_construct(*tup)
ValueError: Unable to compute factors p and q from exponent d.
======================================================================
ERROR: test_factoring (Crypto.SelfTest.PublicKey.test_RSA.RSAFastMathTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 394, in test_factoring
RSATest.test_factoring(self)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 190, in test_factoring
rsaObj = self.rsa.construct([self.n, self.e, self.d])
File "build/lib.linux-x86_64-2.7/Crypto/PublicKey/RSA.py", line 572, in construct
key = self._math.rsa_construct(*tup)
ValueError: Unable to compute factors p and q from exponent d.
======================================================================
ERROR: test_serialization_compat (Crypto.SelfTest.PublicKey.test_RSA.RSAFastMathTest)
RSA (_fastmath implementation) backward compatibility serialization
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 407, in test_serialization_compat
RSATest.test_serialization_compat(self)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 216, in test_serialization_compat
rsaObj = pickle.loads(b(self.pickled_key_2_3))
File "/opt/pypy/lib-python/2.7/pickle.py", line 1425, in loads
return Unpickler(file).load()
File "/opt/pypy/lib-python/2.7/pickle.py", line 901, in load
dispatch[key](self)
File "/opt/pypy/lib-python/2.7/pickle.py", line 1260, in load_build
setstate(state)
File "build/lib.linux-x86_64-2.7/Crypto/PublicKey/RSA.py", line 304, in __setstate__
self.key = self.implementation._math.rsa_construct(*tuple(t))
ValueError: Unable to compute factors p and q from exponent d.
======================================================================
ERROR: test_serialization_compat (Crypto.SelfTest.PublicKey.test_RSA.RSASlowMathTest)
RSA (_slowmath implementation) backward compatibility serialization
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 455, in test_serialization_compat
RSATest.test_serialization_compat(self)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 216, in test_serialization_compat
rsaObj = pickle.loads(b(self.pickled_key_2_3))
File "/opt/pypy/lib-python/2.7/pickle.py", line 1425, in loads
return Unpickler(file).load()
File "/opt/pypy/lib-python/2.7/pickle.py", line 901, in load
dispatch[key](self)
File "/opt/pypy/lib-python/2.7/pickle.py", line 1260, in load_build
setstate(state)
File "build/lib.linux-x86_64-2.7/Crypto/PublicKey/RSA.py", line 304, in __setstate__
self.key = self.implementation._math.rsa_construct(*tuple(t))
ValueError: Unable to compute factors p and q from exponent d.
======================================================================
ERROR: testSign1 (Crypto.SelfTest.Signature.test_pkcs1_15.PKCS1_15_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/Signature/test_pkcs1_15.py", line 162, in testSign1
key = RSA.construct(comps)
File "build/lib.linux-x86_64-2.7/Crypto/PublicKey/RSA.py", line 572, in construct
key = self._math.rsa_construct(*tup)
ValueError: Unable to compute factors p and q from exponent d.
======================================================================
ERROR: testSign1 (Crypto.SelfTest.Signature.test_pkcs1_pss.PKCS1_PSS_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/Signature/test_pkcs1_pss.py", line 350, in testSign1
key = MyKey(RSA.construct(comps))
File "build/lib.linux-x86_64-2.7/Crypto/PublicKey/RSA.py", line 572, in construct
key = self._math.rsa_construct(*tup)
ValueError: Unable to compute factors p and q from exponent d.
======================================================================
FAIL: testEncrypt1 (Crypto.SelfTest.Cipher.test_pkcs1_15.PKCS1_15_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher/test_pkcs1_15.py", line 123, in testEncrypt1
self.assertEqual(ct, t2b(test[2]))
AssertionError: 'Zb\xeb\xae\xd2\xda\xced\xd9\xda\x87\x8a\\4\xfbG\xd7\x19\x9f!\xca\xc8h\xad\x8a\xee\xd7f\xf5\x0f\x06\xd6\xde&=\xed\x06Z!PYv\xa7\x9a\xaf1\xb6bjE,\x8d\xdf\xa8]\xfa\x9cb\xba4\xe6Qm\xd8\x1a\x1d\n\x18' != "?\xdc\xfd<\xcd\\\x9b\x12\xafe2\xe3\xf7\xd0\xda6\x8f\x8f\xd9\xe3\x13\x1c\x7f\xc8\xb3\xf9\xc1\x08\xe4\xeby\x9c\x91\x89\x1f\x96;\x94wa\x99\xa4\xb1\xee]\xe6\x17\xc9]\n\xb5cR\n\xeb\x00E8*\xfb\xb0q=\x11\xf7\xa1\x9e\xa7i\xb3\xafa\xc0\xbb\x04[]K'D\x1f[\x97\x89\xbaj\x08\x95\xeeO\xa2\xebVd\xe5\x0f\xda|\xf9\x9aaa\x06b\xed\xa0\xbc_\xaal1xp(\x1a\xbb\x98<\xe3j`<\xd1\x0b\x0fZ\xf4u"
======================================================================
FAIL: testEncryptVerify1 (Crypto.SelfTest.Cipher.test_pkcs1_15.PKCS1_15_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher/test_pkcs1_15.py", line 162, in testEncryptVerify1
self.assertEqual(pt,pt2)
AssertionError: '' != '---'
======================================================================
FAIL: testEncrypt1 (Crypto.SelfTest.Cipher.test_pkcs1_oaep.PKCS1_OAEP_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/Cipher/test_pkcs1_oaep.py", line 288, in testEncrypt1
self.assertEqual(ct, t2b(test[2]))
AssertionError: '\xa1V\xc4\xd5\xcc\xbbE\x91;c\x88\xf8\x82"\xd7\x8d\xae\xdb\xe2\x13{\x19\xad\xe9\xd5\xff\tD\x86\xcf\xa0]4\xbf\xfdz\xd4\xaa\xad\xd1\xeb\xd8\x93\x9f\xe3\x8b\x02\xc1\xcd}\xa3\xa4\xc8\x90\xa2E\xb6\xae\x01\xda~z)\x9b\xd7\x1a\x9a5' != '\x12S\xe0M\xc0\xa59{\xb4Jz\xb8~\x9b\xf2\xa09\xa3=\x1e\x99o\xc8*\x94\xcc\xd3\x00t\xc9]\xf7cr \x17\x06\x9eRh\xda]\x1c\x0bO\x87,\xf6S\xc1\x1d\xf8#\x14\xa6yh\xdf\xea\xe2\x8d\xef\x04\xbbm\x84\xb1\xc3\x1deJ\x19p\xe5x;\xd6\xeb\x96\xa0$\xc2\xca/J\x90\xfe\x9f.\xf5\xc9\xc1@\xe5\xbbH\xda\x956\xad\x87\x00\xc8O\xc9\x13\n\xde\xa7NU\x8dQ\xa7M\xdf\x85\xd8\xb5\r\xe9h8\xd6\x06>\tU'
======================================================================
FAIL: test_construct_4tuple (Crypto.SelfTest.PublicKey.test_DSA.DSATest)
DSA (default implementation) constructed key (4-tuple)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_DSA.py", line 101, in test_construct_4tuple
self._test_verification(dsaObj)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_DSA.py", line 175, in _test_verification
self.assertEqual(1, dsaObj.verify(m_hash, (r, s)))
AssertionError: 1 != False
======================================================================
FAIL: test_construct_5tuple (Crypto.SelfTest.PublicKey.test_DSA.DSATest)
DSA (default implementation) constructed key (5-tuple)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_DSA.py", line 107, in test_construct_5tuple
self._test_signing(dsaObj)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_DSA.py", line 169, in _test_signing
self.assertEqual((r, s), (r_out, s_out))
AssertionError: Tuples differ: (79738777230249320902129176579... != (33748764423438257634790122311...
First differing element 0:
797387772302493209021291765790742058535532839360
33748764423438257634790122311
+ (33748764423438257634790122311L, 42783184834611541188167489741L)
- (797387772302493209021291765790742058535532839360L,
- 376128930725767930183372771997677399746658752712L)
======================================================================
FAIL: test_generate_1arg (Crypto.SelfTest.PublicKey.test_DSA.DSATest)
DSA (default implementation) generated key (1 argument)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_DSA.py", line 86, in test_generate_1arg
self._check_private_key(dsaObj)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_DSA.py", line 126, in _check_private_key
self.assertEqual(160, size(dsaObj.q)) # size(q) == 160 bits
AssertionError: 160 != 97
======================================================================
FAIL: test_generate_2arg (Crypto.SelfTest.PublicKey.test_DSA.DSATest)
DSA (default implementation) generated key (2 arguments)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_DSA.py", line 93, in test_generate_2arg
self._check_private_key(dsaObj)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_DSA.py", line 126, in _check_private_key
self.assertEqual(160, size(dsaObj.q)) # size(q) == 160 bits
AssertionError: 160 != 97
======================================================================
FAIL: test_construct_4tuple (Crypto.SelfTest.PublicKey.test_DSA.DSAFastMathTest)
DSA (_fastmath implementation) constructed key (4-tuple)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_DSA.py", line 193, in test_construct_4tuple
DSATest.test_construct_4tuple(self)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_DSA.py", line 101, in test_construct_4tuple
self._test_verification(dsaObj)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_DSA.py", line 175, in _test_verification
self.assertEqual(1, dsaObj.verify(m_hash, (r, s)))
AssertionError: 1 != False
======================================================================
FAIL: test_construct_5tuple (Crypto.SelfTest.PublicKey.test_DSA.DSAFastMathTest)
DSA (_fastmath implementation) constructed key (5-tuple)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_DSA.py", line 197, in test_construct_5tuple
DSATest.test_construct_5tuple(self)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_DSA.py", line 107, in test_construct_5tuple
self._test_signing(dsaObj)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_DSA.py", line 169, in _test_signing
self.assertEqual((r, s), (r_out, s_out))
AssertionError: Tuples differ: (79738777230249320902129176579... != (33748764423438257634790122311...
First differing element 0:
797387772302493209021291765790742058535532839360
33748764423438257634790122311
+ (33748764423438257634790122311L, 42783184834611541188167489741L)
- (797387772302493209021291765790742058535532839360L,
- 376128930725767930183372771997677399746658752712L)
======================================================================
FAIL: test_generate_1arg (Crypto.SelfTest.PublicKey.test_DSA.DSAFastMathTest)
DSA (_fastmath implementation) generated key (1 argument)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_DSA.py", line 185, in test_generate_1arg
DSATest.test_generate_1arg(self)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_DSA.py", line 86, in test_generate_1arg
self._check_private_key(dsaObj)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_DSA.py", line 126, in _check_private_key
self.assertEqual(160, size(dsaObj.q)) # size(q) == 160 bits
AssertionError: 160 != 97
======================================================================
FAIL: test_generate_2arg (Crypto.SelfTest.PublicKey.test_DSA.DSAFastMathTest)
DSA (_fastmath implementation) generated key (2 arguments)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_DSA.py", line 189, in test_generate_2arg
DSATest.test_generate_2arg(self)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_DSA.py", line 93, in test_generate_2arg
self._check_private_key(dsaObj)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_DSA.py", line 126, in _check_private_key
self.assertEqual(160, size(dsaObj.q)) # size(q) == 160 bits
AssertionError: 160 != 97
======================================================================
FAIL: test_construct_2tuple (Crypto.SelfTest.PublicKey.test_RSA.RSATest)
RSA (default implementation) constructed key (2-tuple)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 152, in test_construct_2tuple
self._check_encryption(pub)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 322, in _check_encryption
self.assertEqual(b2a_hex(ciphertext), b2a_hex(new_ciphertext2))
AssertionError: '1253e04dc0a5397bb44a7ab87e9bf2a039a33d1e996fc82a94ccd30074c95df763722017069e5268da5d1c0b4f872cf653c11df82314a67968dfeae28def04bb6d84b1c31d654a1970e5783bd6eb96a024c2ca2f4a90fe9f2ef5c9c140e5bb48da9536ad8700c84fc9130adea74e558d51a74ddf85d8b50de96838d6063e0955' != '4593d8988cd7fd8047795afcf5952ee3f0f615f7f9f2fcbac5c80e02080e7030a20f7f67e0583e70ced310ad3acbd3793554392a8c476018cfa0727802c99f6c61a4c5fc'
======================================================================
FAIL: test_construct_5tuple (Crypto.SelfTest.PublicKey.test_RSA.RSATest)
RSA (default implementation) constructed key (5-tuple)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 174, in test_construct_5tuple
self._check_private_key(rsaObj)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 238, in _check_private_key
self.assertEqual(rsaObj.n, rsaObj.p * rsaObj.q) # n = pq
AssertionError: 42282921561503056806658681990909915252097378601015210004969418223846655988407318517666469918372822754774670088574712804926988998348177685097799461237819205685722571L != 181603765290498387517243590455865468175380615422496210085564699619938098075556105907941666008743396684570446787707720599353808280750666232227256949890312347811919045939019211L
======================================================================
FAIL: test_construct_6tuple (Crypto.SelfTest.PublicKey.test_RSA.RSATest)
RSA (default implementation) constructed key (6-tuple)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 183, in test_construct_6tuple
self._check_private_key(rsaObj)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 238, in _check_private_key
self.assertEqual(rsaObj.n, rsaObj.p * rsaObj.q) # n = pq
AssertionError: 42282921561503056806658681990909915252097378601015210004969418223846655988407318517666469918372822754774670088574712804926988998348177685097799461237819205685722571L != 181603765290498387517243590455865468175380615422496210085564699619938098075556105907941666008743396684570446787707720599353808280750666232227256949890312347811919045939019211L
======================================================================
FAIL: test_generate_1arg (Crypto.SelfTest.PublicKey.test_RSA.RSATest)
RSA (default implementation) generated key (1 argument)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 124, in test_generate_1arg
self._check_private_key(rsaObj)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 238, in _check_private_key
self.assertEqual(rsaObj.n, rsaObj.p * rsaObj.q) # n = pq
AssertionError: 42579520630252371066214703373681917684007936152733807643398220039891585359393721650254325065640078829742344560109586373884468993853796973085928940412776417635600183L != 182877648644103183991694820110481855021801956574711241859843692547074951168057865785094999834448341810418686286148443606719170167569123579482234231199046632096662901827569463L
======================================================================
FAIL: test_generate_2arg (Crypto.SelfTest.PublicKey.test_RSA.RSATest)
RSA (default implementation) generated key (2 arguments)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 133, in test_generate_2arg
self._check_private_key(rsaObj)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 238, in _check_private_key
self.assertEqual(rsaObj.n, rsaObj.p * rsaObj.q) # n = pq
AssertionError: 36555940997484836851854800860198397463069927425844797223721723368193521562401328149462891262917897591237274615508197103384222343495966618655344563671529165098749011L != 157006571089516356364583114214901967555678701696179423889174946009805132292410803516082060866268101453134364390701736677147884242190460475609380566897693253416422378298313811L
======================================================================
FAIL: test_generate_3args (Crypto.SelfTest.PublicKey.test_RSA.RSATest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 141, in test_generate_3args
self._check_private_key(rsaObj)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 238, in _check_private_key
self.assertEqual(rsaObj.n, rsaObj.p * rsaObj.q) # n = pq
AssertionError: 32364813430626825602759226400136122742809084488417182501218280847009500083245283012990549619365425095004070463778493835967080898438284028529221368545666574829069601L != 139005815213810783604859740818180861377385940226217828376050153476781459808406956498881423458936249884264470262088700413975005496586592432740146610518128480530248203256046881L
======================================================================
FAIL: test_serialization (Crypto.SelfTest.PublicKey.test_RSA.RSATest)
RSA (default implementation) serialize/unserialize key
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 201, in test_serialization
self._check_private_key(rsaObj)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 238, in _check_private_key
self.assertEqual(rsaObj.n, rsaObj.p * rsaObj.q) # n = pq
AssertionError: 408328285749703169469121217491303195151169057851438716712464147353992250130019544822353L != 4268545657580612581043955296436735956095475395001845465901403831597068545251521041284030709985873L
======================================================================
FAIL: test_construct_2tuple (Crypto.SelfTest.PublicKey.test_RSA.RSAFastMathTest)
RSA (_fastmath implementation) constructed key (2-tuple)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 375, in test_construct_2tuple
RSATest.test_construct_2tuple(self)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 152, in test_construct_2tuple
self._check_encryption(pub)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 322, in _check_encryption
self.assertEqual(b2a_hex(ciphertext), b2a_hex(new_ciphertext2))
AssertionError: '1253e04dc0a5397bb44a7ab87e9bf2a039a33d1e996fc82a94ccd30074c95df763722017069e5268da5d1c0b4f872cf653c11df82314a67968dfeae28def04bb6d84b1c31d654a1970e5783bd6eb96a024c2ca2f4a90fe9f2ef5c9c140e5bb48da9536ad8700c84fc9130adea74e558d51a74ddf85d8b50de96838d6063e0955' != '4593d8988cd7fd8047795afcf5952ee3f0f615f7f9f2fcbac5c80e02080e7030a20f7f67e0583e70ced310ad3acbd3793554392a8c476018cfa0727802c99f6c61a4c5fc'
======================================================================
FAIL: test_construct_5tuple (Crypto.SelfTest.PublicKey.test_RSA.RSAFastMathTest)
RSA (_fastmath implementation) constructed key (5-tuple)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 387, in test_construct_5tuple
RSATest.test_construct_5tuple(self)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 174, in test_construct_5tuple
self._check_private_key(rsaObj)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 238, in _check_private_key
self.assertEqual(rsaObj.n, rsaObj.p * rsaObj.q) # n = pq
AssertionError: 42282921561503056806658681990909915252097378601015210004969418223846655988407318517666469918372822754774670088574712804926988998348177685097799461237819205685722571L != 181603765290498387517243590455865468175380615422496210085564699619938098075556105907941666008743396684570446787707720599353808280750666232227256949890312347811919045939019211L
======================================================================
FAIL: test_construct_6tuple (Crypto.SelfTest.PublicKey.test_RSA.RSAFastMathTest)
RSA (_fastmath implementation) constructed key (6-tuple)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 391, in test_construct_6tuple
RSATest.test_construct_6tuple(self)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 183, in test_construct_6tuple
self._check_private_key(rsaObj)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 238, in _check_private_key
self.assertEqual(rsaObj.n, rsaObj.p * rsaObj.q) # n = pq
AssertionError: 42282921561503056806658681990909915252097378601015210004969418223846655988407318517666469918372822754774670088574712804926988998348177685097799461237819205685722571L != 181603765290498387517243590455865468175380615422496210085564699619938098075556105907941666008743396684570446787707720599353808280750666232227256949890312347811919045939019211L
======================================================================
FAIL: test_generate_1arg (Crypto.SelfTest.PublicKey.test_RSA.RSAFastMathTest)
RSA (_fastmath implementation) generated key (1 argument)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 367, in test_generate_1arg
RSATest.test_generate_1arg(self)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 124, in test_generate_1arg
self._check_private_key(rsaObj)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 238, in _check_private_key
self.assertEqual(rsaObj.n, rsaObj.p * rsaObj.q) # n = pq
AssertionError: 44744569658002407804131446077521066834313613939472537363901121211196861916696253688794284933001688984665345066871200238098790716275325646646530057000571894338303437L != 192176463344693415272248487531549950605363768634004826214390541161088860059810299842932591132878201495841509736337297908231369036232766199855573452272779915631498533376767437L
======================================================================
FAIL: test_generate_2arg (Crypto.SelfTest.PublicKey.test_RSA.RSAFastMathTest)
RSA (_fastmath implementation) generated key (2 arguments)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 371, in test_generate_2arg
RSATest.test_generate_2arg(self)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 133, in test_generate_2arg
self._check_private_key(rsaObj)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 238, in _check_private_key
self.assertEqual(rsaObj.n, rsaObj.p * rsaObj.q) # n = pq
AssertionError: 44721546453458359131949960020154167116228742144988779917230113236910994202231797626405976842562589547281919728824799639467566636345480570325440224529855948152505893L != 192077579419563278798000602516112479574071377182743293133408680317289617317453755256504815527981601906773503240539516902757420514963174512955206695649023255010874153981052453L
======================================================================
FAIL: test_generate_3args (Crypto.SelfTest.PublicKey.test_RSA.RSAFastMathTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 141, in test_generate_3args
self._check_private_key(rsaObj)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 238, in _check_private_key
self.assertEqual(rsaObj.n, rsaObj.p * rsaObj.q) # n = pq
AssertionError: 41638964608058849531803849804199813704620076702835141815504716000347254973745736230732146500876945274660847404198069918423363078057544353773638027268023291550037569L != 178837991227748806122211557538492013300758430507795067515157827930481119614692719866090250006414406806383087451224239276840521165662553583666408087206584832245237657883047489L
======================================================================
FAIL: test_serialization (Crypto.SelfTest.PublicKey.test_RSA.RSAFastMathTest)
RSA (_fastmath implementation) serialize/unserialize key
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 400, in test_serialization
RSATest.test_serialization(self)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 201, in test_serialization
self._check_private_key(rsaObj)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 238, in _check_private_key
self.assertEqual(rsaObj.n, rsaObj.p * rsaObj.q) # n = pq
AssertionError: 547910650059462393632346151778400528180983515464528883899248256893794299793785843416147L != 4880104883995846030952811257166792651683554741316846400449457695268373127438364330445826875259987L
======================================================================
FAIL: test_serialization (Crypto.SelfTest.PublicKey.test_RSA.RSASlowMathTest)
RSA (_slowmath implementation) serialize/unserialize key
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 448, in test_serialization
RSATest.test_serialization(self)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 201, in test_serialization
self._check_private_key(rsaObj)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_RSA.py", line 238, in _check_private_key
self.assertEqual(rsaObj.n, rsaObj.p * rsaObj.q) # n = pq
AssertionError: 40511561812961277984565887695409469941976468743011082919564140662928420623748438619458071723380917320080474042673042964389151024766770123062812209701277659696442263L != 173995833122880302132838664311039220391568775348093610937598601672911658193608787556561420669279277955794402736804827926041875076381191833744922994816730963254764418931862423L
======================================================================
FAIL: testExportKey1 (Crypto.SelfTest.PublicKey.test_import_DSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_DSA.py", line 79, in testExportKey1
self.assertEqual(self.der_public, encoded)
AssertionError: "0\x82\x01\xb70\x82\x01+\x06\x07*\x86H\xce8\x04\x010\x82\x01\x1e\x02\x81\x81\x00\xe7V\xee\x17\x17\xf4\xb6yL|!G$\xa1\x97ct,EW+K?\x8f\xf3\xb4O;\xe9\xf4L\xe09\xa2uv\x95\xec\x91V\x97\xdat\xef\x91O\xcd\x1b\x05f\x0e$\x19\xc7a\xd69\xf4]-y\xb8\x02\xdb\xd2>z\xb8\xb8\x1bG\x9a8\x0e\x1f0\x93%\x84\xba*\x0b\x95P24.\xbc\x83\xcb\\\xa9\x06\xe7\xb0\xd7\xcdo\xe6V\xce\xcbL\x8bZw\x12:\x8cgP\xa4\x81\xe3\xb0`W\xaf\xf6\xaan\xbab\x0b\x83-`\xc3\x02\x15\x00\xad2\xf4\x8c\xd3\xae\x0cE\xa1\x98\xa6\x1f\xa4\xb5\xe2\x03 v;#\x02\x81\x80y\xdf\xdc=aO\xe65\xfc\xeb~\xae\xae7\x18\xdc.\xfe\xfbE()\x93\xacgI\xdc\x83\xc2#\xd8\xc1\x88r\x961k;\x0bTFl\xf4D\xf3K\x82\xe3UM\x0b\x90\xa7x\xfa\xaf\x13\x06\xf0%\xda\xe6\xa3\xe3l\x7f\x93\xdd[\xac@R\xb9#p\x04\n\xcap\xb8\xd5\x82\x05\x99q\x19\x00\xef\xbc\x96\x18\x12\xc3U\xdd\x9b\xef\xfe\t\x81\xda\x85\xc5T\x80t\xb4\x1cV\xaeC\xfd0\r\x89&.N\xfd\x89\x94?\x99\xa6Q\xb08\x88\x03\x81\x85\x00\x02\x81\x81\x00\x835*i\xa12\xf3HC\xd2\xa0\xeb\x99[\xffN/\x08:s\xf0\x04\x9d,\x91\xea/\x0c\xe4=\x14J\xbd\xa4\x81\x99\xe4\xb0\x03\xc5p\xa8\xaf\x830=E\x10_`l\\H\xd9%\xa4\x0e\xd9\xc2c\x0c/\xa4\xcd\xbf\x83\x859\xde\xb9\xa2\x9f\x91\x90\x85\xf2\x04ci\xf6'\xca\x84\xb2\xcb\x1e,y@VKg\x0f\x96:\xb1\x16MN,\xa2\xbfo\xfd9\xf1/T\x89(\xbfM-\x1b^i\x80\xb4\xf1\xbeL\x92\xa9\x19\x86\xfb\xa5Y" != '0\x81\xf50\x81\xa8\x06\x07*\x86H\xce8\x04\x010\x81\x9c\x02E\x00\xe7V\xee\x17dp\xd7\xc0\x98\xcd\xdc\xbb\x1e\xff\x8e\xcb#\x96\xc2W-\xc7\x06E\x96\xb5\xdb?S\xbb\xbf\x04K\xf6}\x93\xf0)f\xca\xbd1\x1a\n\xb5\xff\x8be\xd4W\x97.)B^\xc6\x0eK\x01\x04\xc6jX\xb5\x83-`\xc3\x02\r\x01\x80\xe1\x00\xd2FN\x88" v;#\x02Dy\xdf\xdc>^;d\xe3\xdd6\x14!\x8fsp0J\x96n\xf2\xb1\xa7\xff\x99H\x98\x8es\xba\x7f\xea\xd5Gf7\xc1\x14\xcf\xb0V\xe0LvR-\xaf\x19\x02\xb3S\xe7\x1dZ\xfayp\x86\xbb\xcd#\xc2\x8e\x97/Q\xb08\x88\x03H\x00\x02E\x00\x835*i\xe5\x05\x943\xc8d9\xc2\x81\xee\xcc9\xa1\xe1\x95\xe4UX\xb3H\x8f\x9d\xb1lW\xb2\xe8\x07\xcb\xb3*\x07pJ(\x91,-\xee\xa9\x0btw\xe0%\xe3\x88\xdd\xdc\xb0\x9fQ\xb6D\x1d\xb6\xcdG\x9a\xd7\x86\xfb\xa5Y'
======================================================================
FAIL: testExportKey10 (Crypto.SelfTest.PublicKey.test_import_DSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_DSA.py", line 351, in testExportKey10
self.assertEqual(self.der_pkcs8_encrypted, encoded)
AssertionError: '0\x82\x01\x960@\x06\t*\x86H\x86\xf7\r\x01\x05\r030\x1b\x06\t*\x86H\x86\xf7\r\x01\x05\x0c0\x0e\x04\x08\xd7%\xbf\x1bk\x829\xf4\x02\x02\x03\xe80\x14\x06\x08*\x86H\x86\xf7\r\x03\x07\x04\x08\'\xa1\xc6lB\xaf\xee\xce\x04\x82\x01P\\\xac\xfd\xe7\xbf\x8e\xda\xbb>\r8yP\xdc\x87&b\xea~\x9b\x1e\xd4@\r.~a\x86(Kdf\x8d\x8d\x03(\xc3:\x9d\x93\x97\xe6\xf0=\xf7\xcbh&\x8b\n\x06\xb4\xe2/}\x13(!D\x9e\xcf\x99\x8a\x8bim\xbcm\xd2\xb1\x9ef\xd7\xeb.\xdf\xebAS\xc1w\x1dIp#\x95O6\x07(h\xb5\xfc\xcc\xf94\x13\xa5\xacK.\xb4}K?h\x1ck\xd6z\xe3c\xedwoE\xaeG\x17J\x00\t\x8a|\x93\nP\xf8 \xb2\'\xdd\xf5\x0f\x97B\xd8\xe9P\xd0%\x86\xff-\xac\x0e<7"H\xe5\xf9\xb6\xa7\xa0/@\x04\xf2\x0c\x87\x91>\x0f{R\xbc\xcc \x9b\x95\xd4x%j\x89\x0b1\xd4\xc9\xad\xec!\xa4\xd1W\xa1y\xa9:=\xad\x06\xf9O<\xe4\x86\xb4m\xfa\x7f\xc1_\xd8R\xddv\x80\xbb\xb2\xf1tx~q\xbd\x8d\xba\xf8\x1e\xcau\x18\xd7l\x1d&%n\x95BHd\xbaE\xca]G\xd7\xc5\xa4!\xbe\x02\xfa\xb9J\xb0\x1e\x18Y?f\xcf\x90\x94\xeb\\\x94\xb9\xec\xf3\xaa\x08\xb8T\xa1\x95\xcf\x87a/\xbe^\x96\xc4&+\rW>R\xdcq\xba?^F\x8c`\x1e\x81lI\xb7\xd3,i\x8b"\x17^\x89\xaa\xef\x0cD7p^\xf2\xf8\x8a\x11m\x99\xd8\xe2\x86\x9aO\xd0\x9aw\x1b\x84\xb4\x9eL\xcby\xaa\xdc\xb1\xc9' != '0\x82\x01\r0@\x06\t*\x86H\x86\xf7\r\x01\x05\r030\x1b\x06\t*\x86H\x86\xf7\r\x01\x05\x0c0\x0e\x04\x08\xd7%\xbf\x1bk\x829\xf4\x02\x02\x03\xe80\x14\x06\x08*\x86H\x86\xf7\r\x03\x07\x04\x08\'\xa1\xc6lB\xaf\xee\xce\x04\x81\xc8\xbey\x06O\x11\xe0\x05Y\xb1\x17\x1f\x8al\xb1\xb79V\x13\n\x9fS\x0e}~\x0f\xdb\xe8=r\x1f\x12n\xcb\x19\xc8\x0c\xa9\x8092\xfe\x1ak\x81\xdb{\xedE\xdd\xe15g)k\x81\xf4\xd3\x81-\xd4\x08\xf6\x80\\\xeb\x85\xc8\xd7\x01\xc7\xe3![j\xb0\xc0\x06\xb4H\x80\xd1\xbb\xee\x9e\xa2\x02\xe6\xf3+[Q\x9d\x81\xeerK\xbc$K<\x1ae}\xde=)\x82\xba>\x97\x95\xa3\x8bi/\xf0\xfc\x8b\xda\xceGt\xfc,\x0e\xd3\x8e@\x07mM*p\x00\xdb\x96\xb4A\xaan\x97iX\xac\xa8H\xd5E\xa3\xbca;\x02A$H_4\x93\x17),\x04\xb2}\xb8C\xf5fl15\xf3SJa"g\xa6r?\xc2\xce\x98\xbcd9\xf6\xcd\xb7\xa3,\xd2^\xbe.{\xcb@\x80'
======================================================================
FAIL: testExportKey2 (Crypto.SelfTest.PublicKey.test_import_DSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_DSA.py", line 109, in testExportKey2
self.assertEqual(self.pem_public, encoded)
AssertionError: '-----BEGIN DSA PUBLIC KEY-----\nMIIBtzCCASsGByqGSM44BAEwggEeAoGBAOdW7hcX9LZ5THwhRyShl2N0LEVXK0s/\nj/O0Tzvp9EzgOaJ1dpXskVaX2nTvkU/NGwVmDiQZx2HWOfRdLXm4AtvSPnq4uBtH\nmjgOHzCTJYS6KguVUDI0LryDy1ypBuew181v5lbOy0yLWncSOoxnUKSB47BgV6/2\nqm66YguDLWDDAhUArTL0jNOuDEWhmKYfpLXiAyB2OyMCgYB539w9YU/mNfzrfq6u\nNxjcLv77RSgpk6xnSdyDwiPYwYhyljFrOwtURmz0RPNLguNVTQuQp3j6rxMG8CXa\n5qPjbH+T3VusQFK5I3AECspwuNWCBZlxGQDvvJYYEsNV3Zvv/gmB2oXFVIB0tBxW\nrkP9MA2JJi5O/YmUP5mmUbA4iAOBhQACgYEAgzUqaaEy80hD0qDrmVv/Ti8IOnPw\nBJ0skeovDOQ9FEq9pIGZ5LADxXCor4MwPUUQX2BsXEjZJaQO2cJjDC+kzb+DhTne\nuaKfkZCF8gRjafYnyoSyyx4seUBWS2cPljqxFk1OLKK/b/058S9UiSi/TS0bXmmA\ntPG+TJKpGYb7pVk=\n-----END DSA PUBLIC KEY-----' != '-----BEGIN DSA PUBLIC KEY-----\nMIH1MIGoBgcqhkjOOAQBMIGcAkUA51buF2Rw18CYzdy7Hv+OyyOWwlctxwZFlrXb\nP1O7vwRL9n2T8Clmyr0xGgq1/4tl1FeXLilCXsYOSwEExmpYtYMtYMMCDQGA4QDS\nRk6IIiB2OyMCRHnf3D5eO2Tj3TYUIY9zcDBKlm7ysaf/mUiYjnO6f+rVR2Y3wRTP\nsFbgTHZSLa8ZArNT5x1a+nlwhrvNI8KOly9RsDiIA0gAAkUAgzUqaeUFlDPIZDnC\nge7MOaHhleRVWLNIj52xbFey6AfLsyoHcEookSwt7qkLdHfgJeOI3dywn1G2RB22\nzUea14b7pVk=\n-----END DSA PUBLIC KEY-----'
======================================================================
FAIL: testExportKey3 (Crypto.SelfTest.PublicKey.test_import_DSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_DSA.py", line 141, in testExportKey3
self.assertEqual(self.der_private, encoded)
AssertionError: "0\x82\x01\xbb\x02\x01\x00\x02\x81\x81\x00\xe7V\xee\x17\x17\xf4\xb6yL|!G$\xa1\x97ct,EW+K?\x8f\xf3\xb4O;\xe9\xf4L\xe09\xa2uv\x95\xec\x91V\x97\xdat\xef\x91O\xcd\x1b\x05f\x0e$\x19\xc7a\xd69\xf4]-y\xb8\x02\xdb\xd2>z\xb8\xb8\x1bG\x9a8\x0e\x1f0\x93%\x84\xba*\x0b\x95P24.\xbc\x83\xcb\\\xa9\x06\xe7\xb0\xd7\xcdo\xe6V\xce\xcbL\x8bZw\x12:\x8cgP\xa4\x81\xe3\xb0`W\xaf\xf6\xaan\xbab\x0b\x83-`\xc3\x02\x15\x00\xad2\xf4\x8c\xd3\xae\x0cE\xa1\x98\xa6\x1f\xa4\xb5\xe2\x03 v;#\x02\x81\x80y\xdf\xdc=aO\xe65\xfc\xeb~\xae\xae7\x18\xdc.\xfe\xfbE()\x93\xacgI\xdc\x83\xc2#\xd8\xc1\x88r\x961k;\x0bTFl\xf4D\xf3K\x82\xe3UM\x0b\x90\xa7x\xfa\xaf\x13\x06\xf0%\xda\xe6\xa3\xe3l\x7f\x93\xdd[\xac@R\xb9#p\x04\n\xcap\xb8\xd5\x82\x05\x99q\x19\x00\xef\xbc\x96\x18\x12\xc3U\xdd\x9b\xef\xfe\t\x81\xda\x85\xc5T\x80t\xb4\x1cV\xaeC\xfd0\r\x89&.N\xfd\x89\x94?\x99\xa6Q\xb08\x88\x02\x81\x81\x00\x835*i\xa12\xf3HC\xd2\xa0\xeb\x99[\xffN/\x08:s\xf0\x04\x9d,\x91\xea/\x0c\xe4=\x14J\xbd\xa4\x81\x99\xe4\xb0\x03\xc5p\xa8\xaf\x830=E\x10_`l\\H\xd9%\xa4\x0e\xd9\xc2c\x0c/\xa4\xcd\xbf\x83\x859\xde\xb9\xa2\x9f\x91\x90\x85\xf2\x04ci\xf6'\xca\x84\xb2\xcb\x1e,y@VKg\x0f\x96:\xb1\x16MN,\xa2\xbfo\xfd9\xf1/T\x89(\xbfM-\x1b^i\x80\xb4\xf1\xbeL\x92\xa9\x19\x86\xfb\xa5Y\x02\x14^\xbd\x9a?\x0b\x82\x06\x9d\x98B\t\x86\xb3\x14!P%u`e" != '0\x81\xf4\x02\x01\x00\x02E\x00\xe7V\xee\x17dp\xd7\xc0\x98\xcd\xdc\xbb\x1e\xff\x8e\xcb#\x96\xc2W-\xc7\x06E\x96\xb5\xdb?S\xbb\xbf\x04K\xf6}\x93\xf0)f\xca\xbd1\x1a\n\xb5\xff\x8be\xd4W\x97.)B^\xc6\x0eK\x01\x04\xc6jX\xb5\x83-`\xc3\x02\r\x01\x80\xe1\x00\xd2FN\x88" v;#\x02Dy\xdf\xdc>^;d\xe3\xdd6\x14!\x8fsp0J\x96n\xf2\xb1\xa7\xff\x99H\x98\x8es\xba\x7f\xea\xd5Gf7\xc1\x14\xcf\xb0V\xe0LvR-\xaf\x19\x02\xb3S\xe7\x1dZ\xfayp\x86\xbb\xcd#\xc2\x8e\x97/Q\xb08\x88\x02E\x00\x835*i\xe5\x05\x943\xc8d9\xc2\x81\xee\xcc9\xa1\xe1\x95\xe4UX\xb3H\x8f\x9d\xb1lW\xb2\xe8\x07\xcb\xb3*\x07pJ(\x91,-\xee\xa9\x0btw\xe0%\xe3\x88\xdd\xdc\xb0\x9fQ\xb6D\x1d\xb6\xcdG\x9a\xd7\x86\xfb\xa5Y\x02\x0cj?\xa0\xddKV*\xd6%u`e'
======================================================================
FAIL: testExportKey4 (Crypto.SelfTest.PublicKey.test_import_DSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_DSA.py", line 172, in testExportKey4
self.assertEqual(self.pem_private, encoded)
AssertionError: '-----BEGIN DSA PRIVATE KEY-----\nMIIBuwIBAAKBgQDnVu4XF/S2eUx8IUckoZdjdCxFVytLP4/ztE876fRM4DmidXaV\n7JFWl9p075FPzRsFZg4kGcdh1jn0XS15uALb0j56uLgbR5o4Dh8wkyWEuioLlVAy\nNC68g8tcqQbnsNfNb+ZWzstMi1p3EjqMZ1CkgeOwYFev9qpuumILgy1gwwIVAK0y\n9IzTrgxFoZimH6S14gMgdjsjAoGAed/cPWFP5jX8636urjcY3C7++0UoKZOsZ0nc\ng8Ij2MGIcpYxazsLVEZs9ETzS4LjVU0LkKd4+q8TBvAl2uaj42x/k91brEBSuSNw\nBArKcLjVggWZcRkA77yWGBLDVd2b7/4JgdqFxVSAdLQcVq5D/TANiSYuTv2JlD+Z\nplGwOIgCgYEAgzUqaaEy80hD0qDrmVv/Ti8IOnPwBJ0skeovDOQ9FEq9pIGZ5LAD\nxXCor4MwPUUQX2BsXEjZJaQO2cJjDC+kzb+DhTneuaKfkZCF8gRjafYnyoSyyx4s\neUBWS2cPljqxFk1OLKK/b/058S9UiSi/TS0bXmmAtPG+TJKpGYb7pVkCFF69mj8L\nggadmEIJhrMUIVAldWBl\n-----END DSA PRIVATE KEY-----' != '-----BEGIN DSA PRIVATE KEY-----\nMIH0AgEAAkUA51buF2Rw18CYzdy7Hv+OyyOWwlctxwZFlrXbP1O7vwRL9n2T8Clm\nyr0xGgq1/4tl1FeXLilCXsYOSwEExmpYtYMtYMMCDQGA4QDSRk6IIiB2OyMCRHnf\n3D5eO2Tj3TYUIY9zcDBKlm7ysaf/mUiYjnO6f+rVR2Y3wRTPsFbgTHZSLa8ZArNT\n5x1a+nlwhrvNI8KOly9RsDiIAkUAgzUqaeUFlDPIZDnCge7MOaHhleRVWLNIj52x\nbFey6AfLsyoHcEookSwt7qkLdHfgJeOI3dywn1G2RB22zUea14b7pVkCDGo/oN1L\nVirWJXVgZQ==\n-----END DSA PRIVATE KEY-----'
======================================================================
FAIL: testExportKey5 (Crypto.SelfTest.PublicKey.test_import_DSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_DSA.py", line 201, in testExportKey5
self.assertEqual(self.der_pkcs8, encoded)
AssertionError: '0\x82\x01J\x02\x01\x000\x82\x01+\x06\x07*\x86H\xce8\x04\x010\x82\x01\x1e\x02\x81\x81\x00\xe7V\xee\x17\x17\xf4\xb6yL|!G$\xa1\x97ct,EW+K?\x8f\xf3\xb4O;\xe9\xf4L\xe09\xa2uv\x95\xec\x91V\x97\xdat\xef\x91O\xcd\x1b\x05f\x0e$\x19\xc7a\xd69\xf4]-y\xb8\x02\xdb\xd2>z\xb8\xb8\x1bG\x9a8\x0e\x1f0\x93%\x84\xba*\x0b\x95P24.\xbc\x83\xcb\\\xa9\x06\xe7\xb0\xd7\xcdo\xe6V\xce\xcbL\x8bZw\x12:\x8cgP\xa4\x81\xe3\xb0`W\xaf\xf6\xaan\xbab\x0b\x83-`\xc3\x02\x15\x00\xad2\xf4\x8c\xd3\xae\x0cE\xa1\x98\xa6\x1f\xa4\xb5\xe2\x03 v;#\x02\x81\x80y\xdf\xdc=aO\xe65\xfc\xeb~\xae\xae7\x18\xdc.\xfe\xfbE()\x93\xacgI\xdc\x83\xc2#\xd8\xc1\x88r\x961k;\x0bTFl\xf4D\xf3K\x82\xe3UM\x0b\x90\xa7x\xfa\xaf\x13\x06\xf0%\xda\xe6\xa3\xe3l\x7f\x93\xdd[\xac@R\xb9#p\x04\n\xcap\xb8\xd5\x82\x05\x99q\x19\x00\xef\xbc\x96\x18\x12\xc3U\xdd\x9b\xef\xfe\t\x81\xda\x85\xc5T\x80t\xb4\x1cV\xaeC\xfd0\r\x89&.N\xfd\x89\x94?\x99\xa6Q\xb08\x88\x04\x16\x02\x14^\xbd\x9a?\x0b\x82\x06\x9d\x98B\t\x86\xb3\x14!P%u`e' != '0\x81\xbe\x02\x01\x000\x81\xa8\x06\x07*\x86H\xce8\x04\x010\x81\x9c\x02E\x00\xe7V\xee\x17dp\xd7\xc0\x98\xcd\xdc\xbb\x1e\xff\x8e\xcb#\x96\xc2W-\xc7\x06E\x96\xb5\xdb?S\xbb\xbf\x04K\xf6}\x93\xf0)f\xca\xbd1\x1a\n\xb5\xff\x8be\xd4W\x97.)B^\xc6\x0eK\x01\x04\xc6jX\xb5\x83-`\xc3\x02\r\x01\x80\xe1\x00\xd2FN\x88" v;#\x02Dy\xdf\xdc>^;d\xe3\xdd6\x14!\x8fsp0J\x96n\xf2\xb1\xa7\xff\x99H\x98\x8es\xba\x7f\xea\xd5Gf7\xc1\x14\xcf\xb0V\xe0LvR-\xaf\x19\x02\xb3S\xe7\x1dZ\xfayp\x86\xbb\xcd#\xc2\x8e\x97/Q\xb08\x88\x04\x0e\x02\x0cj?\xa0\xddKV*\xd6%u`e'
======================================================================
FAIL: testExportKey6 (Crypto.SelfTest.PublicKey.test_import_DSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_DSA.py", line 231, in testExportKey6
self.assertEqual(self.pem_pkcs8, encoded)
AssertionError: '-----BEGIN PRIVATE KEY-----\nMIIBSgIBADCCASsGByqGSM44BAEwggEeAoGBAOdW7hcX9LZ5THwhRyShl2N0LEVX\nK0s/j/O0Tzvp9EzgOaJ1dpXskVaX2nTvkU/NGwVmDiQZx2HWOfRdLXm4AtvSPnq4\nuBtHmjgOHzCTJYS6KguVUDI0LryDy1ypBuew181v5lbOy0yLWncSOoxnUKSB47Bg\nV6/2qm66YguDLWDDAhUArTL0jNOuDEWhmKYfpLXiAyB2OyMCgYB539w9YU/mNfzr\nfq6uNxjcLv77RSgpk6xnSdyDwiPYwYhyljFrOwtURmz0RPNLguNVTQuQp3j6rxMG\n8CXa5qPjbH+T3VusQFK5I3AECspwuNWCBZlxGQDvvJYYEsNV3Zvv/gmB2oXFVIB0\ntBxWrkP9MA2JJi5O/YmUP5mmUbA4iAQWAhRevZo/C4IGnZhCCYazFCFQJXVgZQ==\n-----END PRIVATE KEY-----' != '-----BEGIN PRIVATE KEY-----\nMIG+AgEAMIGoBgcqhkjOOAQBMIGcAkUA51buF2Rw18CYzdy7Hv+OyyOWwlctxwZF\nlrXbP1O7vwRL9n2T8Clmyr0xGgq1/4tl1FeXLilCXsYOSwEExmpYtYMtYMMCDQGA\n4QDSRk6IIiB2OyMCRHnf3D5eO2Tj3TYUIY9zcDBKlm7ysaf/mUiYjnO6f+rVR2Y3\nwRTPsFbgTHZSLa8ZArNT5x1a+nlwhrvNI8KOly9RsDiIBA4CDGo/oN1LVirWJXVg\nZQ==\n-----END PRIVATE KEY-----'
======================================================================
FAIL: testExportKey7 (Crypto.SelfTest.PublicKey.test_import_DSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_DSA.py", line 251, in testExportKey7
self.assertEqual(self.ssh_pub, encoded)
AssertionError: 'ssh-dss AAAAB3NzaC1kc3MAAACBAOdW7hcX9LZ5THwhRyShl2N0LEVXK0s/j/O0Tzvp9EzgOaJ1dpXskVaX2nTvkU/NGwVmDiQZx2HWOfRdLXm4AtvSPnq4uBtHmjgOHzCTJYS6KguVUDI0LryDy1ypBuew181v5lbOy0yLWncSOoxnUKSB47BgV6/2qm66YguDLWDDAAAAFQCtMvSM064MRaGYph+kteIDIHY7IwAAAIB539w9YU/mNfzrfq6uNxjcLv77RSgpk6xnSdyDwiPYwYhyljFrOwtURmz0RPNLguNVTQuQp3j6rxMG8CXa5qPjbH+T3VusQFK5I3AECspwuNWCBZlxGQDvvJYYEsNV3Zvv/gmB2oXFVIB0tBxWrkP9MA2JJi5O/YmUP5mmUbA4iAAAAIEAgzUqaaEy80hD0qDrmVv/Ti8IOnPwBJ0skeovDOQ9FEq9pIGZ5LADxXCor4MwPUUQX2BsXEjZJaQO2cJjDC+kzb+DhTneuaKfkZCF8gRjafYnyoSyyx4seUBWS2cPljqxFk1OLKK/b/058S9UiSi/TS0bXmmAtPG+TJKpGYb7pVk=' != 'ssh-dss AAAAB3NzaC1kc3MAAABFAOdW7hdkcNfAmM3cux7/jssjlsJXLccGRZa12z9Tu78ES/Z9k/ApZsq9MRoKtf+LZdRXly4pQl7GDksBBMZqWLWDLWDDAAAADQGA4QDSRk6IIiB2OyMAAABEed/cPl47ZOPdNhQhj3NwMEqWbvKxp/+ZSJiOc7p/6tVHZjfBFM+wVuBMdlItrxkCs1PnHVr6eXCGu80jwo6XL1GwOIgAAABFAIM1KmnlBZQzyGQ5woHuzDmh4ZXkVVizSI+dsWxXsugHy7MqB3BKKJEsLe6pC3R34CXjiN3csJ9RtkQdts1HmteG+6VZ'
======================================================================
FAIL: testExportKey8 (Crypto.SelfTest.PublicKey.test_import_DSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_DSA.py", line 286, in testExportKey8
self.assertEqual(self.y, key.key.y)
AssertionError: 92137165128186062214622779787483327510946462589285775188003362705875131352591574106484271700740858696583623951844732128165434284507709057439633739849986759064015013893156866539696757799934634945787496920169462601722830899660681779448742875054459716726855443681559131362852474817534616736104831095601710736729L != 699806587462353710995277340531254219295246280575402591397501687461396952216052306781529L
======================================================================
FAIL: testImportKey1 (Crypto.SelfTest.PublicKey.test_import_DSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_DSA.py", line 70, in testImportKey1
self.assertEqual(self.y, key_obj.key.y)
AssertionError: 92137165128186062214622779787483327510946462589285775188003362705875131352591574106484271700740858696583623951844732128165434284507709057439633739849986759064015013893156866539696757799934634945787496920169462601722830899660681779448742875054459716726855443681559131362852474817534616736104831095601710736729L != 29514601722149802310850496522649724485457199016673446376424086947286260135853252507862803879427584343103962645347244124976388297477929838535916894730246373789902169L
======================================================================
FAIL: testImportKey10 (Crypto.SelfTest.PublicKey.test_import_DSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_DSA.py", line 339, in testImportKey10
self.assertEqual(self.y, key_obj.key.y)
AssertionError: 92137165128186062214622779787483327510946462589285775188003362705875131352591574106484271700740858696583623951844732128165434284507709057439633739849986759064015013893156866539696757799934634945787496920169462601722830899660681779448742875054459716726855443681559131362852474817534616736104831095601710736729L != 29514601722149802310850496522649724485457199016673446376424086947286260135853252507862803879427584343103962645347244124976388297477929838535916894730246373789902169L
======================================================================
FAIL: testImportKey2 (Crypto.SelfTest.PublicKey.test_import_DSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_DSA.py", line 100, in testImportKey2
self.assertEqual(self.y, key_obj.key.y)
AssertionError: 92137165128186062214622779787483327510946462589285775188003362705875131352591574106484271700740858696583623951844732128165434284507709057439633739849986759064015013893156866539696757799934634945787496920169462601722830899660681779448742875054459716726855443681559131362852474817534616736104831095601710736729L != 29514601722149802310850496522649724485457199016673446376424086947286260135853252507862803879427584343103962645347244124976388297477929838535916894730246373789902169L
======================================================================
FAIL: testImportKey3 (Crypto.SelfTest.PublicKey.test_import_DSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_DSA.py", line 131, in testImportKey3
self.assertEqual(self.y, key_obj.key.y)
AssertionError: 92137165128186062214622779787483327510946462589285775188003362705875131352591574106484271700740858696583623951844732128165434284507709057439633739849986759064015013893156866539696757799934634945787496920169462601722830899660681779448742875054459716726855443681559131362852474817534616736104831095601710736729L != 29514601722149802310850496522649724485457199016673446376424086947286260135853252507862803879427584343103962645347244124976388297477929838535916894730246373789902169L
======================================================================
FAIL: testImportKey4 (Crypto.SelfTest.PublicKey.test_import_DSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_DSA.py", line 162, in testImportKey4
self.assertEqual(self.y, key_obj.key.y)
AssertionError: 92137165128186062214622779787483327510946462589285775188003362705875131352591574106484271700740858696583623951844732128165434284507709057439633739849986759064015013893156866539696757799934634945787496920169462601722830899660681779448742875054459716726855443681559131362852474817534616736104831095601710736729L != 29514601722149802310850496522649724485457199016673446376424086947286260135853252507862803879427584343103962645347244124976388297477929838535916894730246373789902169L
======================================================================
FAIL: testImportKey5 (Crypto.SelfTest.PublicKey.test_import_DSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_DSA.py", line 191, in testImportKey5
self.assertEqual(self.y, key_obj.key.y)
AssertionError: 92137165128186062214622779787483327510946462589285775188003362705875131352591574106484271700740858696583623951844732128165434284507709057439633739849986759064015013893156866539696757799934634945787496920169462601722830899660681779448742875054459716726855443681559131362852474817534616736104831095601710736729L != 29514601722149802310850496522649724485457199016673446376424086947286260135853252507862803879427584343103962645347244124976388297477929838535916894730246373789902169L
======================================================================
FAIL: testImportKey6 (Crypto.SelfTest.PublicKey.test_import_DSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_DSA.py", line 221, in testImportKey6
self.assertEqual(self.y, key_obj.key.y)
AssertionError: 92137165128186062214622779787483327510946462589285775188003362705875131352591574106484271700740858696583623951844732128165434284507709057439633739849986759064015013893156866539696757799934634945787496920169462601722830899660681779448742875054459716726855443681559131362852474817534616736104831095601710736729L != 29514601722149802310850496522649724485457199016673446376424086947286260135853252507862803879427584343103962645347244124976388297477929838535916894730246373789902169L
======================================================================
FAIL: testImportKey7 (Crypto.SelfTest.PublicKey.test_import_DSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_DSA.py", line 242, in testImportKey7
self.assertEqual(self.y, key_obj.key.y)
AssertionError: 92137165128186062214622779787483327510946462589285775188003362705875131352591574106484271700740858696583623951844732128165434284507709057439633739849986759064015013893156866539696757799934634945787496920169462601722830899660681779448742875054459716726855443681559131362852474817534616736104831095601710736729L != 29514601722149802310850496522649724485457199016673446376424086947286260135853252507862803879427584343103962645347244124976388297477929838535916894730246373789902169L
======================================================================
FAIL: testImportKey8 (Crypto.SelfTest.PublicKey.test_import_DSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_DSA.py", line 275, in testImportKey8
self.assertEqual(self.y, key_obj.key.y)
AssertionError: 92137165128186062214622779787483327510946462589285775188003362705875131352591574106484271700740858696583623951844732128165434284507709057439633739849986759064015013893156866539696757799934634945787496920169462601722830899660681779448742875054459716726855443681559131362852474817534616736104831095601710736729L != 29514601722149802310850496522649724485457199016673446376424086947286260135853252507862803879427584343103962645347244124976388297477929838535916894730246373789902169L
======================================================================
FAIL: testImportKey9 (Crypto.SelfTest.PublicKey.test_import_DSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_DSA.py", line 310, in testImportKey9
self.assertEqual(self.y, key_obj.key.y)
AssertionError: 92137165128186062214622779787483327510946462589285775188003362705875131352591574106484271700740858696583623951844732128165434284507709057439633739849986759064015013893156866539696757799934634945787496920169462601722830899660681779448742875054459716726855443681559131362852474817534616736104831095601710736729L != 29514601722149802310850496522649724485457199016673446376424086947286260135853252507862803879427584343103962645347244124976388297477929838535916894730246373789902169L
======================================================================
FAIL: testExportKey1 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 276, in testExportKey1
self.assertEqual(derKey, self.rsaKeyDER)
AssertionError: "0\x81\xc5\x02\x01\x00\x02%\x00\xbf\x1e'\x90[\xba\xe75\xb2\xda\xac\x92P\x14&\x1f9IA\x18'\xb5i\x89C\x95^\xb2\xd6\xc5\x83\xc1\xc1\x903\x85\x02\x03\x01\x00\x01\x02$\tD\x83\x13\x95\x90(\xa9\xab\xe7\xa2\xba>\xc1\xdb`\x03U\x03hh\xa1\xdbiR\xefH\x01Q\xe4.\x04\x0c\xfa\xc89\x02\x15\x00\xf2\x0f/?\x13\xcf\x99\x15\x88\xbc\xe7\x1b\xdc\x06\xd6:#\x12J#\x02\x15\x00\xca\x1f\xe9$\xe5'\xb4\x18M)\xc078\x16*\xab\xc9\x9a\x027\x02\x14:\xd9}l\x1etm;R_\xc7:([h\xa1\x10E\x19!\x02\x14l\xff!\x98\xa8\xe5P33\x15\x85\x05\xdc\xb6\x86%G\xb0\xf7E\x02\x14\x1d\xaay\x8by\xacu\x90\xf7\xd1\xb1A\xf6:V\xa3\xd7J|\xbe" != '0\x82\x01;\x02\x01\x00\x02A\x00\xbf\x1e\'\x90\n\xa0\x8b#Q\x1a\\\x12\x81\xaem\x931,>\xfe\x91?\x93.\xbe\xd4\x92\xf1-\x16\xb4a\x0c2\x8c\xb6\xe2\x08\xab_E\xac\xbe)P\x832\x98\xf3\x12,\x19\xf7\x84\x92\xde\xdf@\xf0\xe3\xc1\x903\x85\x02\x03\x01\x00\x01\x02@\tD\x83\x12\x9f\x11M\xed\xf6~\xda\xbc#\x01\xbcZ\x88\xe5\xe6`\x1d\xd7\x01b \xea\xd9\xfdK\xfco\xde\xb7X\x93\x89\x8a\xe4\x1cT\xdd\xbd\xbf\x159\xf8\xcc\xbd\x18\xf6{D\r\xe1\xac0D\x02\x81\xd4\x0c\xfa\xc89\x02!\x00\xf2\x0f/>\x1d\xa6\x18\x83\xf6)\x80\x92+\xd8\xdfT\\\xe4\x07\xc7&$\x11\x03\xb5\xe2\xc57#\x12J#\x02!\x00\xca\x1f\xe9$y,\xfc\xc9k\xfa\xb7O4Jh\xb4\x18\xdfW\x838\x06H\x06\x00\x0f\xe2\xa5\xc9\x9a\x027\x02!\x00\x87\xbe\x1c0)PK\xcf4\xecq=\x87yGDx\x13(\x89u\xca$\x00\x80\xaf{\t@\x91\xb1!\x02 j\xb4i\xfamVH\xa5u1\xc8\xb01\xa4\xce\x9d\xb5;\xc3\x11l\xf43\xf5\xa6\xf6\xbb\xeaV\x01\xce\x05\x02!\x00\xbd\x9f@\xa7d"z!\x96*J\xdd\x07\xe4\xde\xfeC\xed\x91\xa3\xae\'\xbb\x05\x7f9$\x1f3\xab\x01\xc1'
======================================================================
FAIL: testExportKey10 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 322, in testExportKey10
self.assertEqual(key.n, inkey.n)
AssertionError: 371278587709692449235787696606069133789269383818951341241102767263088131264330008114053L != 1614775946032214082048049729377540119829150708613L
======================================================================
FAIL: testExportKey11 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 334, in testExportKey11
self.assertEqual(key.n, inkey.n)
AssertionError: 371278587709692449235787696606069133789269383818951341241102767263088131264330008114053L != 1614775946032214082048049729377540119829150708613L
======================================================================
FAIL: testExportKey12 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 346, in testExportKey12
self.assertEqual(key.n, inkey.n)
AssertionError: 371278587709692449235787696606069133789269383818951341241102767263088131264330008114053L != 1614775946032214082048049729377540119829150708613L
======================================================================
FAIL: testExportKey13 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 359, in testExportKey13
self.assertEqual(key.n, inkey.n)
AssertionError: 371278587709692449235787696606069133789269383818951341241102767263088131264330008114053L != 1614775946032214082048049729377540119829150708613L
======================================================================
FAIL: testExportKey14 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 369, in testExportKey14
self.assertEqual(key.n, inkey.n)
AssertionError: 371278587709692449235787696606069133789269383818951341241102767263088131264330008114053L != 1614775946032214082048049729377540119829150708613L
======================================================================
FAIL: testExportKey2 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 281, in testExportKey2
self.assertEqual(derKey, self.rsaPublicKeyDER)
AssertionError: "0@0\r\x06\t*\x86H\x86\xf7\r\x01\x01\x01\x05\x00\x03/\x000,\x02%\x00\xbf\x1e'\x90[\xba\xe75\xb2\xda\xac\x92P\x14&\x1f9IA\x18'\xb5i\x89C\x95^\xb2\xd6\xc5\x83\xc1\xc1\x903\x85\x02\x03\x01\x00\x01" != "0\\0\r\x06\t*\x86H\x86\xf7\r\x01\x01\x01\x05\x00\x03K\x000H\x02A\x00\xbf\x1e'\x90\n\xa0\x8b#Q\x1a\\\x12\x81\xaem\x931,>\xfe\x91?\x93.\xbe\xd4\x92\xf1-\x16\xb4a\x0c2\x8c\xb6\xe2\x08\xab_E\xac\xbe)P\x832\x98\xf3\x12,\x19\xf7\x84\x92\xde\xdf@\xf0\xe3\xc1\x903\x85\x02\x03\x01\x00\x01"
======================================================================
FAIL: testExportKey3 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 286, in testExportKey3
self.assertEqual(pemKey, b(self.rsaKeyPEM))
AssertionError: '-----BEGIN RSA PRIVATE KEY-----\nMIHFAgEAAiUAvx4nkFu65zWy2qySUBQmHzlJQRgntWmJQ5VestbFg8HBkDOFAgMB\nAAECJAlEgxOVkCipq+eiuj7B22ADVQNoaKHbaVLvSAFR5C4EDPrIOQIVAPIPLz8T\nz5kViLznG9wG1jojEkojAhUAyh/pJOUntBhNKcA3OBYqq8maAjcCFDrZfWwedG07\nUl/HOihbaKEQRRkhAhRs/yGYqOVQMzMVhQXctoYlR7D3RQIUHap5i3msdZD30bFB\n9jpWo9dKfL4=\n-----END RSA PRIVATE KEY-----' != u'-----BEGIN RSA PRIVATE KEY-----\nMIIBOwIBAAJBAL8eJ5AKoIsjURpcEoGubZMxLD7+kT+TLr7UkvEtFrRhDDKMtuII\nq19FrL4pUIMymPMSLBn3hJLe30Dw48GQM4UCAwEAAQJACUSDEp8RTe32ftq8IwG8\nWojl5mAd1wFiIOrZ/Uv8b963WJOJiuQcVN29vxU5+My9GPZ7RA3hrDBEAoHUDPrI\nOQIhAPIPLz4dphiD9imAkivY31Rc5AfHJiQRA7XixTcjEkojAiEAyh/pJHks/Mlr\n+rdPNEpotBjfV4M4BkgGAA/ipcmaAjcCIQCHvhwwKVBLzzTscT2HeUdEeBMoiXXK\nJACAr3sJQJGxIQIgarRp+m1WSKV1MciwMaTOnbU7wxFs9DP1pva76lYBzgUCIQC9\nn0CnZCJ6IZYqSt0H5N7+Q+2Ro64nuwV/OSQfM6sBwQ==\n-----END RSA PRIVATE KEY-----'
======================================================================
FAIL: testExportKey4 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 291, in testExportKey4
self.assertEqual(pemKey, b(self.rsaPublicKeyPEM))
AssertionError: '-----BEGIN RSA PUBLIC KEY-----\nMEAwDQYJKoZIhvcNAQEBBQADLwAwLAIlAL8eJ5Bbuuc1stqsklAUJh85SUEYJ7Vp\niUOVXrLWxYPBwZAzhQIDAQAB\n-----END RSA PUBLIC KEY-----' != u'-----BEGIN RSA PUBLIC KEY-----\nMFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAL8eJ5AKoIsjURpcEoGubZMxLD7+kT+T\nLr7UkvEtFrRhDDKMtuIIq19FrL4pUIMymPMSLBn3hJLe30Dw48GQM4UCAwEAAQ==\n-----END RSA PUBLIC KEY-----'
======================================================================
FAIL: testExportKey5 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 298, in testExportKey5
self.assertEqual(openssh_1[1], openssh_2[1])
AssertionError: 'AAAAB3NzaC1yc2EAAAADAQABAAAAJQC/HieQW7rnNbLarJJQFCYfOUlBGCe1aYlDlV6y1sWDwcGQM4U=' != 'AAAAB3NzaC1yc2EAAAADAQABAAAAQQC/HieQCqCLI1EaXBKBrm2TMSw+/pE/ky6+1JLxLRa0YQwyjLbiCKtfRay+KVCDMpjzEiwZ94SS3t9A8OPBkDOF'
======================================================================
FAIL: testExportKey7 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 303, in testExportKey7
self.assertEqual(derKey, self.rsaKeyDER8)
AssertionError: "0\x81\xdd\x02\x01\x000\r\x06\t*\x86H\x86\xf7\r\x01\x01\x01\x05\x00\x04\x81\xc80\x81\xc5\x02\x01\x00\x02%\x00\xbf\x1e'\x90[\xba\xe75\xb2\xda\xac\x92P\x14&\x1f9IA\x18'\xb5i\x89C\x95^\xb2\xd6\xc5\x83\xc1\xc1\x903\x85\x02\x03\x01\x00\x01\x02$\tD\x83\x13\x95\x90(\xa9\xab\xe7\xa2\xba>\xc1\xdb`\x03U\x03hh\xa1\xdbiR\xefH\x01Q\xe4.\x04\x0c\xfa\xc89\x02\x15\x00\xf2\x0f/?\x13\xcf\x99\x15\x88\xbc\xe7\x1b\xdc\x06\xd6:#\x12J#\x02\x15\x00\xca\x1f\xe9$\xe5'\xb4\x18M)\xc078\x16*\xab\xc9\x9a\x027\x02\x14:\xd9}l\x1etm;R_\xc7:([h\xa1\x10E\x19!\x02\x14l\xff!\x98\xa8\xe5P33\x15\x85\x05\xdc\xb6\x86%G\xb0\xf7E\x02\x14\x1d\xaay\x8by\xacu\x90\xf7\xd1\xb1A\xf6:V\xa3\xd7J|\xbe" != '0\x82\x01U\x02\x01\x000\r\x06\t*\x86H\x86\xf7\r\x01\x01\x01\x05\x00\x04\x82\x01?0\x82\x01;\x02\x01\x00\x02A\x00\xbf\x1e\'\x90\n\xa0\x8b#Q\x1a\\\x12\x81\xaem\x931,>\xfe\x91?\x93.\xbe\xd4\x92\xf1-\x16\xb4a\x0c2\x8c\xb6\xe2\x08\xab_E\xac\xbe)P\x832\x98\xf3\x12,\x19\xf7\x84\x92\xde\xdf@\xf0\xe3\xc1\x903\x85\x02\x03\x01\x00\x01\x02@\tD\x83\x12\x9f\x11M\xed\xf6~\xda\xbc#\x01\xbcZ\x88\xe5\xe6`\x1d\xd7\x01b \xea\xd9\xfdK\xfco\xde\xb7X\x93\x89\x8a\xe4\x1cT\xdd\xbd\xbf\x159\xf8\xcc\xbd\x18\xf6{D\r\xe1\xac0D\x02\x81\xd4\x0c\xfa\xc89\x02!\x00\xf2\x0f/>\x1d\xa6\x18\x83\xf6)\x80\x92+\xd8\xdfT\\\xe4\x07\xc7&$\x11\x03\xb5\xe2\xc57#\x12J#\x02!\x00\xca\x1f\xe9$y,\xfc\xc9k\xfa\xb7O4Jh\xb4\x18\xdfW\x838\x06H\x06\x00\x0f\xe2\xa5\xc9\x9a\x027\x02!\x00\x87\xbe\x1c0)PK\xcf4\xecq=\x87yGDx\x13(\x89u\xca$\x00\x80\xaf{\t@\x91\xb1!\x02 j\xb4i\xfamVH\xa5u1\xc8\xb01\xa4\xce\x9d\xb5;\xc3\x11l\xf43\xf5\xa6\xf6\xbb\xeaV\x01\xce\x05\x02!\x00\xbd\x9f@\xa7d"z!\x96*J\xdd\x07\xe4\xde\xfeC\xed\x91\xa3\xae\'\xbb\x05\x7f9$\x1f3\xab\x01\xc1'
======================================================================
FAIL: testExportKey8 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsFast)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 308, in testExportKey8
self.assertEqual(pemKey, b(self.rsaKeyPEM8))
AssertionError: '-----BEGIN PRIVATE KEY-----\nMIHdAgEAMA0GCSqGSIb3DQEBAQUABIHIMIHFAgEAAiUAvx4nkFu65zWy2qySUBQm\nHzlJQRgntWmJQ5VestbFg8HBkDOFAgMBAAECJAlEgxOVkCipq+eiuj7B22ADVQNo\naKHbaVLvSAFR5C4EDPrIOQIVAPIPLz8Tz5kViLznG9wG1jojEkojAhUAyh/pJOUn\ntBhNKcA3OBYqq8maAjcCFDrZfWwedG07Ul/HOihbaKEQRRkhAhRs/yGYqOVQMzMV\nhQXctoYlR7D3RQIUHap5i3msdZD30bFB9jpWo9dKfL4=\n-----END PRIVATE KEY-----' != u'-----BEGIN PRIVATE KEY-----\nMIIBVQIBADANBgkqhkiG9w0BAQEFAASCAT8wggE7AgEAAkEAvx4nkAqgiyNRGlwS\nga5tkzEsPv6RP5MuvtSS8S0WtGEMMoy24girX0WsvilQgzKY8xIsGfeEkt7fQPDj\nwZAzhQIDAQABAkAJRIMSnxFN7fZ+2rwjAbxaiOXmYB3XAWIg6tn9S/xv3rdYk4mK\n5BxU3b2/FTn4zL0Y9ntEDeGsMEQCgdQM+sg5AiEA8g8vPh2mGIP2KYCSK9jfVFzk\nB8cmJBEDteLFNyMSSiMCIQDKH+kkeSz8yWv6t080Smi0GN9XgzgGSAYAD+KlyZoC\nNwIhAIe+HDApUEvPNOxxPYd5R0R4EyiJdcokAICvewlAkbEhAiBqtGn6bVZIpXUx\nyLAxpM6dtTvDEWz0M/Wm9rvqVgHOBQIhAL2fQKdkInohlipK3Qfk3v5D7ZGjrie7\nBX85JB8zqwHB\n-----END PRIVATE KEY-----'
======================================================================
FAIL: testImportKey1 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsFast)
Verify import of RSAPrivateKey DER SEQUENCE
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 161, in testImportKey1
self.assertEqual(key.n, self.n)
AssertionError: 371278587709692449235787696606069133789269383818951341241102767263088131264330008114053L != 10009650922319323069803079573274165970579185090127568126860948226706532161412468049945146845321486910355660772093076859316010597108858810676816273210356613L
======================================================================
FAIL: testImportKey10 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsFast)
Verify import of unencrypted PrivateKeyInfo DER SEQUENCE, encoded with PEM
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 251, in testImportKey10
self.assertEqual(key.n, self.n)
AssertionError: 371278587709692449235787696606069133789269383818951341241102767263088131264330008114053L != 10009650922319323069803079573274165970579185090127568126860948226706532161412468049945146845321486910355660772093076859316010597108858810676816273210356613L
======================================================================
FAIL: testImportKey2 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsFast)
Verify import of SubjectPublicKeyInfo DER SEQUENCE
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 171, in testImportKey2
self.assertEqual(key.n, self.n)
AssertionError: 371278587709692449235787696606069133789269383818951341241102767263088131264330008114053L != 10009650922319323069803079573274165970579185090127568126860948226706532161412468049945146845321486910355660772093076859316010597108858810676816273210356613L
======================================================================
FAIL: testImportKey3bytes (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsFast)
Verify import of RSAPrivateKey DER SEQUENCE, encoded with PEM as byte string
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 188, in testImportKey3bytes
self.assertEqual(key.n, self.n)
AssertionError: 371278587709692449235787696606069133789269383818951341241102767263088131264330008114053L != 10009650922319323069803079573274165970579185090127568126860948226706532161412468049945146845321486910355660772093076859316010597108858810676816273210356613L
======================================================================
FAIL: testImportKey3unicode (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsFast)
Verify import of RSAPrivateKey DER SEQUENCE, encoded with PEM as unicode
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 178, in testImportKey3unicode
self.assertEqual(key.n, self.n)
AssertionError: 371278587709692449235787696606069133789269383818951341241102767263088131264330008114053L != 10009650922319323069803079573274165970579185090127568126860948226706532161412468049945146845321486910355660772093076859316010597108858810676816273210356613L
======================================================================
FAIL: testImportKey4bytes (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsFast)
Verify import of SubjectPublicKeyInfo DER SEQUENCE, encoded with PEM as byte string
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 205, in testImportKey4bytes
self.assertEqual(key.n, self.n)
AssertionError: 371278587709692449235787696606069133789269383818951341241102767263088131264330008114053L != 10009650922319323069803079573274165970579185090127568126860948226706532161412468049945146845321486910355660772093076859316010597108858810676816273210356613L
======================================================================
FAIL: testImportKey4unicode (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsFast)
Verify import of RSAPrivateKey DER SEQUENCE, encoded with PEM as unicode
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 198, in testImportKey4unicode
self.assertEqual(key.n, self.n)
AssertionError: 371278587709692449235787696606069133789269383818951341241102767263088131264330008114053L != 10009650922319323069803079573274165970579185090127568126860948226706532161412468049945146845321486910355660772093076859316010597108858810676816273210356613L
======================================================================
FAIL: testImportKey5 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsFast)
Verifies that the imported key is still a valid RSA pair
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 212, in testImportKey5
self.assertEqual(idem[0],b("Test"))
AssertionError: '\\!U\xfc\x88\xa0\x9d\xb1j\xaa\xc5"\x1f\xf2I\xc3H\x9a\xd1\xe9\xd4\x0bv\x04\xe2A\xc7\xee\r\x9a\xbf;Z\x98\xf9\x9c' != 'Test'
======================================================================
FAIL: testImportKey6 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsFast)
Verifies that the imported key is still a valid RSA pair
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 218, in testImportKey6
self.assertEqual(idem[0],b("Test"))
AssertionError: "\xa73\x81\xbbgNU\xcc\x13\x0f\xd5\xf5_\xa8*\xb9=\x93/h\x03?\xd2|\x0c,\x1d5\x11'$Qm3G\x8c" != 'Test'
======================================================================
FAIL: testImportKey7 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsFast)
Verify import of OpenSSH public key
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 223, in testImportKey7
self.assertEqual(key.n, self.n)
AssertionError: 371278587709692449235787696606069133789269383818951341241102767263088131264330008114053L != 10009650922319323069803079573274165970579185090127568126860948226706532161412468049945146845321486910355660772093076859316010597108858810676816273210356613L
======================================================================
FAIL: testImportKey8 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsFast)
Verify import of encrypted PrivateKeyInfo DER SEQUENCE
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 231, in testImportKey8
self.assertEqual(key.n, self.n)
AssertionError: 371278587709692449235787696606069133789269383818951341241102767263088131264330008114053L != 10009650922319323069803079573274165970579185090127568126860948226706532161412468049945146845321486910355660772093076859316010597108858810676816273210356613L
======================================================================
FAIL: testImportKey9 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsFast)
Verify import of unencrypted PrivateKeyInfo DER SEQUENCE
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 241, in testImportKey9
self.assertEqual(key.n, self.n)
AssertionError: 371278587709692449235787696606069133789269383818951341241102767263088131264330008114053L != 10009650922319323069803079573274165970579185090127568126860948226706532161412468049945146845321486910355660772093076859316010597108858810676816273210356613L
======================================================================
FAIL: testExportKey10 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsSlow)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 322, in testExportKey10
self.assertEqual(key.n, inkey.n)
AssertionError: 10009650922319323069803079573274165970579185090127568126860948226706532161412468049945146845321486910355660772093076859316010597108858810676816273210356613L != 371278587709692449235787696606069133789269383818951341241102767263088131264330008114053L
======================================================================
FAIL: testExportKey11 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsSlow)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 334, in testExportKey11
self.assertEqual(key.n, inkey.n)
AssertionError: 10009650922319323069803079573274165970579185090127568126860948226706532161412468049945146845321486910355660772093076859316010597108858810676816273210356613L != 371278587709692449235787696606069133789269383818951341241102767263088131264330008114053L
======================================================================
FAIL: testExportKey12 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsSlow)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 346, in testExportKey12
self.assertEqual(key.n, inkey.n)
AssertionError: 10009650922319323069803079573274165970579185090127568126860948226706532161412468049945146845321486910355660772093076859316010597108858810676816273210356613L != 371278587709692449235787696606069133789269383818951341241102767263088131264330008114053L
======================================================================
FAIL: testExportKey13 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsSlow)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 359, in testExportKey13
self.assertEqual(key.n, inkey.n)
AssertionError: 10009650922319323069803079573274165970579185090127568126860948226706532161412468049945146845321486910355660772093076859316010597108858810676816273210356613L != 371278587709692449235787696606069133789269383818951341241102767263088131264330008114053L
======================================================================
FAIL: testExportKey14 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsSlow)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 369, in testExportKey14
self.assertEqual(key.n, inkey.n)
AssertionError: 10009650922319323069803079573274165970579185090127568126860948226706532161412468049945146845321486910355660772093076859316010597108858810676816273210356613L != 371278587709692449235787696606069133789269383818951341241102767263088131264330008114053L
======================================================================
FAIL: testImportKey3bytes (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsSlow)
Verify import of RSAPrivateKey DER SEQUENCE, encoded with PEM as byte string
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 188, in testImportKey3bytes
self.assertEqual(key.n, self.n)
AssertionError: 371278587709692449235787696606069133789269383818951341241102767263088131264330008114053L != 10009650922319323069803079573274165970579185090127568126860948226706532161412468049945146845321486910355660772093076859316010597108858810676816273210356613L
======================================================================
FAIL: testImportKey3unicode (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsSlow)
Verify import of RSAPrivateKey DER SEQUENCE, encoded with PEM as unicode
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 178, in testImportKey3unicode
self.assertEqual(key.n, self.n)
AssertionError: 371278587709692449235787696606069133789269383818951341241102767263088131264330008114053L != 10009650922319323069803079573274165970579185090127568126860948226706532161412468049945146845321486910355660772093076859316010597108858810676816273210356613L
======================================================================
FAIL: testImportKey4bytes (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsSlow)
Verify import of SubjectPublicKeyInfo DER SEQUENCE, encoded with PEM as byte string
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 205, in testImportKey4bytes
self.assertEqual(key.n, self.n)
AssertionError: 371278587709692449235787696606069133789269383818951341241102767263088131264330008114053L != 10009650922319323069803079573274165970579185090127568126860948226706532161412468049945146845321486910355660772093076859316010597108858810676816273210356613L
======================================================================
FAIL: testImportKey4unicode (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsSlow)
Verify import of RSAPrivateKey DER SEQUENCE, encoded with PEM as unicode
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 198, in testImportKey4unicode
self.assertEqual(key.n, self.n)
AssertionError: 371278587709692449235787696606069133789269383818951341241102767263088131264330008114053L != 10009650922319323069803079573274165970579185090127568126860948226706532161412468049945146845321486910355660772093076859316010597108858810676816273210356613L
======================================================================
FAIL: testImportKey5 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsSlow)
Verifies that the imported key is still a valid RSA pair
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 212, in testImportKey5
self.assertEqual(idem[0],b("Test"))
AssertionError: "\x98\x02+\xd2\xd1*1r\xca'p~n\x9c\n\xd8\x14\x8abb\xaa\xf6b\x1b\xf6\x1d1u\x0b\x9c\xcf\xabD\x86\x0b\x1a" != 'Test'
======================================================================
FAIL: testImportKey6 (Crypto.SelfTest.PublicKey.test_import_RSA.ImportKeyTestsSlow)
Verifies that the imported key is still a valid RSA pair
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_import_RSA.py", line 218, in testImportKey6
self.assertEqual(idem[0],b("Test"))
AssertionError: '[\xe6\xce\xa8\xfcb\xc4`\xe9\xed\x19\x95\xe3\xcab/f\xa3\x03\x84\x1f\xddr\x1a\x1c_\xa0NX\xc6\xae\xb8N\x8d\xb5\xb6' != 'Test'
======================================================================
FAIL: test_generate_128 (Crypto.SelfTest.PublicKey.test_ElGamal.ElGamalTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_ElGamal.py", line 97, in test_generate_128
self._test_random_key(128)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_ElGamal.py", line 157, in _test_random_key
self._check_private_key(elgObj)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_ElGamal.py", line 172, in _check_private_key
self.assertEquals(pow(elgObj.g, elgObj.p-1, elgObj.p), 1)
AssertionError: 58599713408183695621282512533046239793L != 1
======================================================================
FAIL: test_generate_512 (Crypto.SelfTest.PublicKey.test_ElGamal.ElGamalTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_ElGamal.py", line 100, in test_generate_512
self._test_random_key(512)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_ElGamal.py", line 157, in _test_random_key
self._check_private_key(elgObj)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/PublicKey/test_ElGamal.py", line 172, in _check_private_key
self.assertEquals(pow(elgObj.g, elgObj.p-1, elgObj.p), 1)
AssertionError: 8780839129498785722965990495888003696894967652102036025429002132350651247856015835260471956823986599627978260556620854557928903816349359770940484063522571L != 1
======================================================================
FAIL: test_isPrime (Crypto.SelfTest.Util.test_number.MiscTests)
Util.number.isPrime
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/Util/test_number.py", line 264, in test_isPrime
self.assertEqual(number.isPrime(2L**1279-1), True)
AssertionError: False != True
======================================================================
FAIL: test_negative_number_roundtrip_mpzToLongObj_longObjToMPZ (Crypto.SelfTest.Util.test_number.FastmathTests)
Test that mpzToLongObj and longObjToMPZ (internal functions) roundtrip negative numbers correctly.
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/Util/test_number.py", line 292, in test_negative_number_roundtrip_mpzToLongObj_longObjToMPZ
self.assertEqual(n, k.n)
AssertionError: -100000000000000000000000000000000000L != 79204879465209060808716189696L
======================================================================
FAIL: testSignVerify (Crypto.SelfTest.Signature.test_pkcs1_15.PKCS1_15_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/Signature/test_pkcs1_15.py", line 207, in testSignVerify
self.failUnless(result)
AssertionError: False is not true
======================================================================
FAIL: testVerify1 (Crypto.SelfTest.Signature.test_pkcs1_15.PKCS1_15_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/Signature/test_pkcs1_15.py", line 194, in testVerify1
self.failUnless(result)
AssertionError: 0 is not true
======================================================================
FAIL: testVerify (Crypto.SelfTest.Signature.test_pkcs1_15.PKCS1_15_NoParams)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/Signature/test_pkcs1_15.py", line 234, in testVerify
self.failUnless(result)
AssertionError: 0 is not true
======================================================================
FAIL: testSignVerify (Crypto.SelfTest.Signature.test_pkcs1_pss.PKCS1_PSS_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/Signature/test_pkcs1_pss.py", line 406, in testSignVerify
self.failUnless(signer.verify(h, s))
AssertionError: False is not true
======================================================================
FAIL: testVerify1 (Crypto.SelfTest.Signature.test_pkcs1_pss.PKCS1_PSS_Tests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/Signature/test_pkcs1_pss.py", line 380, in testVerify1
self.failUnless(result)
AssertionError: False is not true
----------------------------------------------------------------------
Ran 1176 tests in 13.073s
FAILED (failures=89, errors=18)
Traceback (most recent call last):
File "app_main.py", line 72, in run_toplevel
File "setup.py", line 503, in <module>
core.setup(**kw)
File "/opt/pypy/lib-python/2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/opt/pypy/lib-python/2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/opt/pypy/lib-python/2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "setup.py", line 373, in run
SelfTest.run(module=moduleObj, verbosity=self.verbose, stream=sys.stdout, config=self.config)
File "build/lib.linux-x86_64-2.7/Crypto/SelfTest/__init__.py", line 76, in run
raise SelfTestError("Self-test failed", result)
SelfTestError: ('Self-test failed', <unittest.runner.TextTestResult run=1176 errors=18 failures=89>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment