diff options
author | Ian Cordasco <graffatcolmingov@gmail.com> | 2015-06-24 22:00:26 -0500 |
---|---|---|
committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2015-06-24 22:00:26 -0500 |
commit | 8cdcdfc1bd11ee57b7f53c631af2f88e0861d168 (patch) | |
tree | 73d3d549bb09cbe69ca275938217c1bab4ea2254 /tests | |
parent | 13cdc7bf087dc017ca5cfdfc3c0afdfd99b7979b (diff) | |
download | cryptography-8cdcdfc1bd11ee57b7f53c631af2f88e0861d168.tar.gz cryptography-8cdcdfc1bd11ee57b7f53c631af2f88e0861d168.tar.bz2 cryptography-8cdcdfc1bd11ee57b7f53c631af2f88e0861d168.zip |
Use SECP256R1 instead of SECT283K1 in CSR tests
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([ |