diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-02-16 18:59:40 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-02-16 18:59:40 -0800 |
commit | f4c1429a705f0d77ea860f0a765602cb97a2d35a (patch) | |
tree | cac1106643731e8d8cf040ccd87a93dde86b7670 /tests/test_utils.py | |
parent | 22b070cea75edb3bd56b4d847853ef3fe33b8f86 (diff) | |
parent | d5c9f5ae0c83ad1c156476ea43bb72e0e1a1fa0e (diff) | |
download | cryptography-f4c1429a705f0d77ea860f0a765602cb97a2d35a.tar.gz cryptography-f4c1429a705f0d77ea860f0a765602cb97a2d35a.tar.bz2 cryptography-f4c1429a705f0d77ea860f0a765602cb97a2d35a.zip |
Merge pull request #625 from reaperhulk/openssl-loader-youre-outta-here
Remove OpenSSL vector loader
Diffstat (limited to 'tests/test_utils.py')
-rw-r--r-- | tests/test_utils.py | 55 |
1 files changed, 2 insertions, 53 deletions
diff --git a/tests/test_utils.py b/tests/test_utils.py index 0e1d77b5..013d491e 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -20,8 +20,8 @@ import pytest from .utils import ( load_nist_vectors, load_vectors_from_file, load_cryptrec_vectors, - load_openssl_vectors, load_hash_vectors, check_for_iface, - check_backend_support, select_backends, load_pkcs1_vectors + load_hash_vectors, check_for_iface, check_backend_support, + select_backends, load_pkcs1_vectors ) @@ -253,57 +253,6 @@ def test_load_cryptrec_vectors_invalid(): load_cryptrec_vectors(vector_data) -def test_load_openssl_vectors(): - vector_data = textwrap.dedent( - """ - # We don't support CFB{1,8}-CAMELLIAxxx.{En,De}crypt - # For all CFB128 encrypts and decrypts, the transformed sequence is - # CAMELLIA-bits-CFB:key:IV/ciphertext':plaintext:ciphertext:encdec - # CFB128-CAMELLIA128.Encrypt - """ - "CAMELLIA-128-CFB:2B7E151628AED2A6ABF7158809CF4F3C:" - "000102030405060708090A0B0C0D0E0F:6BC1BEE22E409F96E93D7E117393172A:" - "14F7646187817EB586599146B82BD719:1\n" - "CAMELLIA-128-CFB:2B7E151628AED2A6ABF7158809CF4F3C:" - "14F7646187817EB586599146B82BD719:AE2D8A571E03AC9C9EB76FAC45AF8E51:" - "A53D28BB82DF741103EA4F921A44880B:1\n\n" - "# CFB128-CAMELLIA128.Decrypt\n" - "CAMELLIA-128-CFB:2B7E151628AED2A6ABF7158809CF4F3C:" - "000102030405060708090A0B0C0D0E0F:6BC1BEE22E409F96E93D7E117393172A:" - "14F7646187817EB586599146B82BD719:0\n" - "CAMELLIA-128-CFB:2B7E151628AED2A6ABF7158809CF4F3C:" - "14F7646187817EB586599146B82BD719:AE2D8A571E03AC9C9EB76FAC45AF8E51:" - "A53D28BB82DF741103EA4F921A44880B:0" - ).splitlines() - - assert load_openssl_vectors(vector_data) == [ - { - "key": b"2B7E151628AED2A6ABF7158809CF4F3C", - "iv": b"000102030405060708090A0B0C0D0E0F", - "plaintext": b"6BC1BEE22E409F96E93D7E117393172A", - "ciphertext": b"14F7646187817EB586599146B82BD719", - }, - { - "key": b"2B7E151628AED2A6ABF7158809CF4F3C", - "iv": b"14F7646187817EB586599146B82BD719", - "plaintext": b"AE2D8A571E03AC9C9EB76FAC45AF8E51", - "ciphertext": b"A53D28BB82DF741103EA4F921A44880B", - }, - { - "key": b"2B7E151628AED2A6ABF7158809CF4F3C", - "iv": b"000102030405060708090A0B0C0D0E0F", - "plaintext": b"6BC1BEE22E409F96E93D7E117393172A", - "ciphertext": b"14F7646187817EB586599146B82BD719", - }, - { - "key": b"2B7E151628AED2A6ABF7158809CF4F3C", - "iv": b"14F7646187817EB586599146B82BD719", - "plaintext": b"AE2D8A571E03AC9C9EB76FAC45AF8E51", - "ciphertext": b"A53D28BB82DF741103EA4F921A44880B", - }, - ] - - def test_load_hash_vectors(): vector_data = textwrap.dedent(""" |