aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hazmat/primitives/test_camellia.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-02-15 22:04:57 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-02-16 19:32:58 -0600
commit47185e87a3fbad72e44542537878477e786cd49e (patch)
treef20acad04f0ee93c0da440eb88f4c3ba039fef7b /tests/hazmat/primitives/test_camellia.py
parent3e4489ac893571505f62bb39f039c06b9901f4af (diff)
downloadcryptography-47185e87a3fbad72e44542537878477e786cd49e.tar.gz
cryptography-47185e87a3fbad72e44542537878477e786cd49e.tar.bz2
cryptography-47185e87a3fbad72e44542537878477e786cd49e.zip
reformat camellia cfb, ofb, cbc vectors to NIST layout
+ remove duplicate tests
Diffstat (limited to 'tests/hazmat/primitives/test_camellia.py')
-rw-r--r--tests/hazmat/primitives/test_camellia.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/hazmat/primitives/test_camellia.py b/tests/hazmat/primitives/test_camellia.py
index 7c56f6f9..4b3a67c5 100644
--- a/tests/hazmat/primitives/test_camellia.py
+++ b/tests/hazmat/primitives/test_camellia.py
@@ -22,7 +22,7 @@ from cryptography.hazmat.primitives.ciphers import algorithms, modes
from .utils import generate_encrypt_test
from ...utils import (
- load_cryptrec_vectors, load_openssl_vectors
+ load_cryptrec_vectors, load_nist_vectors
)
@@ -56,7 +56,7 @@ class TestCamellia_ECB(object):
@pytest.mark.cipher
class TestCamellia_CBC(object):
test_CBC = generate_encrypt_test(
- load_openssl_vectors,
+ load_nist_vectors,
os.path.join("ciphers", "Camellia"),
["camellia-cbc.txt"],
lambda key, **kwargs: algorithms.Camellia(binascii.unhexlify(key)),
@@ -73,7 +73,7 @@ class TestCamellia_CBC(object):
@pytest.mark.cipher
class TestCamellia_OFB(object):
test_OFB = generate_encrypt_test(
- load_openssl_vectors,
+ load_nist_vectors,
os.path.join("ciphers", "Camellia"),
["camellia-ofb.txt"],
lambda key, **kwargs: algorithms.Camellia(binascii.unhexlify(key)),
@@ -90,7 +90,7 @@ class TestCamellia_OFB(object):
@pytest.mark.cipher
class TestCamellia_CFB(object):
test_CFB = generate_encrypt_test(
- load_openssl_vectors,
+ load_nist_vectors,
os.path.join("ciphers", "Camellia"),
["camellia-cfb.txt"],
lambda key, **kwargs: algorithms.Camellia(binascii.unhexlify(key)),