summaryrefslogtreecommitdiff
path: root/tests/test_rsa.py
diff options
context:
space:
mode:
authorHeikki Toivonen <heikki@heikkitoivonen.net>2009-04-08 04:31:07 +0000
committerHeikki Toivonen <heikki@heikkitoivonen.net>2009-04-08 04:31:07 +0000
commit870c3c5705b5514f9196d7b71ec612c57f7cec3d (patch)
treee8d0f53e2bb3cdbf95933859536342357352ebac /tests/test_rsa.py
parentf88f47d735a262a79ea07a559c7957ea778f3a91 (diff)
downloadm2crypto-870c3c5705b5514f9196d7b71ec612c57f7cec3d.tar.gz
Bug 12742, let's see if we can get rid of assertions that stop tests prematurely on some RHEL machines where OpenSSL was compiled in FIPS mode.
git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@682 2715db39-9adf-0310-9c64-84f055769b4b
Diffstat (limited to 'tests/test_rsa.py')
-rw-r--r--tests/test_rsa.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_rsa.py b/tests/test_rsa.py
index 65a5d36..4936a4b 100644
--- a/tests/test_rsa.py
+++ b/tests/test_rsa.py
@@ -64,14 +64,14 @@ class RSATestCase(unittest.TestCase):
assert rsa.check_key() == 1
def test_keygen(self):
- rsa = RSA.gen_key(256, 65537, self.gen_callback)
- assert len(rsa) == 256
+ rsa = RSA.gen_key(512, 65537, self.gen_callback)
+ assert len(rsa) == 512
assert rsa.e == '\000\000\000\003\001\000\001' # aka 65537 aka 0xf4
assert rsa.check_key() == 1
def test_keygen_bad_cb(self):
- rsa = RSA.gen_key(256, 65537, self.gen2_callback)
- assert len(rsa) == 256
+ rsa = RSA.gen_key(512, 65537, self.gen2_callback)
+ assert len(rsa) == 512
assert rsa.e == '\000\000\000\003\001\000\001' # aka 65537 aka 0xf4
assert rsa.check_key() == 1