aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-02-26 23:39:37 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-02-26 23:39:37 -0400
commitfef1fbd1187b7fc80589553fb192210dd15a3a1c (patch)
tree4824417364e944f62ee506ebc157d2c5567c595c /tests
parenta0c157f467536b556481f7c2ee950612f4f8f7e7 (diff)
downloadcryptography-fef1fbd1187b7fc80589553fb192210dd15a3a1c.tar.gz
cryptography-fef1fbd1187b7fc80589553fb192210dd15a3a1c.tar.bz2
cryptography-fef1fbd1187b7fc80589553fb192210dd15a3a1c.zip
address some review comments
Diffstat (limited to 'tests')
-rw-r--r--tests/hazmat/primitives/test_rsa.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/hazmat/primitives/test_rsa.py b/tests/hazmat/primitives/test_rsa.py
index 649165b8..79323265 100644
--- a/tests/hazmat/primitives/test_rsa.py
+++ b/tests/hazmat/primitives/test_rsa.py
@@ -496,8 +496,12 @@ class TestRSAVerification(object):
key_size=512,
backend=backend
)
- public_key = private_key.public_key()
- public_key._modulus += 2
+ private_key2 = rsa.RSAPrivateKey.generate(
+ public_exponent=65537,
+ key_size=512,
+ backend=backend
+ )
+ public_key = private_key2.public_key()
signer = private_key.signer(padding.PKCS1v15(), hashes.SHA1(), backend)
signer.update(b"sign me")
signature = signer.finalize()