diff options
author | David Reid <dreid@dreid.org> | 2014-06-22 16:09:34 -0700 |
---|---|---|
committer | David Reid <dreid@dreid.org> | 2014-06-22 16:09:34 -0700 |
commit | 41a35e1f4ec3dad0761b5e2c880eeab6d81b5cf4 (patch) | |
tree | 8455afef8c499c4ec8626e58e27f30a030e3e9c5 /tests/hazmat/primitives/test_serialization.py | |
parent | f1194546e509321edfef9eecf3aa6e62fd7d9310 (diff) | |
parent | 33bdf0fabd90e3a73138cb3f8acd929328a152aa (diff) | |
download | cryptography-41a35e1f4ec3dad0761b5e2c880eeab6d81b5cf4.tar.gz cryptography-41a35e1f4ec3dad0761b5e2c880eeab6d81b5cf4.tar.bz2 cryptography-41a35e1f4ec3dad0761b5e2c880eeab6d81b5cf4.zip |
Merge pull request #1155 from reaperhulk/fix-1111
modify RSA numbers loading to match elliptic curve
Diffstat (limited to 'tests/hazmat/primitives/test_serialization.py')
-rw-r--r-- | tests/hazmat/primitives/test_serialization.py | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/tests/hazmat/primitives/test_serialization.py b/tests/hazmat/primitives/test_serialization.py index ae990b64..8a90b30e 100644 --- a/tests/hazmat/primitives/test_serialization.py +++ b/tests/hazmat/primitives/test_serialization.py @@ -23,13 +23,9 @@ from cryptography.exceptions import _Reasons from cryptography.hazmat.primitives import interfaces from cryptography.hazmat.primitives.asymmetric import dsa from cryptography.hazmat.primitives.serialization import ( - load_pem_pkcs8_private_key, - load_pem_traditional_openssl_private_key, - load_rsa_private_numbers, - load_rsa_public_numbers + load_pem_pkcs8_private_key, load_pem_traditional_openssl_private_key ) -from .fixtures_rsa import RSA_KEY_1024 from .utils import _check_rsa_private_numbers, load_vectors_from_file from ...utils import raises_unsupported_algorithm @@ -553,18 +549,3 @@ class TestPKCS8Serialisation(object): pemfile.read().encode(), password, backend ) ) - - -@pytest.mark.rsa -class TestLoadRSANumbers(object): - def test_load_private_numbers(self, backend): - private_key = load_rsa_private_numbers(RSA_KEY_1024, backend) - assert private_key - assert private_key.private_numbers() - - def test_load_public_numbers(self, backend): - public_key = load_rsa_public_numbers( - RSA_KEY_1024.public_numbers, backend - ) - assert public_key - assert public_key.public_numbers() |