aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test/nist-sp-800-38a.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-02-13 03:51:02 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-02-13 03:51:02 +0300
commitd8785fa60477b6804f6a84074472eb5a8affe910 (patch)
treefb0105c6cc487a44f85e650747f44acf4c88a8f2 /test/nist-sp-800-38a.py
parenttest: code style (diff)
downloadaes-tools-d8785fa60477b6804f6a84074472eb5a8affe910.tar.gz
aes-tools-d8785fa60477b6804f6a84074472eb5a8affe910.zip
test: refactoring
Diffstat (limited to 'test/nist-sp-800-38a.py')
-rw-r--r--test/nist-sp-800-38a.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/nist-sp-800-38a.py b/test/nist-sp-800-38a.py
index 1bbd3bc..119ddb9 100644
--- a/test/nist-sp-800-38a.py
+++ b/test/nist-sp-800-38a.py
@@ -172,6 +172,7 @@ def run_encryption_test(tools, algorithm, mode, use_boxes=False):
logging.info('Running encryption test...')
logging.info('Algorithm: {}'.format(algorithm))
logging.info('Mode: {}'.format(mode))
+
plaintexts = get_test_plaintexts(algorithm, mode)
key = get_test_key(algorithm, mode)
iv = get_test_iv(algorithm, mode)
@@ -187,6 +188,7 @@ def run_decryption_test(tools, algorithm, mode, use_boxes=False):
logging.info('Running decryption test...')
logging.info('Algorithm: {}'.format(algorithm))
logging.info('Mode: {}'.format(mode))
+
ciphertexts = get_test_ciphertexts(algorithm, mode)
key = get_test_key(algorithm, mode)
iv = get_test_iv(algorithm, mode)