aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/test_ec.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-02-12 00:01:53 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-02-12 00:01:53 -0600
commit3bc87ab21f7b599bfc18fc53966de3c521a25435 (patch)
treecaf4bc23e6f3cc0e991804bfc04056cfc40e0465 /tests/hazmat/primitives/test_ec.py
parentc39abdbca387fe923a410478af1abb37561a7220 (diff)
downloadcryptography-3bc87ab21f7b599bfc18fc53966de3c521a25435.tar.gz
cryptography-3bc87ab21f7b599bfc18fc53966de3c521a25435.tar.bz2
cryptography-3bc87ab21f7b599bfc18fc53966de3c521a25435.zip
move EC interfaces
Diffstat (limited to 'tests/hazmat/primitives/test_ec.py')
-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 fd7f7ec5..ea621ad6 100644
--- a/tests/hazmat/primitives/test_ec.py
+++ b/tests/hazmat/primitives/test_ec.py
@@ -11,7 +11,7 @@ import pytest
from cryptography import exceptions, utils
from cryptography.hazmat.backends.interfaces import EllipticCurveBackend
-from cryptography.hazmat.primitives import hashes, interfaces
+from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.asymmetric import ec
from cryptography.hazmat.primitives.asymmetric.utils import (
encode_rfc6979_signature
@@ -52,13 +52,13 @@ def _skip_curve_unsupported(backend, curve):
)
-@utils.register_interface(interfaces.EllipticCurve)
+@utils.register_interface(ec.EllipticCurve)
class DummyCurve(object):
name = "dummy-curve"
key_size = 1
-@utils.register_interface(interfaces.EllipticCurveSignatureAlgorithm)
+@utils.register_interface(ec.EllipticCurveSignatureAlgorithm)
class DummySignatureAlgorithm(object):
algorithm = None
@@ -149,7 +149,7 @@ class TestECWithNumbers(object):
).private_key(backend)
assert key
- if isinstance(key, interfaces.EllipticCurvePrivateKeyWithNumbers):
+ if isinstance(key, ec.EllipticCurvePrivateKeyWithNumbers):
priv_num = key.private_numbers()
assert priv_num.private_value == vector['d']
assert priv_num.public_numbers.x == vector['x']