diff options
Diffstat (limited to 'tests/hazmat/primitives/test_hmac_vectors.py')
-rw-r--r-- | tests/hazmat/primitives/test_hmac_vectors.py | 30 |
1 files changed, 9 insertions, 21 deletions
diff --git a/tests/hazmat/primitives/test_hmac_vectors.py b/tests/hazmat/primitives/test_hmac_vectors.py index 6ff71fe38..b39df1a75 100644 --- a/tests/hazmat/primitives/test_hmac_vectors.py +++ b/tests/hazmat/primitives/test_hmac_vectors.py @@ -24,9 +24,7 @@ class TestHMACMD5(object): test_hmac_md5 = generate_hmac_test( load_hash_vectors, "HMAC", - [ - "rfc-2202-md5.txt", - ], + ["rfc-2202-md5.txt"], hashes.MD5(), ) @@ -40,9 +38,7 @@ class TestHMACSHA1(object): test_hmac_sha1 = generate_hmac_test( load_hash_vectors, "HMAC", - [ - "rfc-2202-sha1.txt", - ], + ["rfc-2202-sha1.txt"], hashes.SHA1(), ) @@ -56,9 +52,7 @@ class TestHMACSHA224(object): test_hmac_sha224 = generate_hmac_test( load_hash_vectors, "HMAC", - [ - "rfc-4231-sha224.txt", - ], + ["rfc-4231-sha224.txt"], hashes.SHA224(), ) @@ -72,9 +66,7 @@ class TestHMACSHA256(object): test_hmac_sha256 = generate_hmac_test( load_hash_vectors, "HMAC", - [ - "rfc-4231-sha256.txt", - ], + ["rfc-4231-sha256.txt"], hashes.SHA256(), ) @@ -88,9 +80,7 @@ class TestHMACSHA384(object): test_hmac_sha384 = generate_hmac_test( load_hash_vectors, "HMAC", - [ - "rfc-4231-sha384.txt", - ], + ["rfc-4231-sha384.txt"], hashes.SHA384(), ) @@ -104,17 +94,15 @@ class TestHMACSHA512(object): test_hmac_sha512 = generate_hmac_test( load_hash_vectors, "HMAC", - [ - "rfc-4231-sha512.txt", - ], + ["rfc-4231-sha512.txt"], hashes.SHA512(), ) @pytest.mark.supported( - only_if=lambda backend: backend.hmac_supported(hashes.BLAKE2b( - digest_size=64 - )), + only_if=lambda backend: backend.hmac_supported( + hashes.BLAKE2b(digest_size=64) + ), skip_message="Does not support BLAKE2", ) @pytest.mark.requires_backend_interface(interface=HMACBackend) |