aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/test_aes.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-10-24 07:33:26 -0700
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-10-24 07:33:26 -0700
commit2f2346344ae5561bc9b106cbb452efeebe3cdc45 (patch)
tree4babc963e16a02d376075d545150c707e1ab37ff /tests/hazmat/primitives/test_aes.py
parentf281daed0e92dd3d00f9aa2fda6ae41e80a0e1fc (diff)
parent2607ab5b932395de6554f1f4a779481cd4b87619 (diff)
downloadcryptography-2f2346344ae5561bc9b106cbb452efeebe3cdc45.tar.gz
cryptography-2f2346344ae5561bc9b106cbb452efeebe3cdc45.tar.bz2
cryptography-2f2346344ae5561bc9b106cbb452efeebe3cdc45.zip
Merge pull request #1434 from alex/requires-backend-interface
Change how we represented that a test requires a backend.
Diffstat (limited to 'tests/hazmat/primitives/test_aes.py')
-rw-r--r--tests/hazmat/primitives/test_aes.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/tests/hazmat/primitives/test_aes.py b/tests/hazmat/primitives/test_aes.py
index e8e0eee4..85e5da7a 100644
--- a/tests/hazmat/primitives/test_aes.py
+++ b/tests/hazmat/primitives/test_aes.py
@@ -18,6 +18,7 @@ import os
import pytest
+from cryptography.hazmat.backends.interfaces import CipherBackend
from cryptography.hazmat.primitives.ciphers import algorithms, base, modes
from .utils import generate_aead_test, generate_encrypt_test
@@ -30,7 +31,7 @@ from ...utils import load_nist_vectors
),
skip_message="Does not support AES CBC",
)
-@pytest.mark.cipher
+@pytest.mark.requires_backend_interface(interface=CipherBackend)
class TestAESModeCBC(object):
test_CBC = generate_encrypt_test(
load_nist_vectors,
@@ -63,7 +64,7 @@ class TestAESModeCBC(object):
),
skip_message="Does not support AES ECB",
)
-@pytest.mark.cipher
+@pytest.mark.requires_backend_interface(interface=CipherBackend)
class TestAESModeECB(object):
test_ECB = generate_encrypt_test(
load_nist_vectors,
@@ -96,7 +97,7 @@ class TestAESModeECB(object):
),
skip_message="Does not support AES OFB",
)
-@pytest.mark.cipher
+@pytest.mark.requires_backend_interface(interface=CipherBackend)
class TestAESModeOFB(object):
test_OFB = generate_encrypt_test(
load_nist_vectors,
@@ -129,7 +130,7 @@ class TestAESModeOFB(object):
),
skip_message="Does not support AES CFB",
)
-@pytest.mark.cipher
+@pytest.mark.requires_backend_interface(interface=CipherBackend)
class TestAESModeCFB(object):
test_CFB = generate_encrypt_test(
load_nist_vectors,
@@ -162,7 +163,7 @@ class TestAESModeCFB(object):
),
skip_message="Does not support AES CFB8",
)
-@pytest.mark.cipher
+@pytest.mark.requires_backend_interface(interface=CipherBackend)
class TestAESModeCFB8(object):
test_CFB8 = generate_encrypt_test(
load_nist_vectors,
@@ -195,7 +196,7 @@ class TestAESModeCFB8(object):
),
skip_message="Does not support AES CTR",
)
-@pytest.mark.cipher
+@pytest.mark.requires_backend_interface(interface=CipherBackend)
class TestAESModeCTR(object):
test_CTR = generate_encrypt_test(
load_nist_vectors,
@@ -212,7 +213,7 @@ class TestAESModeCTR(object):
),
skip_message="Does not support AES GCM",
)
-@pytest.mark.cipher
+@pytest.mark.requires_backend_interface(interface=CipherBackend)
class TestAESModeGCM(object):
test_GCM = generate_aead_test(
load_nist_vectors,