diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-21 16:36:29 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-21 16:36:29 -0700 |
commit | 19642a1f6a23b121fc178f9a4368448e903f790f (patch) | |
tree | f558f2a0629ed2543a19af8b334c19d5e56797de | |
parent | 5e04ba6cd77d210a73249ca36389148d359e046c (diff) | |
download | cryptography-19642a1f6a23b121fc178f9a4368448e903f790f.tar.gz cryptography-19642a1f6a23b121fc178f9a4368448e903f790f.tar.bz2 cryptography-19642a1f6a23b121fc178f9a4368448e903f790f.zip |
pep8ification, stub classes for OFB and CFB
-rw-r--r-- | tests/primitives/test_nist.py | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/tests/primitives/test_nist.py b/tests/primitives/test_nist.py index 117764bf..7244abab 100644 --- a/tests/primitives/test_nist.py +++ b/tests/primitives/test_nist.py @@ -228,8 +228,12 @@ class TestTripleDES_CBC(object): "TCBCIMMT2.rsp", "TCBCIMMT3.rsp", ], - lambda key1, key2, key3, iv1, iv2, iv3: ciphers.TripleDES(binascii.unhexlify(key1 + key2 + key3)), - lambda key1, key2, key3, iv1, iv2, iv3: modes.CBC(binascii.unhexlify(iv1 + iv2 + iv3)), + lambda key1, key2, key3, iv1, iv2, iv3: ( + ciphers.TripleDES(binascii.unhexlify(key1 + key2 + key3)) + ), + lambda key1, key2, key3, iv1, iv2, iv3: ( + modes.CBC(binascii.unhexlify(iv1 + iv2 + iv3)) + ), ) test_MMT1 = generate_encrypt_test( @@ -240,6 +244,16 @@ class TestTripleDES_CBC(object): "TCBCMMT2.rsp", "TCBCMMT3.rsp", ], - lambda key1, key2, key3, iv: ciphers.TripleDES(binascii.unhexlify(key1 + key2 + key3)), + lambda key1, key2, key3, iv: ( + ciphers.TripleDES(binascii.unhexlify(key1 + key2 + key3)) + ), lambda key1, key2, key3, iv: modes.CBC(binascii.unhexlify(iv)), ) + + +class TestTripleDES_OFB(object): + pass + + +class TestTripleDES_CFB(object): + pass |