diff options
-rw-r--r-- | tests/hazmat/primitives/test_hkdf.py | 2 | ||||
-rw-r--r-- | tests/hazmat/primitives/test_hkdf_vectors.py | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/hazmat/primitives/test_hkdf.py b/tests/hazmat/primitives/test_hkdf.py index 0497c66b..e3e2a9df 100644 --- a/tests/hazmat/primitives/test_hkdf.py +++ b/tests/hazmat/primitives/test_hkdf.py @@ -22,7 +22,7 @@ from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.kdf.hkdf import HKDF -@pytest.mark.hash +@pytest.mark.hmac class TestHKDF(object): def test_length_limit(self, backend): big_length = 255 * (hashes.SHA256().digest_size // 8) + 1 diff --git a/tests/hazmat/primitives/test_hkdf_vectors.py b/tests/hazmat/primitives/test_hkdf_vectors.py index 5af4c14e..1e67234f 100644 --- a/tests/hazmat/primitives/test_hkdf_vectors.py +++ b/tests/hazmat/primitives/test_hkdf_vectors.py @@ -24,10 +24,10 @@ from ...utils import load_nist_vectors @pytest.mark.supported( - only_if=lambda backend: backend.hash_supported(hashes.SHA1()), + only_if=lambda backend: backend.hmac_supported(hashes.SHA1()), skip_message="Does not support SHA1." ) -@pytest.mark.hash +@pytest.mark.hmac class TestHKDFSHA1(object): test_HKDFSHA1 = generate_hkdf_test( load_nist_vectors, @@ -38,10 +38,10 @@ class TestHKDFSHA1(object): @pytest.mark.supported( - only_if=lambda backend: backend.hash_supported(hashes.SHA256()), + only_if=lambda backend: backend.hmac_supported(hashes.SHA256()), skip_message="Does not support SHA256." ) -@pytest.mark.hash +@pytest.mark.hmac class TestHKDFSHA256(object): test_HKDFSHA1 = generate_hkdf_test( load_nist_vectors, |