diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-01-20 00:07:34 -0600 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-01-20 00:07:34 -0600 |
commit | 263a3352159cac0073df7d23c9dbbc6c0749d9aa (patch) | |
tree | f61a52745b5a9007112f47c187e4e670bcfb5bbf /tests/hazmat | |
parent | 404769442e9dab3a0dab67d890cb7441b34fd007 (diff) | |
download | cryptography-263a3352159cac0073df7d23c9dbbc6c0749d9aa.tar.gz cryptography-263a3352159cac0073df7d23c9dbbc6c0749d9aa.tar.bz2 cryptography-263a3352159cac0073df7d23c9dbbc6c0749d9aa.zip |
change cipher registry to store enums
Diffstat (limited to 'tests/hazmat')
-rw-r--r-- | tests/hazmat/backends/test_commoncrypto.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/hazmat/backends/test_commoncrypto.py b/tests/hazmat/backends/test_commoncrypto.py index 8b353237..8022863c 100644 --- a/tests/hazmat/backends/test_commoncrypto.py +++ b/tests/hazmat/backends/test_commoncrypto.py @@ -28,7 +28,10 @@ class TestCommonCrypto(object): def test_register_duplicate_cipher_adapter(self): from cryptography.hazmat.backends.commoncrypto.backend import backend with pytest.raises(ValueError): - backend.register_cipher_adapter(AES, CBC, None) + backend.register_cipher_adapter( + AES, backend._lib.kCCAlgorithmAES128, + CBC, backend._lib.kCCModeCBC + ) def test_handle_response(self): from cryptography.hazmat.backends.commoncrypto.backend import backend |