From 016eed1cc1cc26ff404ac31ed3858de362ca37f2 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Wed, 16 Oct 2013 14:16:04 -0700 Subject: Ported openssl vector tests --- tests/primitives/test_cryptrec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/primitives/test_cryptrec.py') 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(), -- cgit v1.2.3