aboutsummaryrefslogtreecommitdiffstats
path: root/tests/primitives/test_cryptrec.py
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-10-16 14:16:04 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2013-10-16 14:16:04 -0700
commit016eed1cc1cc26ff404ac31ed3858de362ca37f2 (patch)
treedc7f2ceaa1f2ba58b3313c9f59f2ec1ae08d9b68 /tests/primitives/test_cryptrec.py
parentbd458ae1e3bdd48f74437216ac467ab2e4d68b13 (diff)
downloadcryptography-016eed1cc1cc26ff404ac31ed3858de362ca37f2.tar.gz
cryptography-016eed1cc1cc26ff404ac31ed3858de362ca37f2.tar.bz2
cryptography-016eed1cc1cc26ff404ac31ed3858de362ca37f2.zip
Ported openssl vector tests
Diffstat (limited to 'tests/primitives/test_cryptrec.py')
-rw-r--r--tests/primitives/test_cryptrec.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/primitives/test_cryptrec.py b/tests/primitives/test_cryptrec.py
index c8e0af0f..59d8b24b 100644
--- a/tests/primitives/test_cryptrec.py
+++ b/tests/primitives/test_cryptrec.py
@@ -18,6 +18,7 @@ Tests using the CRYPTREC (Camellia) Test Vectors
from __future__ import absolute_import, division, print_function
import binascii
+import os
from cryptography.primitives.block import ciphers, modes
@@ -28,8 +29,7 @@ from ..utils import load_cryptrec_vectors_from_file
class TestCamelliaECB(object):
test_NTT = generate_encrypt_test(
load_cryptrec_vectors_from_file,
- "Camellia",
- "NTT",
+ os.path.join("Camellia", "NTT"),
["camellia-128-ecb", "camellia-192-ecb", "camellia-256"],
lambda key: ciphers.Camellia(binascii.unhexlify((key))),
lambda key: modes.EBC(),