From 6fe0f155b0a0daa5affe1482da50cbe152358b07 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 28 Dec 2015 03:26:46 +0300 Subject: utils: interface update & refactoring --- test/nist-sp-800-38a.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/nist-sp-800-38a.py') diff --git a/test/nist-sp-800-38a.py b/test/nist-sp-800-38a.py index 05f0a39..a096a42 100644 --- a/test/nist-sp-800-38a.py +++ b/test/nist-sp-800-38a.py @@ -181,7 +181,7 @@ if __name__ == '__main__': 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('--box', '-b', action='store_true', + parser.add_argument('--use-boxes', '-b', action='store_true', help='use the "boxes" interface') parser.add_argument('--log', '-l', help='set log file path') args = parser.parse_args() @@ -216,13 +216,13 @@ if __name__ == '__main__': mode = maybe_mode logging.info('Mode: ' + mode) try: - exit_codes.append(_run_encryption_tests(tools, algo, mode, use_boxes=args.box)) + exit_codes.append(_run_encryption_tests(tools, algo, mode, use_boxes=args.use_boxes)) except Exception as e: logging.error('Encountered an exception!') logging.exception(e) exit_codes.append(_TestExitCode.ERROR) try: - exit_codes.append(_run_decryption_tests(tools, algo, mode, use_boxes=args.box)) + exit_codes.append(_run_decryption_tests(tools, algo, mode, use_boxes=args.use_boxes)) except Exception as e: logging.error('Encountered an exception!') logging.exception(e) -- cgit v1.2.3