diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-10-24 07:33:26 -0700 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-10-24 07:33:26 -0700 |
commit | 2f2346344ae5561bc9b106cbb452efeebe3cdc45 (patch) | |
tree | 4babc963e16a02d376075d545150c707e1ab37ff /tests/hazmat/primitives/test_hkdf.py | |
parent | f281daed0e92dd3d00f9aa2fda6ae41e80a0e1fc (diff) | |
parent | 2607ab5b932395de6554f1f4a779481cd4b87619 (diff) | |
download | cryptography-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_hkdf.py')
-rw-r--r-- | tests/hazmat/primitives/test_hkdf.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/hazmat/primitives/test_hkdf.py b/tests/hazmat/primitives/test_hkdf.py index 598f09f0..9b5d9638 100644 --- a/tests/hazmat/primitives/test_hkdf.py +++ b/tests/hazmat/primitives/test_hkdf.py @@ -22,13 +22,14 @@ import six from cryptography.exceptions import ( AlreadyFinalized, InvalidKey, _Reasons ) +from cryptography.hazmat.backends.interfaces import HMACBackend from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.kdf.hkdf import HKDF, HKDFExpand from ...utils import raises_unsupported_algorithm -@pytest.mark.hmac +@pytest.mark.requires_backend_interface(interface=HMACBackend) class TestHKDF(object): def test_length_limit(self, backend): big_length = 255 * (hashes.SHA256().digest_size // 8) + 1 @@ -153,7 +154,7 @@ class TestHKDF(object): hkdf.verify(b"foo", six.u("bar")) -@pytest.mark.hmac +@pytest.mark.requires_backend_interface(interface=HMACBackend) class TestHKDFExpand(object): def test_derive(self, backend): prk = binascii.unhexlify( |