diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hazmat/backends/test_openssl.py | 4 | ||||
-rw-r--r-- | tests/test_x509.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/hazmat/backends/test_openssl.py b/tests/hazmat/backends/test_openssl.py index 6c741c89..34fff277 100644 --- a/tests/hazmat/backends/test_openssl.py +++ b/tests/hazmat/backends/test_openssl.py @@ -471,8 +471,8 @@ 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) + _skip_curve_unsupported(backend, ec.SECP256R1()) + private_key = ec.generate_private_key(ec.SECP256R1(), backend) with pytest.raises(NotImplementedError): backend.create_x509_csr(object(), private_key, hashes.SHA1()) diff --git a/tests/test_x509.py b/tests/test_x509.py index 5be51773..429f2d25 100644 --- a/tests/test_x509.py +++ b/tests/test_x509.py @@ -800,8 +800,8 @@ 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) + _skip_curve_unsupported(backend, ec.SECP256R1()) + private_key = ec.generate_private_key(ec.SECP256R1(), backend) request = x509.CertificateSigningRequestBuilder().subject_name( x509.Name([ |