aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/test_hmac_vectors.py
diff options
context:
space:
mode:
authorDavid Reid <dreid@dreid.org>2013-10-31 11:51:08 -0700
committerDavid Reid <dreid@dreid.org>2013-10-31 11:51:08 -0700
commitfba0cd7a3a9b90909545326fad4e370ba4e1f320 (patch)
tree69badb306d76b9b525d5ab03efc56114637342b9 /tests/hazmat/primitives/test_hmac_vectors.py
parent71102d8a98b940d1d70fd47f7d87989c07650ee2 (diff)
parent6adaf277a100412826af6c8cdd31753832c5609a (diff)
downloadcryptography-fba0cd7a3a9b90909545326fad4e370ba4e1f320.tar.gz
cryptography-fba0cd7a3a9b90909545326fad4e370ba4e1f320.tar.bz2
cryptography-fba0cd7a3a9b90909545326fad4e370ba4e1f320.zip
Merge branch 'master' into primitive-hashes
Diffstat (limited to 'tests/hazmat/primitives/test_hmac_vectors.py')
-rw-r--r--tests/hazmat/primitives/test_hmac_vectors.py16
1 files changed, 7 insertions, 9 deletions
diff --git a/tests/hazmat/primitives/test_hmac_vectors.py b/tests/hazmat/primitives/test_hmac_vectors.py
index 81fe4d3e..27b45012 100644
--- a/tests/hazmat/primitives/test_hmac_vectors.py
+++ b/tests/hazmat/primitives/test_hmac_vectors.py
@@ -13,8 +13,6 @@
from __future__ import absolute_import, division, print_function
-import os
-
from cryptography.hazmat.primitives import hashes
from .utils import generate_hmac_test
@@ -24,7 +22,7 @@ from ...utils import load_hash_vectors_from_file
class TestHMAC_MD5(object):
test_hmac_md5 = generate_hmac_test(
load_hash_vectors_from_file,
- os.path.join("RFC", "HMAC"),
+ "HMAC",
[
"rfc-2202-md5.txt",
],
@@ -37,7 +35,7 @@ class TestHMAC_MD5(object):
class TestHMAC_SHA1(object):
test_hmac_sha1 = generate_hmac_test(
load_hash_vectors_from_file,
- os.path.join("RFC", "HMAC"),
+ "HMAC",
[
"rfc-2202-sha1.txt",
],
@@ -50,7 +48,7 @@ class TestHMAC_SHA1(object):
class TestHMAC_SHA224(object):
test_hmac_sha224 = generate_hmac_test(
load_hash_vectors_from_file,
- os.path.join("RFC", "HMAC"),
+ "HMAC",
[
"rfc-4231-sha224.txt",
],
@@ -63,7 +61,7 @@ class TestHMAC_SHA224(object):
class TestHMAC_SHA256(object):
test_hmac_sha256 = generate_hmac_test(
load_hash_vectors_from_file,
- os.path.join("RFC", "HMAC"),
+ "HMAC",
[
"rfc-4231-sha256.txt",
],
@@ -76,7 +74,7 @@ class TestHMAC_SHA256(object):
class TestHMAC_SHA384(object):
test_hmac_sha384 = generate_hmac_test(
load_hash_vectors_from_file,
- os.path.join("RFC", "HMAC"),
+ "HMAC",
[
"rfc-4231-sha384.txt",
],
@@ -89,7 +87,7 @@ class TestHMAC_SHA384(object):
class TestHMAC_SHA512(object):
test_hmac_sha512 = generate_hmac_test(
load_hash_vectors_from_file,
- os.path.join("RFC", "HMAC"),
+ "HMAC",
[
"rfc-4231-sha512.txt",
],
@@ -102,7 +100,7 @@ class TestHMAC_SHA512(object):
class TestHMAC_RIPEMD160(object):
test_hmac_ripemd160 = generate_hmac_test(
load_hash_vectors_from_file,
- os.path.join("RFC", "HMAC"),
+ "HMAC",
[
"rfc-2286-ripemd160.txt",
],