diff options
author | Aviv Palivoda <palaviv@gmail.com> | 2017-06-24 18:12:26 +0300 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2017-06-24 11:12:26 -0400 |
commit | 1cff0c08cfc7385f46a188f13f08ca5a87f85b48 (patch) | |
tree | 08666ae5473551e75fd6c85dd38be0f62e449dcf /tests/hazmat/primitives/test_dh.py | |
parent | 3dccf6a87de73f7e3f30f56e5fc841dfe8949bba (diff) | |
download | cryptography-1cff0c08cfc7385f46a188f13f08ca5a87f85b48.tar.gz cryptography-1cff0c08cfc7385f46a188f13f08ca5a87f85b48.tar.bz2 cryptography-1cff0c08cfc7385f46a188f13f08ca5a87f85b48.zip |
Add DERSerializationBackend to test_dh serialization tests (#3717)
Diffstat (limited to 'tests/hazmat/primitives/test_dh.py')
-rw-r--r-- | tests/hazmat/primitives/test_dh.py | 4 |
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( |