diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/primitives/test_cryptrec.py | 6 | ||||
-rw-r--r-- | tests/primitives/test_nist.py | 1 | ||||
-rw-r--r-- | tests/test_utils.py | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/tests/primitives/test_cryptrec.py b/tests/primitives/test_cryptrec.py index 13ae771d..edf97652 100644 --- a/tests/primitives/test_cryptrec.py +++ b/tests/primitives/test_cryptrec.py @@ -30,7 +30,11 @@ class TestCamelliaECB(object): test_NTT = generate_encrypt_test( load_cryptrec_vectors_from_file, os.path.join("Camellia", "NTT"), - ["camellia-128-ecb.txt", "camellia-192-ecb.txt", "camellia-256-ecb.txt"], + [ + "camellia-128-ecb.txt", + "camellia-192-ecb.txt", + "camellia-256-ecb.txt" + ], lambda key: ciphers.Camellia(binascii.unhexlify((key))), lambda key: modes.ECB(), only_if=lambda api: api.supports_cipher("camellia-128-ecb"), diff --git a/tests/primitives/test_nist.py b/tests/primitives/test_nist.py index e7778f1f..d97b207b 100644 --- a/tests/primitives/test_nist.py +++ b/tests/primitives/test_nist.py @@ -153,7 +153,6 @@ class TestAES_CFB(object): lambda key, iv: modes.CFB(binascii.unhexlify(iv)), ) - test_MMT = generate_encrypt_test( lambda path: load_nist_vectors_from_file(path, "ENCRYPT"), os.path.join("AES", "MMT"), diff --git a/tests/test_utils.py b/tests/test_utils.py index 84e38571..28e7407b 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -180,7 +180,7 @@ def test_load_nist_vectors_from_file_decrypt(): assert load_nist_vectors_from_file( "AES/KAT/CBCGFSbox128.rsp", "DECRYPT", - ) == [ + ) == [ { "key": b"00000000000000000000000000000000", "iv": b"00000000000000000000000000000000", |