aboutsummaryrefslogtreecommitdiffstats
path: root/tests/primitives/test_openssl_vectors.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-10-17 13:08:01 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2013-10-17 13:08:01 -0700
commitd6644815913e878462aa51c95c84e6d871406e27 (patch)
tree5a0faebc00c8f4adf718a94ebccef1bb2a7e5fb2 /tests/primitives/test_openssl_vectors.py
parent9bd4f45fcb317fd8fd1b278254b2041b7b42aa47 (diff)
downloadcryptography-d6644815913e878462aa51c95c84e6d871406e27.tar.gz
cryptography-d6644815913e878462aa51c95c84e6d871406e27.tar.bz2
cryptography-d6644815913e878462aa51c95c84e6d871406e27.zip
fix
Diffstat (limited to 'tests/primitives/test_openssl_vectors.py')
-rw-r--r--tests/primitives/test_openssl_vectors.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/primitives/test_openssl_vectors.py b/tests/primitives/test_openssl_vectors.py
index 5706b16a..86ff7cad 100644
--- a/tests/primitives/test_openssl_vectors.py
+++ b/tests/primitives/test_openssl_vectors.py
@@ -74,6 +74,8 @@ class TestAESCTR(object):
["aes-128-ctr.txt", "aes-192-ctr.txt", "aes-256-ctr.txt"],
lambda key, iv: ciphers.AES(binascii.unhexlify(key)),
lambda key, iv: modes.CTR(binascii.unhexlify(iv)),
- only_if=lambda api: api.supports_cipher("aes-128-ctr"),
+ only_if=lambda api: api.supports_cipher(
+ ciphers.AES("\x00" * 16), modes.CTR("\x00" * 16)
+ ),
skip_message="Does not support AES CTR",
)