aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hazmat')
-rw-r--r--tests/hazmat/primitives/test_rsa.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hazmat/primitives/test_rsa.py b/tests/hazmat/primitives/test_rsa.py
index 74a0c111..69fd2933 100644
--- a/tests/hazmat/primitives/test_rsa.py
+++ b/tests/hazmat/primitives/test_rsa.py
@@ -1271,7 +1271,7 @@ class TestRSADecryption(object):
key_size=512,
backend=backend
)
- with pytest.raises(exceptions.InvalidDecryption):
+ with pytest.raises(ValueError):
private_key.decrypt(
b"\x00" * 64,
padding.PKCS1v15(),
@@ -1301,7 +1301,7 @@ class TestRSADecryption(object):
b"50b4c14136bd198c2f3c3ed243fce036e168d56517984a263cd66492b80804f1"
b"69d210f2b9bdfb48b12f9ea05009c77da257cc600ccefe3a6283789d8ea0"
)
- with pytest.raises(exceptions.InvalidDecryption):
+ with pytest.raises(ValueError):
private_key.decrypt(
ct,
padding.PKCS1v15(),