diff options
author | Peter Hamilton <peter.hamilton@jhuapl.edu> | 2015-10-30 08:11:22 -0400 |
---|---|---|
committer | Peter Hamilton <peter.hamilton@jhuapl.edu> | 2015-10-30 08:11:22 -0400 |
commit | 1f6890e2264e9d608c2966dee88960f9806f70f1 (patch) | |
tree | e3ece7fceef0d44db7326553c02e989b463e89d4 /tests/test_x509.py | |
parent | f79a07a2ce4a8c858a18da0b47164a246aceb3b6 (diff) | |
download | cryptography-1f6890e2264e9d608c2966dee88960f9806f70f1.tar.gz cryptography-1f6890e2264e9d608c2966dee88960f9806f70f1.tar.bz2 cryptography-1f6890e2264e9d608c2966dee88960f9806f70f1.zip |
Adding test usage for elliptic curve fixtures
This change enables test coverage for the elliptic curve fixtures by
adding elliptic curve fixtures to an x509 test case.
Diffstat (limited to 'tests/test_x509.py')
-rw-r--r-- | tests/test_x509.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_x509.py b/tests/test_x509.py index 4072ef15..f9791fe2 100644 --- a/tests/test_x509.py +++ b/tests/test_x509.py @@ -30,6 +30,7 @@ from cryptography.x509.oid import ( from .hazmat.primitives.fixtures_dsa import DSA_KEY_2048 from .hazmat.primitives.fixtures_rsa import RSA_KEY_2048, RSA_KEY_512 +from .hazmat.primitives.fixtures_ec import EC_KEY_SECP192R1, EC_KEY_SECT163K1 from .hazmat.primitives.test_ec import _skip_curve_unsupported from .utils import load_vectors_from_file @@ -1088,8 +1089,8 @@ class TestRSACertificateRequest(object): ] def test_build_cert_printable_string_country_name(self, backend): - issuer_private_key = RSA_KEY_2048.private_key(backend) - subject_private_key = RSA_KEY_2048.private_key(backend) + issuer_private_key = EC_KEY_SECP192R1.private_key(backend) + subject_private_key = EC_KEY_SECT163K1.private_key(backend) not_valid_before = datetime.datetime(2002, 1, 1, 12, 1) not_valid_after = datetime.datetime(2030, 12, 31, 8, 30) |