aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/cavp.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2015-06-24 05:22:14 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2015-06-24 05:22:14 +0300
commit606c6b47a12842c7a87ac17b8a4f0762f86d603e (patch)
treeab730cae9edf1e82b24991142ae1c62f3e20d653 /test/cavp.py
parentadd missing extern "C" { (diff)
downloadaes-tools-606c6b47a12842c7a87ac17b8a4f0762f86d603e.tar.gz
aes-tools-606c6b47a12842c7a87ac17b8a4f0762f86d603e.zip
test: locate executables in PATH
Diffstat (limited to '')
-rw-r--r--test/cavp.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/cavp.py b/test/cavp.py
index a94eaef..474818d 100644
--- a/test/cavp.py
+++ b/test/cavp.py
@@ -95,13 +95,13 @@ class _TestVectorsFile:
logging.info('Running encryption tests...')
keys, plaintexts, ciphertexts, init_vectors = self._extract_test_data('ENCRYPT')
inputs = _gen_encryption_inputs(keys, plaintexts, init_vectors)
- return self._run_tests(tools.run_encrypt_tool, inputs, ciphertexts)
+ return self._run_tests(tools.run_encrypt_block, inputs, ciphertexts)
def run_decryption_tests(self, tools):
logging.info('Running decryption tests...')
keys, plaintexts, ciphertexts, init_vectors = self._extract_test_data('DECRYPT')
inputs = _gen_decryption_inputs(keys, ciphertexts, init_vectors)
- return self._run_tests(tools.run_decrypt_tool, inputs, plaintexts)
+ return self._run_tests(tools.run_decrypt_block, inputs, plaintexts)
def _parse(self):
logging.info('Trying to parse test vectors file name \'{0}\'...'.format(self._fn))
@@ -174,8 +174,8 @@ def _parse_test_vectors_archive(tools, archive_path='KAT_AES.zip'):
if __name__ == '__main__':
import argparse
parser = argparse.ArgumentParser()
- parser.add_argument('--root', '-r', required=True,
- help='set path to *.exe files')
+ parser.add_argument('--path', '-p', nargs='*',
+ help='set path to block encryption utilities')
parser.add_argument('--sde', '-e', action='store_true',
help='use Intel SDE to run *.exe files')
parser.add_argument('--log', '-l', help='set log file path')
@@ -189,5 +189,5 @@ if __name__ == '__main__':
logging_options['filename'] = args.log
logging.basicConfig(**logging_options)
- tools = toolkit.Tools(args.root, use_sde=args.sde)
+ tools = toolkit.Tools(args.path, use_sde=args.sde)
_parse_test_vectors_archive(tools)