From 9a09f9690890c4b6fa6d4d1625e78dcbaffbf734 Mon Sep 17 00:00:00 2001 From: David Benjamin Date: Mon, 8 Jul 2019 16:42:01 -0400 Subject: Fix some backend feature checks in tests (#4931) * Remove irrelevant DHBackend test conditions DHBackend provides functions for plain finite-field Diffie-Hellman. X25519 and X448 are their own algorithms, and Ed25519 and Ed448 aren't even Diffie-Hellman primitives. * Add missing backend support checks. Some new AES and EC tests did not check for whether the corresponding mode or curve was supported by the backend. * Add a DummyMode for coverage --- tests/wycheproof/test_eddsa.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'tests/wycheproof/test_eddsa.py') diff --git a/tests/wycheproof/test_eddsa.py b/tests/wycheproof/test_eddsa.py index 40cb49a3..5ae87e09 100644 --- a/tests/wycheproof/test_eddsa.py +++ b/tests/wycheproof/test_eddsa.py @@ -9,7 +9,6 @@ import binascii import pytest from cryptography.exceptions import InvalidSignature -from cryptography.hazmat.backends.interfaces import DHBackend from cryptography.hazmat.primitives.asymmetric.ed25519 import ( Ed25519PublicKey ) @@ -19,7 +18,6 @@ from cryptography.hazmat.primitives.asymmetric.ed25519 import ( only_if=lambda backend: backend.ed25519_supported(), skip_message="Requires OpenSSL with Ed25519 support" ) -@pytest.mark.requires_backend_interface(interface=DHBackend) @pytest.mark.wycheproof_tests( "eddsa_test.json", ) -- cgit v1.2.3