From d4bde9ce6668bb019f9c9db4cd26280e6cf7fa21 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sat, 9 Sep 2017 07:03:50 +0800 Subject: 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 --- tests/hazmat/backends/test_openssl.py | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'tests/hazmat/backends') 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): -- cgit v1.2.3