diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-12-24 22:42:15 -0700 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-12-24 22:42:15 -0700 |
commit | 30e409d73f846dbf5cc40c77656965b382356d3e (patch) | |
tree | 0999fa7792de8ed01bd40ecb9f3796a8e1ad2eb5 /tests | |
parent | 06f6a4e7b2e89e588c75c4bf755c1bd0563f9e28 (diff) | |
parent | c360dee08d1661f5bb7a14da6f0e98f33804ff02 (diff) | |
download | cryptography-30e409d73f846dbf5cc40c77656965b382356d3e.tar.gz cryptography-30e409d73f846dbf5cc40c77656965b382356d3e.tar.bz2 cryptography-30e409d73f846dbf5cc40c77656965b382356d3e.zip |
Merge pull request #1577 from alex/remove-deprecated
Removed some deprecated code
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hazmat/primitives/test_ec.py | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tests/hazmat/primitives/test_ec.py b/tests/hazmat/primitives/test_ec.py index 84c447c1..fd7f7ec5 100644 --- a/tests/hazmat/primitives/test_ec.py +++ b/tests/hazmat/primitives/test_ec.py @@ -63,14 +63,6 @@ class DummySignatureAlgorithm(object): algorithm = None -class DeprecatedDummyECBackend(object): - def elliptic_curve_private_key_from_numbers(self, numbers): - return b"private_key" - - def elliptic_curve_public_key_from_numbers(self, numbers): - return b"public_key" - - @pytest.mark.requires_backend_interface(interface=EllipticCurveBackend) def test_skip_curve_unsupported(backend): with pytest.raises(pytest.skip.Exception): @@ -350,17 +342,6 @@ class TestECDSAVectors(object): else: verifier.verify() - def test_deprecated_public_private_key_load(self): - b = DeprecatedDummyECBackend() - pub_numbers = ec.EllipticCurvePublicNumbers( - 2, - 3, - ec.SECT283K1() - ) - numbers = ec.EllipticCurvePrivateNumbers(1, pub_numbers) - assert numbers.private_key(b) == b"private_key" - assert pub_numbers.public_key(b) == b"public_key" - class TestECNumbersEquality(object): def test_public_numbers_eq(self): |