aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/test_cast5.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2016-03-07 09:10:08 -0500
committerAlex Gaynor <alex.gaynor@gmail.com>2016-03-07 09:10:08 -0500
commit83c9cdaf1d8cb0d1a60f89935e237fa5fffcc571 (patch)
tree10df6ccc2fe0566630df5f8ca2d40031b20b72c3 /tests/hazmat/primitives/test_cast5.py
parentde1bc1f5fd25cee71a25bf3e50c57137cb81c08d (diff)
parent4fc597d9990bdf17f714ae1a3a3f759e4039e4a9 (diff)
downloadcryptography-83c9cdaf1d8cb0d1a60f89935e237fa5fffcc571.tar.gz
cryptography-83c9cdaf1d8cb0d1a60f89935e237fa5fffcc571.tar.bz2
cryptography-83c9cdaf1d8cb0d1a60f89935e237fa5fffcc571.zip
Merge pull request #2771 from reaperhulk/use-bytes
pass bytes to modes/algorithms like we should
Diffstat (limited to 'tests/hazmat/primitives/test_cast5.py')
-rw-r--r--tests/hazmat/primitives/test_cast5.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/hazmat/primitives/test_cast5.py b/tests/hazmat/primitives/test_cast5.py
index 0e4f879c..59af84f5 100644
--- a/tests/hazmat/primitives/test_cast5.py
+++ b/tests/hazmat/primitives/test_cast5.py
@@ -18,7 +18,7 @@ from ...utils import load_nist_vectors
@pytest.mark.supported(
only_if=lambda backend: backend.cipher_supported(
- algorithms.CAST5("\x00" * 16), modes.ECB()
+ algorithms.CAST5(b"\x00" * 16), modes.ECB()
),
skip_message="Does not support CAST5 ECB",
)
@@ -35,7 +35,7 @@ class TestCAST5ModeECB(object):
@pytest.mark.supported(
only_if=lambda backend: backend.cipher_supported(
- algorithms.CAST5("\x00" * 16), modes.CBC("\x00" * 8)
+ algorithms.CAST5(b"\x00" * 16), modes.CBC(b"\x00" * 8)
),
skip_message="Does not support CAST5 CBC",
)
@@ -52,7 +52,7 @@ class TestCAST5ModeCBC(object):
@pytest.mark.supported(
only_if=lambda backend: backend.cipher_supported(
- algorithms.CAST5("\x00" * 16), modes.OFB("\x00" * 8)
+ algorithms.CAST5(b"\x00" * 16), modes.OFB(b"\x00" * 8)
),
skip_message="Does not support CAST5 OFB",
)
@@ -69,7 +69,7 @@ class TestCAST5ModeOFB(object):
@pytest.mark.supported(
only_if=lambda backend: backend.cipher_supported(
- algorithms.CAST5("\x00" * 16), modes.CFB("\x00" * 8)
+ algorithms.CAST5(b"\x00" * 16), modes.CFB(b"\x00" * 8)
),
skip_message="Does not support CAST5 CFB",
)
@@ -86,7 +86,7 @@ class TestCAST5ModeCFB(object):
@pytest.mark.supported(
only_if=lambda backend: backend.cipher_supported(
- algorithms.CAST5("\x00" * 16), modes.CTR("\x00" * 8)
+ algorithms.CAST5(b"\x00" * 16), modes.CTR(b"\x00" * 8)
),
skip_message="Does not support CAST5 CTR",
)