summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2020-07-26 21:36:39 -0500
committerGitHub <noreply@github.com>2020-07-26 22:36:39 -0400
commitbc609feef8bfd472bbf3cefad2a18a1761af9751 (patch)
treec227f25946bad16ad2b6f875f8b8511da08ab0a8 /tests
parent25c3bb49552bdf61a351cf5df62650e7e946d78b (diff)
downloadcryptography-bc609feef8bfd472bbf3cefad2a18a1761af9751.tar.gz
simplify more errors (#5353)
the quest to stop using unstable openssl error codes continues
Diffstat (limited to 'tests')
-rw-r--r--tests/hazmat/primitives/test_rsa.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/hazmat/primitives/test_rsa.py b/tests/hazmat/primitives/test_rsa.py
index 530f64888..fc806c9ef 100644
--- a/tests/hazmat/primitives/test_rsa.py
+++ b/tests/hazmat/primitives/test_rsa.py
@@ -1583,9 +1583,9 @@ class TestRSADecryption(object):
skip_message="Does not support OAEP.",
)
def test_invalid_oaep_decryption(self, backend):
- # More recent versions of OpenSSL may raise RSA_R_OAEP_DECODING_ERROR
- # This test triggers it and confirms that we properly handle it. Other
- # backends should also return the proper ValueError.
+ # More recent versions of OpenSSL may raise different errors.
+ # This test triggers a failure and confirms that we properly handle
+ # it.
private_key = RSA_KEY_512.private_key(backend)
ciphertext = private_key.public_key().encrypt(