diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2017-09-09 07:03:50 +0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2017-09-08 19:03:50 -0400 |
commit | d4bde9ce6668bb019f9c9db4cd26280e6cf7fa21 (patch) | |
tree | 767e7044ffb9b2fb92c425300b0388f3980fe418 /tests/hazmat/backends/test_openssl.py | |
parent | 52067bc300ec37c1b4a4b889fd7828600f5b9ce1 (diff) | |
download | cryptography-d4bde9ce6668bb019f9c9db4cd26280e6cf7fa21.tar.gz cryptography-d4bde9ce6668bb019f9c9db4cd26280e6cf7fa21.tar.bz2 cryptography-d4bde9ce6668bb019f9c9db4cd26280e6cf7fa21.zip |
RSA OAEP label support for OpenSSL 1.0.2+ (#3897)
* RSA OAEP label support for OpenSSL 1.0.2+
* changelog
* move around tests, address review feedback, use backend supported method
* unsupported padding catches this now
Diffstat (limited to 'tests/hazmat/backends/test_openssl.py')
-rw-r--r-- | tests/hazmat/backends/test_openssl.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index 3a847cd2..40e92853 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -422,18 +422,6 @@ class TestOpenSSLRSA(object): ) ) - def test_unsupported_oaep_label_decrypt(self): - private_key = RSA_KEY_512.private_key(backend) - with pytest.raises(ValueError): - private_key.decrypt( - b"0" * 64, - padding.OAEP( - mgf=padding.MGF1(algorithm=hashes.SHA1()), - algorithm=hashes.SHA1(), - label=b"label" - ) - ) - class TestOpenSSLCMAC(object): def test_unsupported_cipher(self): |