aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-12-24 22:42:15 -0700
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-12-24 22:42:15 -0700
commit30e409d73f846dbf5cc40c77656965b382356d3e (patch)
tree0999fa7792de8ed01bd40ecb9f3796a8e1ad2eb5 /tests
parent06f6a4e7b2e89e588c75c4bf755c1bd0563f9e28 (diff)
parentc360dee08d1661f5bb7a14da6f0e98f33804ff02 (diff)
downloadcryptography-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.py19
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):