diff options
author | Alex Stapleton <alexs@prol.etari.at> | 2015-02-12 14:21:52 +0000 |
---|---|---|
committer | Alex Stapleton <alexs@prol.etari.at> | 2015-02-12 14:21:52 +0000 |
commit | b41c80b0cfa4fd9a14016c81557776cc01feedba (patch) | |
tree | be07a4e4aad4c57715410ea680a7008a841ee8ef /tests | |
parent | dff7e721394ea77e0ed61e320dbefb5fe4f954a3 (diff) | |
parent | fb88e187c1fcc9992923c31d476a3c705ed1b1e4 (diff) | |
download | cryptography-b41c80b0cfa4fd9a14016c81557776cc01feedba.tar.gz cryptography-b41c80b0cfa4fd9a14016c81557776cc01feedba.tar.bz2 cryptography-b41c80b0cfa4fd9a14016c81557776cc01feedba.zip |
Merge pull request #1652 from reaperhulk/move-ec
Move EC interface definitions
Diffstat (limited to 'tests')
-rw-r--r-- | tests/hazmat/primitives/test_ec.py | 8 |
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'] |