diff options
-rw-r--r-- | tests/hazmat/backends/test_openssl.py | 2 | ||||
-rw-r--r-- | tests/test_x509.py | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index 4275b593..6c741c89 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -30,6 +30,7 @@ from cryptography.hazmat.primitives.ciphers.modes import CBC, CTR, Mode from ..primitives.fixtures_dsa import DSA_KEY_2048 from ..primitives.fixtures_rsa import RSA_KEY_2048, RSA_KEY_512 +from ..primitives.test_ec import _skip_curve_unsupported from ...utils import load_vectors_from_file, raises_unsupported_algorithm @@ -470,6 +471,7 @@ class TestOpenSSLCreateX509CSR(object): reason="Requires an older OpenSSL. Must be < 1.0.1" ) def test_unsupported_ec_keys(self): + _skip_curve_unsupported(backend, ec.SECT283K1()) private_key = ec.generate_private_key(ec.SECT283K1(), backend) with pytest.raises(NotImplementedError): diff --git a/tests/test_x509.py b/tests/test_x509.py index 5d6f174c..fb7f17d4 100644 --- a/tests/test_x509.py +++ b/tests/test_x509.py @@ -768,6 +768,7 @@ class TestCertificateSigningRequestBuilder(object): if backend._lib.OPENSSL_VERSION_NUMBER < 0x10001000: pytest.skip("Requires a newer OpenSSL. Must be >= 1.0.1") + _skip_curve_unsupported(backend, ec.SECT283K1()) private_key = ec.generate_private_key(ec.SECT283K1(), backend) request = x509.CertificateSigningRequestBuilder().subject_name( |