aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/test_serialization.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-09-24 16:24:21 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-09-26 16:02:36 -0500
commit84fc4e01afaae95d5a92703b045a37183be27988 (patch)
treec5c73b7078e9431120264e6ace63d375c3435c44 /tests/hazmat/primitives/test_serialization.py
parent58f63ed781b73478ee3fe60ebe1cfdfd85df5186 (diff)
downloadcryptography-84fc4e01afaae95d5a92703b045a37183be27988.tar.gz
cryptography-84fc4e01afaae95d5a92703b045a37183be27988.tar.bz2
cryptography-84fc4e01afaae95d5a92703b045a37183be27988.zip
Process curve name when loading EC keys. Fixes #1336
Diffstat (limited to 'tests/hazmat/primitives/test_serialization.py')
-rw-r--r--tests/hazmat/primitives/test_serialization.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/hazmat/primitives/test_serialization.py b/tests/hazmat/primitives/test_serialization.py
index 8405f4b2..06997491 100644
--- a/tests/hazmat/primitives/test_serialization.py
+++ b/tests/hazmat/primitives/test_serialization.py
@@ -412,6 +412,8 @@ class TestPKCS8Serialization(object):
)
assert key
assert isinstance(key, interfaces.EllipticCurvePrivateKey)
+ assert key.curve.name == "secp256r1"
+ assert key.curve.key_size == 256
def test_unused_password(self, backend):
key_file = os.path.join(