aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorAviv Palivoda <palaviv@gmail.com>2017-06-24 18:12:26 +0300
committerAlex Gaynor <alex.gaynor@gmail.com>2017-06-24 11:12:26 -0400
commit1cff0c08cfc7385f46a188f13f08ca5a87f85b48 (patch)
tree08666ae5473551e75fd6c85dd38be0f62e449dcf /tests
parent3dccf6a87de73f7e3f30f56e5fc841dfe8949bba (diff)
downloadcryptography-1cff0c08cfc7385f46a188f13f08ca5a87f85b48.tar.gz
cryptography-1cff0c08cfc7385f46a188f13f08ca5a87f85b48.tar.bz2
cryptography-1cff0c08cfc7385f46a188f13f08ca5a87f85b48.zip
Add DERSerializationBackend to test_dh serialization tests (#3717)
Diffstat (limited to 'tests')
-rw-r--r--tests/hazmat/primitives/test_dh.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/hazmat/primitives/test_dh.py b/tests/hazmat/primitives/test_dh.py
index bdc592e9..c351e5df 100644
--- a/tests/hazmat/primitives/test_dh.py
+++ b/tests/hazmat/primitives/test_dh.py
@@ -9,7 +9,7 @@ import os
import pytest
from cryptography.hazmat.backends.interfaces import (
- DHBackend, PEMSerializationBackend)
+ DERSerializationBackend, DHBackend, PEMSerializationBackend)
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric import dh
from cryptography.utils import bit_length, int_from_bytes
@@ -371,6 +371,7 @@ class TestDH(object):
@pytest.mark.requires_backend_interface(interface=DHBackend)
@pytest.mark.requires_backend_interface(interface=PEMSerializationBackend)
+@pytest.mark.requires_backend_interface(interface=DERSerializationBackend)
class TestDHPrivateKeySerialization(object):
@pytest.mark.parametrize(
@@ -540,6 +541,7 @@ class TestDHPrivateKeySerialization(object):
@pytest.mark.requires_backend_interface(interface=DHBackend)
@pytest.mark.requires_backend_interface(interface=PEMSerializationBackend)
+@pytest.mark.requires_backend_interface(interface=DERSerializationBackend)
class TestDHPublicKeySerialization(object):
@pytest.mark.parametrize(