diff options
author | Jim Carroll <jim@caroll.com> | 2016-07-28 14:43:01 -0400 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2017-09-15 14:42:51 +0200 |
commit | 7527cb115bc197895cd121220f4489fb44f4c9d9 (patch) | |
tree | f6cab6cca5a6fe0c13ac2b5d46eff7275346e975 /tests/test_rsa.py | |
parent | e3070bb00ea093efcd36ea3e8062ab86817c928a (diff) | |
download | m2crypto-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.py | 6 |
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) |