aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-09-25 07:40:24 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-09-26 16:02:37 -0500
commitfc5f4f97c52b07f0345efd11b03b7996ff1168d6 (patch)
tree4bf12245db600fcf6484f45942c75f8b29f783c1 /tests/hazmat/primitives
parentc5e43429c26dd1b1baddeec9fddf3cb5d98bcfc1 (diff)
downloadcryptography-fc5f4f97c52b07f0345efd11b03b7996ff1168d6.tar.gz
cryptography-fc5f4f97c52b07f0345efd11b03b7996ff1168d6.tar.bz2
cryptography-fc5f4f97c52b07f0345efd11b03b7996ff1168d6.zip
CURVE_TYPES back to private, removed unneeded point creation
Diffstat (limited to 'tests/hazmat/primitives')
-rw-r--r--tests/hazmat/primitives/test_ec.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/hazmat/primitives/test_ec.py b/tests/hazmat/primitives/test_ec.py
index 84a25868..65461f70 100644
--- a/tests/hazmat/primitives/test_ec.py
+++ b/tests/hazmat/primitives/test_ec.py
@@ -142,7 +142,7 @@ class TestECDSAVectors(object):
))
)
def test_signing_with_example_keys(self, backend, vector, hash_type):
- curve_type = ec.CURVE_TYPES[vector['curve']]
+ curve_type = ec._CURVE_TYPES[vector['curve']]
_skip_ecdsa_vector(backend, curve_type, hash_type)
@@ -168,7 +168,7 @@ class TestECDSAVectors(object):
verifier.verify()
@pytest.mark.parametrize(
- "curve", ec.CURVE_TYPES.values()
+ "curve", ec._CURVE_TYPES.values()
)
def test_generate_vector_curves(self, backend, curve):
_skip_curve_unsupported(backend, curve())
@@ -224,7 +224,7 @@ class TestECDSAVectors(object):
)
def test_signatures(self, backend, vector):
hash_type = _HASH_TYPES[vector['digest_algorithm']]
- curve_type = ec.CURVE_TYPES[vector['curve']]
+ curve_type = ec._CURVE_TYPES[vector['curve']]
_skip_ecdsa_vector(backend, curve_type, hash_type)
@@ -256,7 +256,7 @@ class TestECDSAVectors(object):
)
def test_signature_failures(self, backend, vector):
hash_type = _HASH_TYPES[vector['digest_algorithm']]
- curve_type = ec.CURVE_TYPES[vector['curve']]
+ curve_type = ec._CURVE_TYPES[vector['curve']]
_skip_ecdsa_vector(backend, curve_type, hash_type)