aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/utils.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2016-05-29 22:37:33 -0500
committerAlex Gaynor <alex.gaynor@gmail.com>2016-05-29 23:37:33 -0400
commitcb0fa2e323fde10d5fa61bcc32d87a567690e34a (patch)
treea95dbfaf1d559021ad350b0eff39bb4b139b0d02 /tests/hazmat/primitives/utils.py
parent6d7fe00c7066d8d474981b21cdadb16f021d3e6a (diff)
downloadcryptography-cb0fa2e323fde10d5fa61bcc32d87a567690e34a.tar.gz
cryptography-cb0fa2e323fde10d5fa61bcc32d87a567690e34a.tar.bz2
cryptography-cb0fa2e323fde10d5fa61bcc32d87a567690e34a.zip
KBKDF cleanup (#2929)
* unicode characters make everything angry * changelog entry and make skip msgs more informative * typo fix
Diffstat (limited to 'tests/hazmat/primitives/utils.py')
-rw-r--r--tests/hazmat/primitives/utils.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/hazmat/primitives/utils.py b/tests/hazmat/primitives/utils.py
index e45466d8..8705cdc4 100644
--- a/tests/hazmat/primitives/utils.py
+++ b/tests/hazmat/primitives/utils.py
@@ -391,19 +391,21 @@ def kbkdf_counter_mode_test(backend, params):
'hmac_sha512': hashes.SHA512,
}
- supportd_counter_locations = {
+ supported_counter_locations = {
"before_fixed": CounterLocation.BeforeFixed,
"after_fixed": CounterLocation.AfterFixed,
}
algorithm = supported_algorithms.get(params.get('prf'))
if algorithm is None or not backend.hmac_supported(algorithm()):
- pytest.skip('Does not support algorithm')
+ pytest.skip("KBKDF does not support algorithm: {0}".format(
+ params.get('prf')
+ ))
- ctr_loc = supportd_counter_locations.get(params.get("ctrlocation"))
+ ctr_loc = supported_counter_locations.get(params.get("ctrlocation"))
if ctr_loc is None or not isinstance(ctr_loc, CounterLocation):
- pytest.skip("Does not support counter location".format(
- location=params.get('ctrlocation')
+ pytest.skip("Does not support counter location: {0}".format(
+ params.get('ctrlocation')
))
ctrkdf = KBKDFHMAC(