summaryrefslogtreecommitdiff
path: root/tests/test_rsa.py
diff options
context:
space:
mode:
authorJim Carroll <jim@caroll.com>2016-07-28 14:43:01 -0400
committerMatěj Cepl <mcepl@cepl.eu>2017-09-15 14:42:51 +0200
commit7527cb115bc197895cd121220f4489fb44f4c9d9 (patch)
treef6cab6cca5a6fe0c13ac2b5d46eff7275346e975 /tests/test_rsa.py
parente3070bb00ea093efcd36ea3e8062ab86817c928a (diff)
downloadm2crypto-7527cb115bc197895cd121220f4489fb44f4c9d9.tar.gz
Migrated to m2.rsa_set_en_bin() and m2.rsa_set_en()
Diffstat (limited to 'tests/test_rsa.py')
-rw-r--r--tests/test_rsa.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_rsa.py b/tests/test_rsa.py
index 264be37..a4ad8de 100644
--- a/tests/test_rsa.py
+++ b/tests/test_rsa.py
@@ -176,10 +176,10 @@ class RSATestCase(unittest.TestCase):
def test_set_bn(self):
rsa = RSA.load_pub_key(self.pubkey)
- self.assertIsNone(m2.rsa_set_e(rsa.rsa,
- b'\000\000\000\003\001\000\001'))
with self.assertRaises(RSA.RSAError):
- m2.rsa_set_e(rsa.rsa, b'\000\000\000\003\001')
+ m2.rsa_set_en(rsa.rsa,
+ b'\000\000\000\003\001\000\001',
+ b'\000\000\000\003\001')
def test_newpub(self):
old = RSA.load_pub_key(self.pubkey)