aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/backends
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hazmat/backends')
-rw-r--r--tests/hazmat/backends/test_openssl.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py
index 545ca6c2..37633d6c 100644
--- a/tests/hazmat/backends/test_openssl.py
+++ b/tests/hazmat/backends/test_openssl.py
@@ -468,8 +468,10 @@ class TestOpenSSLRSA(object):
)
)
+ private_key_alt = RSA_KEY_512_ALT.private_key(backend)
+
with pytest.raises(ValueError):
- RSA_KEY_512_ALT.private_key(backend).decrypt(
+ private_key_alt.decrypt(
ciphertext,
padding.OAEP(
mgf=padding.MGF1(algorithm=hashes.SHA1()),