diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-10-19 08:07:43 -0400 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-10-19 08:07:43 -0400 |
commit | aaf4e8bccd9cac827b5f740371feaa7faeebcb93 (patch) | |
tree | bc39fbf381f6d5e9b9f41f19f1cd562c945af96d | |
parent | 7c60ffc621320349f88cf36b12cd087d8bd9b6a3 (diff) | |
download | cryptography-aaf4e8bccd9cac827b5f740371feaa7faeebcb93.tar.gz cryptography-aaf4e8bccd9cac827b5f740371feaa7faeebcb93.tar.bz2 cryptography-aaf4e8bccd9cac827b5f740371feaa7faeebcb93.zip |
another test
-rw-r--r-- | tests/hazmat/backends/test_openssl.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index 85331595..3ccc54c8 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -557,6 +557,13 @@ class TestOpenSSLEllipticCurve(object): ec.ECDH(), ec.SECP256R1() ) + def test_elliptic_curve_exchange_unsupported_algorithm(self): + key = ec.generate_private_key(ec.SECP256R1(), backend=backend) + with raises_unsupported_algorithm( + _Reasons.UNSUPPORTED_EXCHANGE_ALGORITHM + ): + key.exchange(None, key.public_key()) + @pytest.mark.requires_backend_interface(interface=RSABackend) class TestRSAPEMSerialization(object): |